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