src/sync_app.h
changeset 1785 6471e6e427b3
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/sync_app.h	Tue May 16 15:53:59 2017 +0200
     1.3 @@ -0,0 +1,34 @@
     1.4 +//
     1.5 +//  sync_app.h
     1.6 +//  pEpEngine
     1.7 +//
     1.8 +//  Created by Dirk Zimmermann on 16.05.17.
     1.9 +//  Copyright © 2017 Edouard Tisserant. All rights reserved.
    1.10 +//
    1.11 +
    1.12 +#ifndef sync_app_h
    1.13 +#define sync_app_h
    1.14 +
    1.15 +// TODO add this to generated code.
    1.16 +typedef enum _sync_handshake_signal {
    1.17 +    SYNC_NOTIFY_UNDEFINED = 0,
    1.18 +
    1.19 +    // request show handshake dialog
    1.20 +    SYNC_NOTIFY_INIT_ADD_OUR_DEVICE,
    1.21 +    SYNC_NOTIFY_INIT_ADD_OTHER_DEVICE,
    1.22 +    SYNC_NOTIFY_INIT_FORM_GROUP,
    1.23 +    SYNC_NOTIFY_INIT_MOVE_OUR_DEVICE,
    1.24 +
    1.25 +    // handshake process timed out
    1.26 +    SYNC_NOTIFY_TIMEOUT,
    1.27 +
    1.28 +    // handshake accepted by user
    1.29 +    SYNC_NOTIFY_ACCEPTED_DEVICE_ADDED,
    1.30 +    SYNC_NOTIFY_ACCEPTED_GROUP_CREATED,
    1.31 +    SYNC_NOTIFY_ACCEPTED_DEVICE_MOVED,
    1.32 +
    1.33 +    // handshake dialog must be closed
    1.34 +    SYNC_NOTIFY_OVERTAKEN
    1.35 +} sync_handshake_signal;
    1.36 +
    1.37 +#endif /* sync_app_h */