src/sync.h
branchENGINE-133
changeset 1469 43e45b53e5cb
parent 1462 b93663bfc7c6
child 1472 426533979556
     1.1 --- a/src/sync.h	Wed Dec 07 15:46:09 2016 +0100
     1.2 +++ b/src/sync.h	Thu Dec 08 10:00:52 2016 +0100
     1.3 @@ -27,12 +27,22 @@
     1.4  typedef PEP_STATUS (*messageToSend_t)(void *obj, message *msg);
     1.5  
     1.6  typedef enum _sync_handshake_signal {
     1.7 -    SYNC_HANDSHAKE_DISMISS_DIALOG = 0,
     1.8 -    SYNC_HANDSHAKE_SHOW_DIALOG = 1,
     1.9 -    SYNC_HANDSHAKE_SUCCESS = 2,
    1.10 -    SYNC_HANDSHAKE_FAILURE = 3,
    1.11 -    SYNC_DEVICE_ADDED = 4,
    1.12 -    SYNC_GROUP_CREATED = 5
    1.13 +    SYNC_HANDSHAKE_UNDEFINED = 0,
    1.14 +
    1.15 +    // request show handshake dialog
    1.16 +    SYNC_HANDSHAKE_INIT_ADD_OUR_DEVICE,
    1.17 +    SYNC_HANDSHAKE_INIT_ADD_OTHER_DEVICE,
    1.18 +    SYNC_HANDSHAKE_INIT_FORM_GROUP,
    1.19 +
    1.20 +    // handshake process was cancelled
    1.21 +    SYNC_HANDSHAKE_CANCELED,
    1.22 +
    1.23 +    // handshake accepted by user
    1.24 +    SYNC_HANDSHAKE_ACCEPTED_DEVICE_ADDED,
    1.25 +    SYNC_HANDSHAKE_ACCEPTED_GROUP_CREATED,
    1.26 +
    1.27 +    // handshake was rejected by user
    1.28 +    SYNC_HANDSHAKE_REJECTED
    1.29  } sync_handshake_signal;
    1.30  
    1.31  // notifyHandshake() - notify UI about sync handshaking process