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.
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
andreas@268
    11
@class PEPLanguage;
dirk@187
    12
dirk@187
    13
@interface PEPObjCAdapter : NSObject
dirk@187
    14
dirk@626
    15
#pragma mark - Configuration
dirk@626
    16
dirk@187
    17
/**
andreas@416
    18
 Sets Engine config for unecryptedSubjectEnabled to the given value on all Sessions created by
andreas@416
    19
 this adapter.
andreas@416
    20
andreas@416
    21
 @param enabled Whether or not mail subjects should be encrypted
andreas@416
    22
 */
dirk@601
    23
+ (void)setUnEncryptedSubjectEnabled:(BOOL)enabled;
andreas@416
    24
andreas@416
    25
/**
dirk@626
    26
 Enable or disable passive mode for all sessions.
dirk@626
    27
 */
dirk@626
    28
+ (void)setPassiveModeEnabled:(BOOL)enabled;
dirk@626
    29
dirk@626
    30
#pragma mark -
dirk@626
    31
dirk@626
    32
/**
dirk@187
    33
 The HOME URL, where all pEp related files will be stored.
dirk@187
    34
 */
andreas@259
    35
+ (NSURL * _Nonnull)homeURL;
dirk@187
    36
dirk@187
    37
+ (void)setupTrustWordsDB;
andreas@259
    38
+ (void)setupTrustWordsDB:(NSBundle * _Nonnull)rootBundle;
dirk@187
    39
dz@1215
    40
/**
dz@1215
    41
 The directory where pEp stores user-specific data.
dz@1215
    42
dz@1215
    43
 @return An NSString denoting the directory where user-specific data gets stored by the engine.
dz@1215
    44
 */
dz@1216
    45
+ (NSString * _Nonnull)perUserDirectoryString;
dz@1215
    46
dz@1215
    47
/**
dz@1215
    48
 The directory where pEp stores data for all users on this machine.
dz@1215
    49
dz@1215
    50
 @return An NSString denoting the directory where global data (for all users of this machine
dz@1215
    51
         or device) gets stored by the engine.
dz@1215
    52
 */
dz@1216
    53
+ (NSString * _Nonnull)perMachineDirectoryString;
dz@1215
    54
dirk@187
    55
@end