OLMKit.h 1.7 KB
Newer Older
manuroe's avatar
manuroe committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
 Copyright 2016 Chris Ballinger
 Copyright 2016 OpenMarket Ltd
 Copyright 2016 Vector Creations Ltd

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

 http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
 */
Chris Ballinger's avatar
Chris Ballinger committed
18

19
#import <Foundation/Foundation.h>
20

Chris Ballinger's avatar
Chris Ballinger committed
21
22
// In this header, you should import all the public headers of your framework using statements like #import <OLMKit/PublicHeader.h>

manuroe's avatar
manuroe committed
23
24
25
26
#import <OLMKit/OLMAccount.h>
#import <OLMKit/OLMSession.h>
#import <OLMKit/OLMMessage.h>
#import <OLMKit/OLMUtility.h>
27
28
#import <OLMKit/OLMInboundGroupSession.h>
#import <OLMKit/OLMOutboundGroupSession.h>
29
30
#import <OLMKit/OLMPkEncryption.h>
#import <OLMKit/OLMPkDecryption.h>
manuroe's avatar
manuroe committed
31
#import <OLMKit/OLMPkSigning.h>
32
#import <OLMKit/OLMSAS.h>
33

34
35
36
37
38
39
40
41
42
43
44
45
46

NS_ASSUME_NONNULL_BEGIN

/**
 `OLMKitPickleKeyDelegate` provides the key to use for every pickle operation.
 */
@protocol OLMKitPickleKeyDelegate <NSObject>

- (NSData*)pickleKey;

@end


47
48
@interface OLMKit : NSObject

49
/// Project version string for OLMKit, the same as libolm.
50
51
+ (NSString*)versionString;

52
53
54
55
56
57
58
/// The optional delegate that provides the pickle key.
/// If not provided, OLMKit will use default pickle keys.
@property (nonatomic, weak, nullable) id<OLMKitPickleKeyDelegate> pickleKeyDelegate;

/// The singleton instance.
+ (instancetype)sharedInstance;

59
@end
60
61

NS_ASSUME_NONNULL_END