pEpObjCAdapter/PEPObjCAdapter.h
author Dirk Zimmermann <dirk@pep-project.org>
Wed, 17 May 2017 09:27:57 +0200
changeset 187 1f630a05e444
child 192 9e94360802b5
permissions -rw-r--r--
IOSAD-15 more renames
     1 //
     2 //  pEpiOSAdapter.h
     3 //  pEpiOSAdapter
     4 //
     5 //  Created by Volker Birk on 28.04.15.
     6 //  Copyright (c) 2015 p≡p. All rights reserved.
     7 //
     8 
     9 #import <Foundation/Foundation.h>
    10 
    11 #include "message_api.h"
    12 #include "sync_app.h"
    13 
    14 @protocol PEPKeyManagementDelegate <NSObject>
    15 
    16 - (void)identityUpdated:(id)identity;
    17 
    18 @end
    19 
    20 @protocol PEPSyncDelegate <NSObject>
    21 
    22 - (PEP_STATUS)notifyHandshakeWithSignal:(sync_handshake_signal)signal me:(id)me partner:(id)partner;
    23 
    24 - (PEP_STATUS)sendMessage:(id)msg;
    25 
    26 @end
    27 
    28 @interface PEPObjCAdapter : NSObject
    29 
    30 /**
    31  The HOME URL, where all pEp related files will be stored.
    32  */
    33 + (NSURL *)homeURL;
    34 
    35 /**
    36  Start keyserver lookup.
    37  - Note: There is only one keyserver lookup thread
    38  */
    39 + (void)startKeyserverLookup;
    40 
    41 /**
    42  Stop keyserver lookup.
    43  */
    44 + (void)stopKeyserverLookup;
    45 
    46 + (void)setupTrustWordsDB;
    47 + (void)setupTrustWordsDB:(NSBundle *)rootBundle;
    48 
    49 /**
    50  Start Sync.
    51  - Note: There is only one Sync session and thread
    52  */
    53 + (void)startSync:(id <PEPSyncDelegate>)delegate;
    54 
    55 /**
    56  Stop Sync.
    57  */
    58 + (void)stopSync;
    59 
    60 
    61 @end