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
     1 //
     2 //  PEPIOSAdapter+Internal.h
     3 //  pEpiOSAdapter
     4 //
     5 //  Created by Edouard Tisserant on 11/11/15.
     6 //  Copyright © 2015 p≡p. All rights reserved.
     7 //
     8 
     9 #ifndef PEPIOSAdapter_Internal_h
    10 #define PEPIOSAdapter_Internal_h
    11 
    12 #import "sync.h"
    13 
    14 #import "PEPQueue.h"
    15 #import "PEPInternalSession.h"
    16 
    17 @interface PEPObjCAdapter ()
    18 
    19 /**
    20  unecryptedSubjectEnabled value to use for all sessions created.
    21 
    22  @return Whether or not mail subjects should be encrypted
    23  */
    24 + (BOOL)unecryptedSubjectEnabled;
    25 
    26 // this messages are for internal use only; do not call
    27 
    28 + (void)registerExamineFunction:(PEP_SESSION)session;
    29 + (PEPQueue*)getLookupQueue;
    30 
    31 + (PEPQueue*)getSyncQueue;
    32 + (id <PEPSyncDelegate>)getSyncDelegate;
    33 + (void)bindSession:(PEPInternalSession*)session;
    34 + (void)unbindSession:(PEPInternalSession*)session;
    35 
    36 /**
    37  Locks for (potential) sqlite writes.
    38  */
    39 + (void)lockWrite;
    40 
    41 /**
    42  Unlocks (potential) sqlite writes.
    43  */
    44 + (void)unlockWrite;
    45 
    46 @end
    47 
    48 #endif /* PEPIOSAdapter_Internal_h */