pEpObjCAdapterFramework/PEPObjCAdapter.h
author Dirk Zimmermann <dz@pep.security>
Fri, 20 Sep 2019 10:01:48 +0200
branchIOSAD-141
changeset 1250 b6a4d30abd26
parent 1216 9b09bbf24a3e
permissions -rw-r--r--
IOSAD-141 Test for "hammering" the engine.
     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 @class PEPLanguage;
    12 
    13 @interface PEPObjCAdapter : NSObject
    14 
    15 #pragma mark - Configuration
    16 
    17 /**
    18  Sets Engine config for unecryptedSubjectEnabled to the given value on all Sessions created by
    19  this adapter.
    20 
    21  @param enabled Whether or not mail subjects should be encrypted
    22  */
    23 + (void)setUnEncryptedSubjectEnabled:(BOOL)enabled;
    24 
    25 /**
    26  Enable or disable passive mode for all sessions.
    27  */
    28 + (void)setPassiveModeEnabled:(BOOL)enabled;
    29 
    30 #pragma mark -
    31 
    32 /**
    33  The HOME URL, where all pEp related files will be stored.
    34  */
    35 + (NSURL * _Nonnull)homeURL;
    36 
    37 + (void)setupTrustWordsDB;
    38 + (void)setupTrustWordsDB:(NSBundle * _Nonnull)rootBundle;
    39 
    40 /**
    41  The directory where pEp stores user-specific data.
    42 
    43  @return An NSString denoting the directory where user-specific data gets stored by the engine.
    44  */
    45 + (NSString * _Nonnull)perUserDirectoryString;
    46 
    47 /**
    48  The directory where pEp stores data for all users on this machine.
    49 
    50  @return An NSString denoting the directory where global data (for all users of this machine
    51          or device) gets stored by the engine.
    52  */
    53 + (NSString * _Nonnull)perMachineDirectoryString;
    54 
    55 @end