-
Notifications
You must be signed in to change notification settings - Fork 1
/
MVChatConnection.h
149 lines (144 loc) · 5.42 KB
/
MVChatConnection.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
/**
* This header is generated by class-dump-z 0.2a.
* class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3.
*
* Source: (null)
*/
#import "MVChatConnection.h"
#import <Foundation/Foundation.h>
@class NSMutableDictionary, NSDictionary, MVChatUser, NSMutableSet, NSString, NSMutableArray, NSError, NSTimer, NSArray, NSDate, NSSet, NSURL, NSCharacterSet;
__attribute__((visibility("hidden")))
@interface MVChatConnection : NSObject {
NSMutableSet* _supportedFeatures;
int _status;
int _outgoingChatFormat;
unsigned _encoding;
NSString* uniqueID;
NSString* _npassword;
NSMutableDictionary* _joinedRooms;
MVChatUser* _localUser;
NSMutableDictionary* _roomsCache;
NSMutableArray* _roomsListArray;
NSMutableSet* _chatUserWatchRules;
NSDate* _cachedDate;
NSDate* _lastConnectAttempt;
NSTimer* _reconnectTimer;
NSString* _awayMessage;
NSMutableDictionary* _persistentInformation;
NSError* _lastError;
int _proxy;
NSString* _proxyServer;
NSString* _proxyUsername;
NSString* _proxyPassword;
unsigned short _proxyServerPort;
BOOL _secure;
BOOL _roomListDirty;
NSArray* _alternateNicks;
unsigned short _nextAltNickIndex;
unsigned _hash;
}
@property(readonly, assign) unsigned lag;
@property(readonly, assign) int status;
@property(readonly, assign, getter=isWaitingToReconnect) BOOL waitingToReconnect;
@property(readonly, assign, getter=isConnected) BOOL connected;
@property(copy) NSString* awayStatusMessage;
@property(readonly, assign) NSSet* chatUserWatchRules;
@property(readonly, assign) MVChatUser* localUser;
@property(readonly, assign) NSSet* knownChatUsers;
@property(readonly, assign) NSCharacterSet* chatRoomNamePrefixes;
@property(readonly, assign) NSSet* joinedChatRooms;
@property(assign) unsigned short proxyServerPort;
@property(copy) NSString* proxyServer;
@property(assign) int proxyType;
@property(copy) NSDictionary* persistentInformation;
@property(assign, getter=isSecure) BOOL secure;
@property(copy) NSString* proxyPassword;
@property(copy) NSString* proxyUsername;
@property(assign) int outgoingChatFormat;
@property(assign) unsigned short serverPort;
@property(copy) NSString* server;
@property(copy) NSString* username;
@property(copy) NSString* password;
@property(readonly, assign) NSString* certificatePassword;
@property(readonly, assign) NSString* certificateServiceName;
@property(copy) NSString* nicknamePassword;
@property(readonly, assign) NSString* nextAlternateNickname;
@property(copy) NSArray* alternateNicknames;
@property(readonly, assign) NSString* preferredNickname;
@property(copy) NSString* nickname;
@property(copy) NSString* realName;
@property(assign) unsigned encoding;
@property(readonly, assign) NSURL* url;
@property(readonly, assign) NSString* urlScheme;
@property(readonly, assign) NSError* lastError;
@property(readonly, assign) unsigned* supportedStringEncodings;
@property(readonly, assign) NSSet* supportedFeatures;
@property(readonly, assign) int type;
@property(retain) NSString* uniqueID;
+(BOOL)supportsURLScheme:(id)scheme;
+(id)defaultServerPortsForType:(int)type;
-(id)init;
-(id)_newStringWithBytes:(const char*)bytes length:(unsigned)length;
-(id)initWithType:(int)type;
-(id)initWithURL:(id)url;
-(id)initWithServer:(id)server type:(int)type port:(unsigned short)port user:(id)user;
-(void)finalize;
-(void)dealloc;
-(BOOL)respondsToSelector:(SEL)selector;
-(unsigned)hash;
-(BOOL)supportsFeature:(id)feature;
-(BOOL)supportsStringEncoding:(unsigned)encoding;
-(void)connect;
-(void)connectToServer:(id)server onPort:(unsigned short)port asUser:(id)user;
-(void)disconnect;
-(void)disconnectWithReason:(NSString*)reason;
-(BOOL)setCertificatePassword:(id)password;
-(void)publicKeyVerified:(id)verified andAccepted:(BOOL)accepted andAlwaysAccept:(BOOL)accept;
-(void)sendUserCommand:(id)command withArguments:(id)arguments;
-(void)sendRawMessage:(id)message;
-(void)sendRawMessage:(id)message immediately:(BOOL)immediately;
-(void)sendRawMessageWithFormat:(id)format;
-(void)sendRawMessageImmediatelyWithFormat:(id)format;
-(void)sendRawMessageWithComponents:(id)components;
-(void)sendRawMessageImmediatelyWithComponents:(id)components;
-(void)joinChatRoomsNamed:(id)named;
-(void)joinChatRoomNamed:(id)named;
-(void)joinChatRoomNamed:(id)named withPassphrase:(id)passphrase;
-(id)joinedChatRoomWithUniqueIdentifier:(id)uniqueIdentifier;
-(id)joinedChatRoomWithName:(id)name;
-(id)properNameForChatRoomNamed:(id)chatRoomNamed;
-(id)chatUsersWithNickname:(id)nickname;
-(id)chatUsersWithFingerprint:(id)fingerprint;
-(id)chatUserWithUniqueIdentifier:(id)uniqueIdentifier;
-(void)addChatUserWatchRule:(id)rule;
-(void)removeChatUserWatchRule:(id)rule;
-(void)fetchChatRoomList;
-(void)stopFetchingChatRoomList;
-(id)chatRoomListResults;
-(id)roomsListArray;
-(void)scheduleReconnectAttemptEvery:(double)every;
-(void)cancelPendingReconnectAttempts;
-(id)connectionThread;
-(void)disconn;
@end
@interface MVChatConnection (MVChatConnectionPrivate)
-(void)_systemWillSleep:(id)_system;
-(void)_systemDidWake:(id)_system;
-(void)_applicationWillTerminate:(id)_application;
-(void)_willConnect;
-(void)_didConnect;
-(void)_didNotConnect;
-(void)_willDisconnect;
-(void)disconn;
-(void)_didDisconnect;
-(void)clearRooms;
-(void)_postError:(id)error;
-(void)_setStatus:(int)status;
-(void)_addRoomToCache:(id)cache;
-(void)_sendRoomListUpdatedNotification;
-(void)_addJoinedRoom:(id)room;
-(void)_removeJoinedRoom:(id)room;
-(unsigned)_watchRulesMatchingUser:(id)user;
-(void)_markUserAsOnline:(id)online;
-(void)_markUserAsOffline:(id)offline;
@end