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.
47 lines
1.5 KiB
C
47 lines
1.5 KiB
C
8 years ago
|
//
|
||
|
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
|
||
|
//
|
||
|
|
||
8 years ago
|
#import "OWSPreferences.h"
|
||
8 years ago
|
#import <SignalServiceKit/TSStorageHeaders.h>
|
||
10 years ago
|
|
||
11 years ago
|
/**
|
||
|
*
|
||
|
* Environment is a data and data accessor class.
|
||
|
* It handles application-level component wiring in order to support mocks for testing.
|
||
|
* It also handles network configuration for testing/deployment server configurations.
|
||
11 years ago
|
*
|
||
11 years ago
|
**/
|
||
|
|
||
8 years ago
|
@class ContactsUpdater;
|
||
9 years ago
|
@class OWSContactsManager;
|
||
8 years ago
|
@class OWSMessageSender;
|
||
9 years ago
|
@class TSGroupThread;
|
||
9 years ago
|
@class TSNetworkManager;
|
||
8 years ago
|
@class TSThread;
|
||
|
@class UINavigationController;
|
||
11 years ago
|
|
||
|
@interface Environment : NSObject
|
||
9 years ago
|
|
||
8 years ago
|
- (instancetype)initWithContactsManager:(OWSContactsManager *)contactsManager
|
||
|
contactsUpdater:(ContactsUpdater *)contactsUpdater
|
||
|
networkManager:(TSNetworkManager *)networkManager
|
||
|
messageSender:(OWSMessageSender *)messageSender;
|
||
9 years ago
|
|
||
9 years ago
|
@property (nonatomic, readonly) OWSContactsManager *contactsManager;
|
||
9 years ago
|
@property (nonatomic, readonly) ContactsUpdater *contactsUpdater;
|
||
|
@property (nonatomic, readonly) TSNetworkManager *networkManager;
|
||
9 years ago
|
@property (nonatomic, readonly) OWSMessageSender *messageSender;
|
||
8 years ago
|
@property (nonatomic, readonly) OWSPreferences *preferences;
|
||
11 years ago
|
|
||
11 years ago
|
@property (nonatomic, readonly, weak) UINavigationController *signUpFlowNavigationController;
|
||
11 years ago
|
|
||
9 years ago
|
+ (Environment *)getCurrent;
|
||
|
+ (void)setCurrent:(Environment *)curEnvironment;
|
||
11 years ago
|
|
||
8 years ago
|
+ (OWSPreferences *)preferences;
|
||
11 years ago
|
|
||
11 years ago
|
- (void)setSignUpFlowNavigationController:(UINavigationController *)signUpFlowNavigationController;
|
||
11 years ago
|
|
||
11 years ago
|
@end
|