forked from quicksilver/com.apple.AddressBook-qsplugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ABTelephony.h
370 lines (339 loc) · 9.67 KB
/
ABTelephony.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
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
/*
* Generated by class-dump (version 2.1.5).
*
* class-dump is Copyright (C) 1997, 1999, 2000, 2001 by Steve Nygard.
*/
/*
* File: /Applications/Address Book.app/Contents/Resources/Telephony.bundle/Contents/MacOS/Telephony
*/
#import <AddressBook/AddressBook.h>
@protocol ABPhoneStatusProtocol
- (void)statusChangedTo:(int)fp8;
@end
@interface ABConnectButton:NSView <ABPhoneStatusProtocol>
{
ABPhoneConnection *_connection;
int _status;
NSMutableArray *_images;
int _searchFrame;
NSTimer *_statusAnimationTimer;
NSMenu *_contextMenu;
char _hit;
}
- findImageNamed:fp8;
- initWithFrame:(struct _NSRect)fp8;
- (void)dealloc;
- (void)setConnection:fp8;
- (void)statusChangedTo:(int)fp8;
- (void)advanceAnimation;
- (char)mouseDownCanMoveWindow;
- (void)mouseDown:fp8;
- (void)mouseDragged:fp8;
- (void)toggleState;
- (void)mouseUp:fp8;
- (void)keyDown:fp8;
- (char)acceptsFirstResponder;
- (char)becomeFirstResponder;
- (char)resignFirstResponder;
- (void)drawRect:(struct _NSRect)fp8;
@end
@interface ABConnectionWatcher:NSObject
{
ABPhoneConnection *phoneConnection;
NSMutableArray *_activePhonePanels;
}
- initWithPhoneConnection:fp8;
- (void)dealloc;
- (void)connectionTerminated;
- phoneConnection;
- findActivePhonePanelCreate:(char)fp8;
- (void)ringReceived;
- (void)removePhonePanel:fp8;
- (void)clipReceived:fp8;
- (void)parseCallerNumber:fp8;
- (void)elipReceived:fp8;
- (void)parseCallerIDName:fp8;
- (void)parseCallWaiting:fp8;
- (void)parseNewSMSList:fp8;
- (void)fetchNextBitsForSMSMessage:fp8;
- (void)displayInboundSMSMessage:fp8;
- (void)okResults:fp8 forCommand:fp12;
- (void)receivedERROR;
@end
@interface ABOBEXController:NSObject
{
NSProgressIndicator *indicator;
NSWindow *window;
NSTextField *labelField;
NSButton *doneButton;
NSWindow *_mainWindow;
NSArray *_people;
IOBluetoothOBEXSession *_OBEXSession;
IOBluetoothDevice *_OBEXDevice;
IOBluetoothSDPServiceRecord *_serviceRecord;
char _reconnectToPhone;
char _abortIsDesired;
char _transferInProgress;
char _done;
NSData *_tempPutDataBuffer;
unsigned int _currentDataSize;
unsigned int _dataSentSoFar;
int _error;
struct __CFData *_putHeadersDataRef;
NSData *_currentData;
unsigned short _maxPacketLength;
NSTimer *_abortTimer;
NSTimer *_waitingForPhoneTimer;
unsigned int _lastFileOffset;
}
- init;
- (void)cleanupWaitingTimer;
- (void)dealloc;
- (void)setLabelString:fp8;
- (void)presentWaitingForPhone;
- (void)putUpSheet;
- (void)sheetDidEnd:fp8 returnCode:(int)fp12 contextInfo:(void *)fp16;
- (void)tearDownSheet;
- vCardData;
- (void)cancelTransfer:fp8;
- (void)abortTimerFired:fp8;
- (char)isASyncedDevice:(struct OpaqueIOBluetoothObjectRef *)fp8;
- (void)createAdHocOBEXConnection;
- (void)finishCreatingAdHocOBEXConnection;
- (void)transportConnectionCallback:(void *)fp8 status:(int)fp12;
- (void)SessionResponseCallback:(struct OBEXSessionEvent *)fp8;
- (void)OBEXConnectHandler:(struct OBEXConnectCommandResponseData *)fp8;
- (void)OBEXPutHandler:(struct OBEXPutCommandResponseData *)fp8;
- (void)OBEXAbortHandler:(struct OBEXAbortCommandResponseData *)fp8;
- (void)OBEXDisconnectHandler:(struct OBEXDisconnectCommandResponseData *)fp8;
- (void)completeTransfer:fp8;
- (void)startFilePut;
- getNextFileChunkOptionalHeaderLength:(unsigned long)fp8 isLastChunk:(STR)fp12;
- (void)updateUI:(int)fp8 errorCode:(int)fp12 bytesSent:(int)fp16 bytesTotal:(int)fp20;
- (void)closeCurrentConnection;
- (void)reopenCurrentConnection;
- (void)sendPeople:fp8 fromWindow:fp12;
@end
@interface ABPhoneConnection:NSObject
{
char sendBuffer[1000];
int offset;
NSMutableArray *commandArray;
NSMutableArray *unsolicitCodeHandlers;
ABConnectionWatcher *connectionWatcher;
NSData *smsMessageData;
SEL nextLineSelector;
id nextLineOwner;
id _statusDelegate;
ABSendSMSController *SMSSendController;
ABReceiveSMSController *SMSReceiveController;
int connectionStatus;
IOBluetoothSDPServiceRecord *_serviceRecord;
IOBluetoothRFCOMMChannel *_RFCOMMChannel;
struct OpaqueIOBluetoothDeviceSearchRef *_searchRef;
NSMutableDictionary *_deviceCommandSet;
NSMutableArray *_allCommandSets;
}
- (void)commonInit;
- initWithServiceRecord:fp8;
- initWithCoder:fp8;
- (void)encodeWithCoder:fp8;
- (void)dealloc;
- (void)applicationWillTerminate:fp8;
- (void)_setupOpenConnection;
- (void)connectionComplete:fp8 status:(int)fp12;
- (void)openConnection;
- (void)connectionTerminated;
- (void)closeConnection;
- (void)setConnectionStatus:(int)fp8;
- (int)connectionStatus;
- (void)setStatusDelegate:fp8;
- statusDelegate;
- (void)handleRead:(void *)fp8 ofSize:(unsigned short)fp12;
- (void)setSMSMessageData:fp8;
- deviceCommandForKey:fp8;
- (void)writePhoneString:fp8;
- (void)writePhoneString:fp8 withSelector:(SEL)fp12 withOwner:fp16;
- (void)setNextLineOwner:fp8 andSelector:(SEL)fp12;
- (void)sendCommandData:fp8;
- (void)sendCommand:fp8;
- (void)okResults:fp8 forCommand:fp12;
- (char)ATIResult:fp8 matchesDeviceFamily:fp12;
- (void)checkForATIResults:fp8;
- (void)registerSelector:(SEL)fp8 withOwner:fp12 forUnsolicitedCode:fp16;
- (void)ringReceived;
- (void)parseResponse:(STR)fp8 withLength:(int)fp12;
- (void)processQueuedCommands;
- (void)receivedERROR;
- (void)handleErrorResponse;
- (void)okToSend:fp8;
- phoneName;
- (void)setServiceRecord:fp8;
- serviceRecord;
- (char)canSendSMS;
- (char)canDial;
@end
@interface ABPhonePanelController:NSObject
{
NSButton *releaseButton;
NSButton *answerButton;
NSButton *releaseAndAnswerButton;
NSButton *SMSButton;
NSButton *saveButton;
NSTextField *phoneNameField;
NSTextField *phoneNumberField;
NSImageView *phoneIcon;
NSTextField *ringCountLabel;
NSWindow *window;
ABConnectionWatcher *connectionWatcher;
NSString *callerNumber;
NSString *callerName;
ABPerson *callerRecord;
NSString *callerIdentifier;
NSTimer *timer;
NSTimer *cancelRingsTimer;
char wantsRings;
int ringCount;
char hasACallWaiting;
char hasLineData;
}
- initWithConnectionWatcher:fp8;
- (void)dealloc;
- (void)awakeFromNib;
- (char)wantsRings;
- (void)setCallerName:fp8;
- (void)setCallerNumber:fp8;
- (void)setHasACallWaiting:(char)fp8;
- (char)hasLineData;
- (void)setCLIP:fp8;
- (void)setCallWaiting:fp8;
- (void)setCallerRecord:fp8 identifier:fp12;
- callerRecord;
- (void)cancelRingRequestAfterDelay:(int)fp8;
- (void)cancelRingRequest;
- (void)decline;
- (void)accept;
- (void)connectionTerminated;
- _model;
- (void)handleSaveButton:fp8;
- (void)handleReleaseAndAnswer:fp8;
- (void)handleAcceptButton:fp8;
- (void)handleDeclineButton:fp8;
- (void)handleSMSButton:fp8;
- (void)sheetDidEnd:fp8 returnCode:(int)fp12 contextInfo:fp16;
- (void)presentUnknownLabel;
- (void)ringReceived;
- autorelease;
- (oneway void)release;
- (void)closeIncomingCallPanel;
- (void)handleTimer:fp8;
- (void)okResults:fp8 forCommand:fp12;
- (void)receivedERROR;
@end
@interface ABReceiveSMSController:NSObject
{
ABConnectionWatcher *connectionWatcher;
NSData *vCard;
ABSMSMessage *message;
ABPerson *callerRecord;
NSString *callerIdentifier;
NSButton *saveButton;
NSTextField *phoneName;
NSTextField *phoneNumber;
NSTextView *smsText;
NSWindow *window;
id personIcon;
}
- initWithConnectionWatcher:fp8;
- (void)dealloc;
- (void)awakeFromNib;
- (void)setMessage:fp8;
- (void)setCallerRecord:fp8 identifier:fp12;
- (void)handleSave:fp8;
- (void)handleOK:fp8;
- (void)handleCancel:fp8;
- (void)handleReply:fp8;
- (void)sheetDidEnd:fp8 returnCode:(int)fp12 contextInfo:fp16;
@end
@interface ABSendSMSController:NSObject
{
NSTextView *message;
NSTextField *messageCount;
NSTextField *messageToNumber;
NSTextField *messageToName;
NSButton *sendButton;
NSPanel *window;
NSString *displayedPhoneNumber;
NSString *phoneNumber;
NSString *phoneName;
ABPhoneConnection *phoneConnection;
}
- initWithPhoneNumber:fp8 name:fp12 andConnection:fp16;
- initWithPerson:fp8 identifier:fp12 andConnection:fp16;
- (void)dealloc;
- window;
- (void)awakeFromNib;
- (void)cancel:fp8;
- (char)containsUnicodeChars:fp8;
- (void)sendMessage:fp8;
- (void)updateMessageCount:fp8;
- (char)textView:fp8 shouldChangeTextInRange:(struct _NSRange)fp12 replacementString:fp20;
- (void)textDidChange:fp8;
@end
@interface ABSMSMessage:NSObject
{
int SCALength;
NSString *SCA;
NSString *SMSDeliver;
int addressLength;
NSString *typeOfAddress;
NSString *senderNumber;
NSString *protocolID;
NSString *dataCodingScheme;
NSString *timeStamp;
int userDataLength;
NSString *userData;
NSString *unencodedMessage;
NSString *unencodedPhoneNumber;
char useGSMPhoneScheme;
}
- initWithPDUString:fp8;
- initWithMessage:fp8 andPhoneNumber:fp12;
- (void)dealloc;
- message;
- containedVCard;
- phoneNumber;
- description;
- pduData;
@end
@interface ABTelephonyController:NSObject
{
ABPhoneConnection *_primaryConnection;
ABConnectButton *_connectButton;
NSView *_contentView;
}
+ (void)load;
+ sharedTelephonyController;
+ mainWindowController;
- init;
- (void)finishSetup;
- (void)dealloc;
- (void)startConnectingToPrimaryPhone;
- inputController;
- (void)setupAddressBookUI;
- (char)validateMenuItem:fp8;
- (void)dialPhone:fp8;
- (void)SMSMessagePhone:fp8;
- (void)sheetDidEnd:fp8 returnCode:(int)fp12 contextInfo:fp16;
- peopleInRecords:fp8;
- (void)sendThisCard:fp8;
- (char)isConnectionPaired:fp8;
- primaryConnection;
- (void)removePrimaryConnection;
- discoverNewPrimaryConnection;
- (void)selectPhone;
- titleForRollOverIdentifier:fp8 withSelection:fp12;
- propertyForRollOverIdentifier:fp8;
- (char)shouldEnableRollOverIdentifier:fp8 withSelection:fp12;
- (void)chooseRollOverIdentifier:fp8 withSelection:fp12;
@end