pEpObjCAdapter/PEPInternalSession.h
author Dirk Zimmermann <dirk@pep-project.org>
Thu, 17 May 2018 09:33:33 +0200
changeset 616 9e50cc7cd612
parent 601 10ac2d9704ac
child 838 bb34102cc016
permissions -rw-r--r--
IOSAD-93 consistently using precomposedStringWithCanonicalMapping, stringWithUTF8String
andreas@269
     1
//
andreas@269
     2
//  PEPSession.h
andreas@269
     3
//  pEpiOSAdapter
andreas@269
     4
//
andreas@269
     5
//  Created by Volker Birk on 08.07.15.
andreas@269
     6
//  Copyright (c) 2015 p≡p. All rights reserved.
andreas@269
     7
//
andreas@269
     8
andreas@269
     9
#import <Foundation/Foundation.h>
andreas@269
    10
andreas@276
    11
#import "PEPObjCAdapter.h"
andreas@272
    12
andreas@269
    13
/**
andreas@310
    14
 Represents a real pEp session (in contrast to PEPSession, which is a fake session to handle to the client).
andreas@273
    15
 Never expose this class to the client.
andreas@273
    16
 - You must use one session on one thread only to assure no concurrent calls to one session take place.
andreas@273
    17
 - As long as you can assure the session is not accessed from anywhere else, it is OK to init/deinit a session on another thread than the one it is used on.
andreas@273
    18
 - N threads <-> N sessions, with the constraint that a session is never used in a pEpEngine call more than once at the same time.
andreas@290
    19
andreas@290
    20
 Also the Engine requires that the first session is created on the main thread and is kept allive until all other created sessions have been terminated.
andreas@269
    21
 */
dirk@303
    22
@interface PEPInternalSession : NSObject <PEPSessionProtocol>
andreas@272
    23
andreas@272
    24
@property (nonatomic) PEP_SESSION _Nullable session;
andreas@272
    25
andreas@416
    26
/**
andreas@416
    27
 Configures the session's unecryptedSubjectEnabled value.
andreas@416
    28
andreas@416
    29
 @param enabled Whether or not mail subjects should be encrypted when using this session
andreas@416
    30
 */
dirk@601
    31
- (void)configUnEncryptedSubjectEnabled:(BOOL)enabled;
andreas@416
    32
andreas@269
    33
@end