src/sync_app.h
author Krista Bennett <krista@pep-project.org>
Tue, 14 Aug 2018 13:45:34 +0200
branchENGINE-451
changeset 2826 07c080d73a63
parent 1785 6471e6e427b3
permissions -rw-r--r--
ENGINE-451: abandoning branch - config files to be dealt with using gpgme (and hotfix will be external to engine
dirk@1785
     1
//
dirk@1785
     2
//  sync_app.h
dirk@1785
     3
//  pEpEngine
dirk@1785
     4
//
dirk@1785
     5
//  Created by Dirk Zimmermann on 16.05.17.
dirk@1785
     6
//  Copyright © 2017 Edouard Tisserant. All rights reserved.
dirk@1785
     7
//
dirk@1785
     8
dirk@1785
     9
#ifndef sync_app_h
dirk@1785
    10
#define sync_app_h
dirk@1785
    11
dirk@1785
    12
// TODO add this to generated code.
dirk@1785
    13
typedef enum _sync_handshake_signal {
dirk@1785
    14
    SYNC_NOTIFY_UNDEFINED = 0,
dirk@1785
    15
dirk@1785
    16
    // request show handshake dialog
dirk@1785
    17
    SYNC_NOTIFY_INIT_ADD_OUR_DEVICE,
dirk@1785
    18
    SYNC_NOTIFY_INIT_ADD_OTHER_DEVICE,
dirk@1785
    19
    SYNC_NOTIFY_INIT_FORM_GROUP,
dirk@1785
    20
    SYNC_NOTIFY_INIT_MOVE_OUR_DEVICE,
dirk@1785
    21
dirk@1785
    22
    // handshake process timed out
dirk@1785
    23
    SYNC_NOTIFY_TIMEOUT,
dirk@1785
    24
dirk@1785
    25
    // handshake accepted by user
dirk@1785
    26
    SYNC_NOTIFY_ACCEPTED_DEVICE_ADDED,
dirk@1785
    27
    SYNC_NOTIFY_ACCEPTED_GROUP_CREATED,
dirk@1785
    28
    SYNC_NOTIFY_ACCEPTED_DEVICE_MOVED,
dirk@1785
    29
dirk@1785
    30
    // handshake dialog must be closed
dirk@1785
    31
    SYNC_NOTIFY_OVERTAKEN
dirk@1785
    32
} sync_handshake_signal;
dirk@1785
    33
dirk@1785
    34
#endif /* sync_app_h */