src/sync.h
changeset 1786 843c43703546
parent 1785 6471e6e427b3
child 1787 dbf0d2135b98
     1.1 --- a/src/sync.h	Tue May 16 15:53:59 2017 +0200
     1.2 +++ b/src/sync.h	Tue May 16 15:54:48 2017 +0200
     1.3 @@ -203,7 +203,7 @@
     1.4  
     1.5  #include "message.h"
     1.6  #include "sync_fsm.h"
     1.7 -#include "sync_app.h"
     1.8 +
     1.9  
    1.10  // this module is for being used WITHOUT the Transport API in transport.h
    1.11  // DO NOT USE IT WHEN USING Transport API!
    1.12 @@ -227,6 +227,28 @@
    1.13  
    1.14  typedef PEP_STATUS (*messageToSend_t)(void *obj, message *msg);
    1.15  
    1.16 +// TODO add this to generated code.
    1.17 +typedef enum _sync_handshake_signal {
    1.18 +    SYNC_NOTIFY_UNDEFINED = 0,
    1.19 +
    1.20 +    // request show handshake dialog
    1.21 +    SYNC_NOTIFY_INIT_ADD_OUR_DEVICE,
    1.22 +    SYNC_NOTIFY_INIT_ADD_OTHER_DEVICE,
    1.23 +    SYNC_NOTIFY_INIT_FORM_GROUP,
    1.24 +    SYNC_NOTIFY_INIT_MOVE_OUR_DEVICE,
    1.25 +
    1.26 +    // handshake process timed out
    1.27 +    SYNC_NOTIFY_TIMEOUT,
    1.28 +
    1.29 +    // handshake accepted by user
    1.30 +    SYNC_NOTIFY_ACCEPTED_DEVICE_ADDED,
    1.31 +    SYNC_NOTIFY_ACCEPTED_GROUP_CREATED,
    1.32 +    SYNC_NOTIFY_ACCEPTED_DEVICE_MOVED,
    1.33 +
    1.34 +    // handshake dialog must be closed
    1.35 +    SYNC_NOTIFY_OVERTAKEN
    1.36 +} sync_handshake_signal;
    1.37 +
    1.38  // notifyHandshake() - notify UI about sync handshaking process
    1.39  //
    1.40  //  parameters: