Statistics
| Branch: | Tag: | Revision:

chatsecureios / ChatSecure / Classes / Controllers / XMPP / OTRXMPPManager_Private.h @ 8d76e2e3

History | View | Annotate | Download (2.63 KB)

1
//
2
//  OTRXMPPManager_Private.h
3
//  ChatSecure
4
//
5
//  Created by Chris Ballinger on 11/5/16.
6
//  Copyright © 2016 Chris Ballinger. All rights reserved.
7
//
8

    
9
#import "OTRXMPPManager.h"
10
#import "OTRCertificatePinning.h"
11
#import "OTRXMPPBuddyManager.h"
12
#import <ChatSecureCore/ChatSecureCore-Swift.h>
13
#import "OTRYapDatabaseRosterStorage.h"
14
#import "OTRXMPPRoomManager.h"
15
#import "OTRXMPPBuddyTimers.h"
16
#import "OTRXMPPStream.h"
17

    
18
NS_ASSUME_NONNULL_BEGIN
19
@interface OTRXMPPManager() <OTRCertificatePinningDelegate>
20

    
21
@property (nonatomic, strong, readonly) OTRXMPPStream *xmppStream;
22
@property (nonatomic, strong, readonly) XMPPReconnect *xmppReconnect;
23
@property (nonatomic, strong, readonly) XMPPvCardTempModule *xmppvCardTempModule;
24
@property (nonatomic, strong, readonly) XMPPvCardAvatarModule *xmppvCardAvatarModule;
25
@property (nonatomic, strong, readonly) XMPPCapabilitiesCoreDataStorage *xmppCapabilitiesStorage;
26
@property (nonatomic, strong, readonly) OTRYapDatabaseRosterStorage * xmppRosterStorage;
27
@property (nonatomic, strong) OTRCertificatePinning * certificatePinningModule;
28

    
29
@property (nonatomic, strong, readonly) XMPPStreamManagement *streamManagement;
30

    
31
@property (nonatomic, strong, readonly) OTRXMPPBuddyManager* xmppBuddyManager;
32
@property (nonatomic, strong, readonly) OMEMOModule *omemoModule;
33
@property (nonatomic, strong, nullable) OTRXMPPChangePasswordManager *changePasswordManager;
34

    
35
@property (nonatomic, strong, readonly) XMPPMessageDeliveryReceipts *deliveryReceipts;
36
@property (nonatomic, strong, readonly) OTRXMPPMessageStatusModule *messageStatusModule;
37
@property (nonatomic, strong, readonly) OTRStreamManagementDelegate *streamManagementDelegate;
38
@property (nonatomic, strong, readonly) XMPPStanzaIdModule *stanzaIdModule;
39

    
40

    
41
@property (nonatomic, strong, readonly) dispatch_queue_t workQueue;
42
@property (nonatomic, strong, readonly) NSMutableDictionary<NSString*,OTRXMPPBuddyTimers*> * buddyTimers;
43

    
44
@property (nonatomic, strong, nullable) OTRXMPPChangeAvatar *changeAvatar;
45

    
46
@property (nonatomic, readwrite) BOOL isRegisteringNewAccount;
47
@property (nonatomic, readwrite) BOOL userInitiatedConnection;
48
@property (nonatomic, readwrite) OTRLoginStatus loginStatus;
49
@property (atomic, readwrite) OTRProtocolConnectionStatus connectionStatus;
50

    
51
- (void)setupStream;
52
- (void)teardownStream;
53

    
54
- (void)goOnline;
55
- (void)goOffline;
56
- (void)failedToConnect:(NSError *)error;
57

    
58
/** wtf. why isn't this being picked up by OTRProtocol */
59
- (void) connectUserInitiated:(BOOL)userInitiated;
60

    
61
/** Return a newly allocated stream object. This is overridden in OTRXMPPTorManager to use ProxyXMPPStream instead of OTRXMPPStream */
62
- (OTRXMPPStream*) newStream;
63

    
64
@end
65
NS_ASSUME_NONNULL_END