2015-12-07 03:31:43 +01:00
|
|
|
//
|
2017-03-30 18:37:22 +02:00
|
|
|
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
|
2015-12-07 03:31:43 +01:00
|
|
|
//
|
|
|
|
|
2016-12-18 22:08:26 +01:00
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
2015-12-07 03:31:43 +01:00
|
|
|
|
2016-12-18 22:08:26 +01:00
|
|
|
@protocol ContactsManagerProtocol;
|
2017-03-30 18:37:22 +02:00
|
|
|
@class OWSMessageSender;
|
2016-12-18 22:08:26 +01:00
|
|
|
@protocol NotificationsProtocol;
|
|
|
|
@protocol OWSCallMessageHandler;
|
2017-08-02 19:12:26 +02:00
|
|
|
@protocol ProfileManagerProtocol;
|
2015-12-07 03:31:43 +01:00
|
|
|
|
|
|
|
@interface TextSecureKitEnv : NSObject
|
|
|
|
|
2016-12-18 22:08:26 +01:00
|
|
|
- (instancetype)initWithCallMessageHandler:(id<OWSCallMessageHandler>)callMessageHandler
|
|
|
|
contactsManager:(id<ContactsManagerProtocol>)contactsManager
|
2017-03-30 18:37:22 +02:00
|
|
|
messageSender:(OWSMessageSender *)messageSender
|
2017-08-02 19:12:26 +02:00
|
|
|
notificationsManager:(id<NotificationsProtocol>)notificationsManager
|
|
|
|
profileManager:(id<ProfileManagerProtocol>)profileManager NS_DESIGNATED_INITIALIZER;
|
2016-12-18 22:08:26 +01:00
|
|
|
|
|
|
|
- (instancetype)init NS_UNAVAILABLE;
|
2015-12-07 03:31:43 +01:00
|
|
|
|
|
|
|
+ (instancetype)sharedEnv;
|
2016-12-18 22:08:26 +01:00
|
|
|
+ (void)setSharedEnv:(TextSecureKitEnv *)env;
|
|
|
|
|
2017-03-30 18:37:22 +02:00
|
|
|
@property (nonatomic, readonly) id<OWSCallMessageHandler> callMessageHandler;
|
|
|
|
@property (nonatomic, readonly) id<ContactsManagerProtocol> contactsManager;
|
|
|
|
@property (nonatomic, readonly) OWSMessageSender *messageSender;
|
|
|
|
@property (nonatomic, readonly) id<NotificationsProtocol> notificationsManager;
|
2017-08-02 19:12:26 +02:00
|
|
|
@property (nonatomic, readonly) id<ProfileManagerProtocol> profileManager;
|
2015-12-07 03:31:43 +01:00
|
|
|
|
2016-11-08 02:42:44 +01:00
|
|
|
@end
|
2016-12-18 22:08:26 +01:00
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|