pEpObjCAdapter/PEPObjCAdapter+Internal.h
author Dirk Zimmermann <dirk@pep-project.org>
Mon, 26 Feb 2018 13:19:19 +0100
changeset 504 9fa7b040133c
parent 416 5a37145e3eca
child 601 10ac2d9704ac
permissions -rw-r--r--
IOSAD-83 unifying adapter locking
dirk@187
     1
//
dirk@187
     2
//  PEPIOSAdapter+Internal.h
dirk@187
     3
//  pEpiOSAdapter
dirk@187
     4
//
dirk@187
     5
//  Created by Edouard Tisserant on 11/11/15.
dirk@187
     6
//  Copyright © 2015 p≡p. All rights reserved.
dirk@187
     7
//
dirk@187
     8
dirk@187
     9
#ifndef PEPIOSAdapter_Internal_h
dirk@187
    10
#define PEPIOSAdapter_Internal_h
dirk@187
    11
dirk@331
    12
#import "sync.h"
dirk@331
    13
dirk@187
    14
#import "PEPQueue.h"
andreas@269
    15
#import "PEPInternalSession.h"
dirk@187
    16
dirk@187
    17
@interface PEPObjCAdapter ()
dirk@187
    18
dirk@254
    19
/**
andreas@416
    20
 unecryptedSubjectEnabled value to use for all sessions created.
andreas@416
    21
andreas@416
    22
 @return Whether or not mail subjects should be encrypted
andreas@416
    23
 */
andreas@416
    24
+ (BOOL)unecryptedSubjectEnabled;
andreas@416
    25
dirk@187
    26
// this messages are for internal use only; do not call
dirk@187
    27
dirk@187
    28
+ (void)registerExamineFunction:(PEP_SESSION)session;
dirk@187
    29
+ (PEPQueue*)getLookupQueue;
dirk@187
    30
dirk@331
    31
+ (PEPQueue*)getSyncQueue;
dirk@331
    32
+ (id <PEPSyncDelegate>)getSyncDelegate;
dirk@331
    33
+ (void)bindSession:(PEPInternalSession*)session;
dirk@331
    34
+ (void)unbindSession:(PEPInternalSession*)session;
dirk@331
    35
dirk@504
    36
/**
dirk@504
    37
 Locks for (potential) sqlite writes.
dirk@504
    38
 */
dirk@504
    39
+ (void)lockWrite;
dirk@504
    40
dirk@504
    41
/**
dirk@504
    42
 Unlocks (potential) sqlite writes.
dirk@504
    43
 */
dirk@504
    44
+ (void)unlockWrite;
dirk@504
    45
dirk@187
    46
@end
dirk@187
    47
dirk@187
    48
#endif /* PEPIOSAdapter_Internal_h */