mirror of https://github.com/oxen-io/session-ios
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.2 KiB
Objective-C
35 lines
1.2 KiB
Objective-C
//
|
|
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@protocol ContactsManagerProtocol;
|
|
@class OWSMessageSender;
|
|
@protocol NotificationsProtocol;
|
|
@protocol OWSCallMessageHandler;
|
|
@protocol ProfileManagerProtocol;
|
|
|
|
@interface TextSecureKitEnv : NSObject
|
|
|
|
- (instancetype)initWithCallMessageHandler:(id<OWSCallMessageHandler>)callMessageHandler
|
|
contactsManager:(id<ContactsManagerProtocol>)contactsManager
|
|
messageSender:(OWSMessageSender *)messageSender
|
|
notificationsManager:(id<NotificationsProtocol>)notificationsManager
|
|
profileManager:(id<ProfileManagerProtocol>)profileManager NS_DESIGNATED_INITIALIZER;
|
|
|
|
- (instancetype)init NS_UNAVAILABLE;
|
|
|
|
+ (instancetype)sharedEnv;
|
|
+ (void)setSharedEnv:(TextSecureKitEnv *)env;
|
|
|
|
@property (nonatomic, readonly) id<OWSCallMessageHandler> callMessageHandler;
|
|
@property (nonatomic, readonly) id<ContactsManagerProtocol> contactsManager;
|
|
@property (nonatomic, readonly) OWSMessageSender *messageSender;
|
|
@property (nonatomic, readonly) id<NotificationsProtocol> notificationsManager;
|
|
@property (nonatomic, readonly) id<ProfileManagerProtocol> profileManager;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|