-
Notifications
You must be signed in to change notification settings - Fork 1
/
ChatManager.h
executable file
·311 lines (304 loc) · 12.3 KB
/
ChatManager.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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
/*
* Generated by class-dump 3.1.2.
*
* class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2007 by Steve Nygard.
*/
#import "/Users/jkb/work/whatsapp/client/iphone/2_8_6//Users/jkb/Work/whatsapp/client/iphone/2_8_6/.h"
#import "CLLocationManagerDelegate-Protocol.h"
#import "MKAnnotation-Protocol.h"
#import "WAChatStorageDelegate-Protocol.h"
#import "WAContactsStorageDelegate-Protocol.h"
#import "XMPPConnectionDelegate-Protocol.h"
@class CLLocation, CLLocationManager, CTCallCenter, NSArray, NSCalendar, NSDate, NSDateFormatter, NSMutableArray, NSMutableDictionary, NSMutableSet, NSNumberFormatter, NSString, NSThread, SoundEffect, UIAlertView, UIColor, UIFont, WAChatStorage, WAContactsStorage, XMPPConnection;
@interface ChatManager : /Users/jkb/work/whatsapp/client/iphone/2_8_6//Users/jkb/Work/whatsapp/client/iphone/2_8_6/ <WAChatStorageDelegate, WAContactsStorageDelegate, XMPPConnectionDelegate, CLLocationManagerDelegate, MKAnnotation>
{
NSString *_registrationURL;
NSString *_codeRequestURL;
NSString *_sameDeviceCheckURL;
NSString *_bingAPIKey;
NSString *_googleAPIKey;
NSString *_fsqClientID;
NSString *_fsqClientSecret;
NSArray *_pushSounds;
SoundEffect *_incomingSoundEffect;
SoundEffect *_outgoingSoundEffect;
SoundEffect *_pushSoundEffect;
SoundEffect *_groupSoundEffect;
NSString *_phoneNumber;
NSString *_countryCode;
NSString *_deviceToken;
NSString *_currentStatus;
struct {
unsigned int verificationInProgress:1;
unsigned int needReloadAddressBook:1;
unsigned int playOfflineMessageSound:1;
unsigned int vibrateEnabled:1;
unsigned int soundsEnabled:1;
unsigned int showMessagePreview:1;
unsigned int lastSeenEnabled:1;
unsigned int needLoadMap:1;
unsigned int connectionProblemAlertShown:1;
unsigned int popupMenuVisible:1;
} flags;
NSMutableArray *_statusList;
NSMutableSet *_chatSessionsToRefresh;
NSMutableSet *_groupMembersToRefresh;
NSMutableSet *_delegates;
XMPPConnection *_connection;
WAChatStorage *_storage;
WAContactsStorage *_contactsStorage;
int _connectionAttempts;
UIAlertView *_connectionUnavailableAlertView;
UIAlertView *_networkUnavailableAlertView;
int _newMessagesCounter;
long _lockTime;
CTCallCenter *_callCenter;
CLLocationManager *_sharedLocationManager;
CLLocation *_bestLocation;
NSMutableSet *_placeCache;
NSDate *_gOverQueryLimitDate;
NSThread *_addressBookThread;
NSThread *_chatThread;
void *_workerAddressBook;
void *_sharedAddressBook;
NSMutableDictionary *_contactColors;
NSNumberFormatter *_numberFormatter;
NSDateFormatter *_dateFormatter;
NSDateFormatter *_timeFormatter;
NSDateFormatter *_dateTimeFormatter;
NSDateFormatter *_fullDateFormatter;
NSCalendar *_sharedCalendar;
UIFont *_contactNameFont;
UIFont *_pushNameFont;
UIFont *_eventFont;
UIFont *_vCardFont;
UIFont *_messageFont;
UIFont *_messageFontArabic;
UIColor *_messageTextColor;
UIColor *_messageUrlColor;
UIColor *_messageHighlightedUrlColor;
NSMutableDictionary *_lastNotificationTimeForChat;
}
+ (id)colorPalette;
+ (id)sharedManager;
- (void)setGOverQueryLimitDate:(id)fp8;
- (id)gOverQueryLimitDate;
- (id)bestLocation;
- (void)setNewMessagesCounter:(int)fp8;
- (int)newMessagesCounter;
- (id)connection;
- (id)contactsStorage;
- (id)storage;
- (id)statusList;
- (void)setCurrentStatus:(id)fp8;
- (id)currentStatus;
- (id)deviceToken;
- (id)countryCode;
- (id)phoneNumber;
- (void)menuControllerDidHideMenu:(id)fp8;
- (void)menuControllerDidShowMenu:(id)fp8;
- (CDAnonymousStruct1)coordinate;
- (void)mapThumbnailDidFinishLoading:(id)fp8 userInfo:(id)fp12;
- (void)mapThumbnailDidFailLoadingWithError:(id)fp8 userInfo:(id)fp12;
- (void)locationManager:(id)fp8 didFailWithError:(id)fp12;
- (void)locationManager:(id)fp8 didUpdateToLocation:(id)fp12 fromLocation:(id)fp16;
- (void)sendLocalNotificationForMessage:(id)fp8 fromUser:(id)fp12;
- (BOOL)messageShouldBeMuted:(id)fp8;
- (void)saveNotificationTimeForMessage:(id)fp8;
- (void)changeRecoveryTokenFailedWithError:(id)fp8 withUserData:(id)fp12;
- (void)changeRecoveryTokenFinishedWithUserData:(id)fp8;
- (BOOL)addressBookContainsJID:(id)fp8;
- (void)xmppConnection:(id)fp8 passwordChanged:(id)fp12;
- (void)xmppConnection:(id)fp8 didNotSaveStatus:(id)fp12;
- (void)xmppConnectionDidSaveStatus:(id)fp8;
- (void)xmppConnection:(id)fp8 statusChangedFor:(id)fp12 status:(id)fp16;
- (void)xmppConnection:(id)fp8 dirtyFlagsReceived:(id)fp12;
- (void)xmppConnection:(id)fp8 profilePictureUploadRequestFor:(id)fp12 timestamp:(id)fp16;
- (void)xmppConnection:(id)fp8 profilePictureChangedFor:(id)fp12 identifier:(id)fp16 author:(id)fp20 name:(id)fp24 timestamp:(id)fp28;
- (void)xmppConnection:(id)fp8 subjectChanged:(id)fp12 forGroup:(id)fp16 name:(id)fp20 ujid:(id)fp24 timestamp:(id)fp28;
- (void)xmppConnection:(id)fp8 userRemoved:(id)fp12 fromGroup:(id)fp16 byUser:(id)fp20;
- (void)xmppConnection:(id)fp8 userAdded:(id)fp12 toGroup:(id)fp16;
- (void)xmppConnection:(id)fp8 groupRemoved:(id)fp12;
- (void)xmppConnection:(id)fp8 statusChanged:(id)fp12 forMessageWithStanzaID:(id)fp16 fromJID:(id)fp20;
- (void)xmppConnection:(id)fp8 chatStateChanged:(id)fp12 forJID:(id)fp16;
- (void)xmppConnection:(id)fp8 presenceChanged:(id)fp12 forJID:(id)fp16;
- (void)xmppConnection:(id)fp8 presenceChanged:(id)fp12;
- (void)xmppConnection:(id)fp8 lastActivityChanged:(id)fp12 forJID:(id)fp16;
- (void)xmppConnectionDidDisconnect:(id)fp8;
- (void)xmppConnectionDidNotAuthenticate:(id)fp8;
- (void)xmppConnectionDidAuthenticate:(id)fp8;
- (void)xmppConnectionDidConnect:(id)fp8;
- (void)xmppConnectionDidBeginConnect:(id)fp8;
- (void)xmppConnection:(id)fp8 stateChanged:(id)fp12;
- (void)xmppConnection:(id)fp8 networkStatusChanged:(id)fp12;
- (void)networkStatusChanged:(id)fp8;
- (void)showNetworkUnavailableAlert;
- (void)blacklistReceivedWithError:(id)fp8 userData:(id)fp12;
- (void)blacklistReceived:(id)fp8 userData:(id)fp12;
- (void)contactsStorage:(id)fp8 didUpdatePictureForJID:(id)fp12;
- (void)contactsStorageDidFinishContactsSync:(id)fp8;
- (void)contactsStorageDidFailToGenerateFavorites:(id)fp8;
- (void)contactsStorageDidGenerateFavorites:(id)fp8;
- (void)contactsStorageDidUpdateFavorites:(id)fp8;
- (void)contactsStorageDidUpdateStatus:(id)fp8;
- (void)contactsStorageDidUpdateContacts:(id)fp8;
- (BOOL)isRecipientExists:(id)fp8;
- (void)getPresenseForChatSession:(id)fp8;
- (id)contactForJID:(id)fp8;
- (void)chatStorageDidRemoveExistingStore:(id)fp8;
- (void)chatStorageDidInitializePSC:(id)fp8;
- (void)chatStorage:(id)fp8 didUpdateParticipantWithJID:(id)fp12;
- (void)chatStorageDidFinishHistoryImport:(id)fp8;
- (void)chatStorageDidReportImportProgress:(id)fp8;
- (void)chatStorageDidStartHistoryImport:(id)fp8;
- (void)updateChatSessionWithContactData:(id)fp8;
- (void)requestLocationUpdate;
- (void)chatStorage:(id)fp8 didDeleteMessagesInSession:(id)fp12;
- (void)chatStorage:(id)fp8 willDeleteChatSession:(id)fp12;
- (void)chatStorage:(id)fp8 didUpdateChatSession:(id)fp12;
- (void)chatStorage:(id)fp8 didDeleteChatSessionAtIndex:(id)fp12;
- (void)chatStorageDidDeleteChatSessions:(id)fp8;
- (void)chatStorageDidUpdateChatSessionList:(id)fp8;
- (void)chatStorageDidUpdateBlacklist:(id)fp8;
- (id)UIDelegateForMessage:(id)fp8;
- (void)mediaDownloadFailedForMessage:(id)fp8 withError:(id)fp12;
- (void)mediaUploadFailedForMessage:(id)fp8;
- (void)chatStorage:(id)fp8 didUpdateMessage:(id)fp12;
- (void)chatStorage:(id)fp8 didReceiveMessage:(id)fp12;
- (void)chatStorage:(id)fp8 didAddMessages:(id)fp12;
- (void)chatStorage:(id)fp8 didFailWithError:(id)fp12;
- (void)alertView:(id)fp8 clickedButtonAtIndex:(int)fp12;
- (void)fetcher:(id)fp8 finishedWithJSONData:(id)fp12 error:(id)fp16;
- (void)fetcher:(id)fp8 finishedWithRawData:(id)fp12 error:(id)fp16;
- (id)placeCache;
- (void)stopUpdatingLocation;
- (void)startUpdatingLocation;
- (void)useBestLocationResult;
- (void)loadMapForLocation:(id)fp8;
- (void)loadMapThumbnailForLocation:(id)fp8 delegate:(id)fp12 userInfo:(id)fp16 didFinishSelector:(SEL)fp20 didFailSelector:(SEL)fp24;
- (void)failedUploadNotifyForMessage:(id)fp8;
- (id)pushSettings;
- (void)reloadPushSounds;
- (id)fileNameOfPushSoundAtIndex:(unsigned int)fp8;
- (id)nameOfPushSoundAtIndex:(unsigned int)fp8;
- (id)nameForPushSound:(id)fp8;
- (int)indexForPushSound:(id)fp8;
- (id)pushSounds;
- (BOOL)isDelegateRegistered:(id)fp8;
- (void)unregisterDelegate:(id)fp8;
- (void)registerDelegate:(id)fp8;
- (void)saveStatusList;
- (void)deleteAllStatusMessages;
- (void)resetStatusMessages;
- (void)loadStatusMessages;
- (id)statusListFilePath;
- (void)resetFontSize;
- (id)messageHighlightedUrlColor;
- (id)messageUrlColor;
- (id)messageTextColor;
- (id)messageFontArabic;
- (id)messageFont;
- (id)vCardFont;
- (id)eventFont;
- (id)pushNameFont;
- (id)contactNameFont;
- (int)fontIndexForSize:(int)fp8;
- (int)fontSizeForIndex:(int)fp8;
- (id)fontNameForIndex:(int)fp8;
- (int)numberOfFonts;
- (id)fontName;
- (int)fontSize;
- (void)resetColors;
- (id)colorForJID:(id)fp8;
- (id)colorListFilePath;
- (void)postPhoneChangeNotification;
- (void)registerWithAuthCode:(id)fp8 delegate:(id)fp12 didFinishSelector:(SEL)fp16 didFailSelector:(SEL)fp20;
- (void)requestAuthCodeWithDelegate:(id)fp8 method:(id)fp12 didFinishSelector:(SEL)fp16 didFailSelector:(SEL)fp20;
- (void)getNewPasswordFailedWithError:(id)fp8;
- (void)getNewPasswordFinishedWithResult:(id)fp8;
- (void)sameDeviceCheckForPhone:(id)fp8 countryCode:(id)fp12 delegate:(id)fp16 didFinishSelector:(SEL)fp20 didFailSelector:(SEL)fp24;
- (void)resetAuthInfo;
- (void)initializeChat;
- (void)reloadFavorites;
- (void)forceContactsSync;
- (void)lastSeenRequestFailedWithError:(id)fp8 userInfo:(id)fp12;
- (void)lastSeenRequestFinished:(id)fp8 userInfo:(id)fp12;
- (void)requestLastSeenForJID:(id)fp8;
- (void)setLastSeenEnabled:(BOOL)fp8;
- (BOOL)lastSeenChangeAllowed;
- (BOOL)lastSeenEnabled;
- (void)dataRefreshContextDidSave:(id)fp8;
- (void)mergeChanges:(id)fp8;
- (void)refreshChats;
- (void)refreshChatSessionsForUnknownContactsWithContext:(id)fp8;
- (void)refreshChatSessionsForKnownContactsWithContext:(id)fp8;
- (BOOL)findContactInContext:(id)fp8 forGroupMember:(id)fp12;
- (BOOL)findContactInContext:(id)fp8 forChatSession:(id)fp12;
- (id)jpegDataForProfileThumbnail:(id)fp8;
- (id)jpegDataForProfilePicture:(id)fp8;
- (id)thumbnailForProfilePicture:(id)fp8;
- (id)profilePictureFromOriginal:(id)fp8 cropped:(id)fp12;
- (BOOL)validateProfilePicture:(id)fp8;
- (void)disableProfilePics;
- (BOOL)profilePicsEnabled;
- (void)resetPictureForJID:(id)fp8;
- (id)thumbnailForChatSession:(id)fp8;
- (id)imageForContactID:(int)fp8 jid:(id)fp12 ofSize:(int)fp16;
- (id)imageForContactRecord:(void *)fp8 ofSize:(int)fp12;
- (void)reset;
- (void)internalReset;
- (void)chatThreadMain;
- (void)startChatThread;
- (id)chatThread;
- (void)checkNeedsReloadData;
- (void)dummyTimerRountine:(id)fp8;
- (void)abThreadMain;
- (void)startAddressBookThread;
- (id)addressBookThread;
- (void)reloadAddressBook:(void *)fp8;
- (id)callbackDictionaryForDelegate:(id)fp8 userInfo:(id)fp12 finishedSelector:(SEL)fp16 failedSelector:(SEL)fp20;
- (id)stringFromDate:(id)fp8 format:(id)fp12;
- (id)sharedCalendar;
- (void)initiateCall:(id)fp8;
- (void)initiateCallWithURL:(id)fp8;
- (void)setCallWarningShown:(BOOL)fp8;
- (BOOL)callWarningShown;
- (void)initializeIPod;
- (id)sizeStringFromLongLong:(long long)fp8;
- (id)localizedStringWithFormat:(id)fp8 number:(id)fp12;
- (id)fullDateFormatter;
- (id)dateTimeFormatter;
- (id)timeFormatter;
- (id)dateFormatter;
- (id)numberFormatter;
- (void *)sharedAddressBook;
- (void *)workerAddressBook;
- (id)outgoingSoundEffect;
- (id)incomingSoundEffect;
- (id)groupSoundEffect;
- (id)pushSoundEffect;
- (id)sharedLocationManager;
- (void)setDeviceToken:(id)fp8;
- (void)setShowMessagePreview:(BOOL)fp8;
- (BOOL)showMessagePreview;
- (void)setVibrateEnabled:(BOOL)fp8;
- (BOOL)vibrateEnabled;
- (void)setChatSoundsEnabled:(BOOL)fp8;
- (BOOL)chatSoundsEnabled;
- (BOOL)popupMenuVisible;
- (void)setNeedReloadAddressBook:(BOOL)fp8;
- (BOOL)needReloadAddressBook;
- (void)setVerificationInProgress:(BOOL)fp8;
- (BOOL)verificationInProgress;
- (id)fsqClientSecret;
- (id)fsqClientID;
- (id)googleAPIKey;
- (id)bingAPIKey;
- (id)sameDeviceCheckURL;
- (id)codeRequestURL;
- (id)registrationURL;
- (id)fullPhoneNumber;
- (void)setCountryCode:(id)fp8 phoneNumber:(id)fp12;
- (void)dealloc;
- (id)init;
@end