source: libfaim/aim_cbtypes.h @ 5d9c664

barnowl_perlaimdebianowlrelease-1.10release-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
Last change on this file since 5d9c664 was 862371b, checked in by James M. Kretchmar <kretch@mit.edu>, 21 years ago
*** empty log message ***
  • Property mode set to 100644
File size: 8.0 KB
Line 
1/*
2 * AIM Callback Types
3 *
4 */
5#ifndef __AIM_CBTYPES_H__
6#define __AIM_CBTYPES_H__
7
8/*
9 * SNAC Families.
10 */
11#define AIM_CB_FAM_ACK 0x0000
12#define AIM_CB_FAM_GEN 0x0001
13#define AIM_CB_FAM_LOC 0x0002
14#define AIM_CB_FAM_BUD 0x0003
15#define AIM_CB_FAM_MSG 0x0004
16#define AIM_CB_FAM_ADS 0x0005
17#define AIM_CB_FAM_INV 0x0006
18#define AIM_CB_FAM_ADM 0x0007
19#define AIM_CB_FAM_POP 0x0008
20#define AIM_CB_FAM_BOS 0x0009
21#define AIM_CB_FAM_LOK 0x000a
22#define AIM_CB_FAM_STS 0x000b
23#define AIM_CB_FAM_TRN 0x000c
24#define AIM_CB_FAM_CTN 0x000d /* ChatNav */
25#define AIM_CB_FAM_CHT 0x000e /* Chat */
26#define AIM_CB_FAM_SCH 0x000f /* "New" search */
27#define AIM_CB_FAM_SSI 0x0013 /* Server stored information */
28#define AIM_CB_FAM_ICQ 0x0015
29#define AIM_CB_FAM_ATH 0x0017
30#define AIM_CB_FAM_EML 0x0018
31#define AIM_CB_FAM_OFT 0xfffe /* OFT/Rvous */
32#define AIM_CB_FAM_SPECIAL 0xffff /* Internal libfaim use */
33
34/*
35 * SNAC Family: Ack.
36 *
37 * Not really a family, but treating it as one really
38 * helps it fit into the libfaim callback structure better.
39 *
40 */
41#define AIM_CB_ACK_ACK 0x0001
42
43/*
44 * SNAC Family: General.
45 */ 
46#define AIM_CB_GEN_ERROR 0x0001
47#define AIM_CB_GEN_CLIENTREADY 0x0002
48#define AIM_CB_GEN_SERVERREADY 0x0003
49#define AIM_CB_GEN_SERVICEREQ 0x0004
50#define AIM_CB_GEN_REDIRECT 0x0005
51#define AIM_CB_GEN_RATEINFOREQ 0x0006
52#define AIM_CB_GEN_RATEINFO 0x0007
53#define AIM_CB_GEN_RATEINFOACK 0x0008
54#define AIM_CB_GEN_RATECHANGE 0x000a
55#define AIM_CB_GEN_SERVERPAUSE 0x000b
56#define AIM_CB_GEN_SERVERRESUME 0x000d
57#define AIM_CB_GEN_REQSELFINFO 0x000e
58#define AIM_CB_GEN_SELFINFO 0x000f
59#define AIM_CB_GEN_EVIL 0x0010
60#define AIM_CB_GEN_SETIDLE 0x0011
61#define AIM_CB_GEN_MIGRATIONREQ 0x0012
62#define AIM_CB_GEN_MOTD 0x0013
63#define AIM_CB_GEN_SETPRIVFLAGS 0x0014
64#define AIM_CB_GEN_WELLKNOWNURL 0x0015
65#define AIM_CB_GEN_NOP 0x0016
66#define AIM_CB_GEN_DEFAULT 0xffff
67
68/*
69 * SNAC Family: Location Services.
70 */ 
71#define AIM_CB_LOC_ERROR 0x0001
72#define AIM_CB_LOC_REQRIGHTS 0x0002
73#define AIM_CB_LOC_RIGHTSINFO 0x0003
74#define AIM_CB_LOC_SETUSERINFO 0x0004
75#define AIM_CB_LOC_REQUSERINFO 0x0005
76#define AIM_CB_LOC_USERINFO 0x0006
77#define AIM_CB_LOC_WATCHERSUBREQ 0x0007
78#define AIM_CB_LOC_WATCHERNOT 0x0008
79#define AIM_CB_LOC_DEFAULT 0xffff
80
81/*
82 * SNAC Family: Buddy List Management Services.
83 */ 
84#define AIM_CB_BUD_ERROR 0x0001
85#define AIM_CB_BUD_REQRIGHTS 0x0002
86#define AIM_CB_BUD_RIGHTSINFO 0x0003
87#define AIM_CB_BUD_ADDBUDDY 0x0004
88#define AIM_CB_BUD_REMBUDDY 0x0005
89#define AIM_CB_BUD_REJECT 0x000a
90#define AIM_CB_BUD_ONCOMING 0x000b
91#define AIM_CB_BUD_OFFGOING 0x000c
92#define AIM_CB_BUD_DEFAULT 0xffff
93
94/*
95 * SNAC Family: Messeging Services.
96 */ 
97#define AIM_CB_MSG_ERROR 0x0001
98#define AIM_CB_MSG_PARAMINFO 0x0005
99#define AIM_CB_MSG_INCOMING 0x0007
100#define AIM_CB_MSG_EVIL 0x0009
101#define AIM_CB_MSG_MISSEDCALL 0x000a
102#define AIM_CB_MSG_CLIENTAUTORESP 0x000b
103#define AIM_CB_MSG_ACK 0x000c
104#define AIM_CB_MSG_MTN 0x0014
105#define AIM_CB_MSG_DEFAULT 0xffff
106
107/*
108 * SNAC Family: Advertisement Services
109 */ 
110#define AIM_CB_ADS_ERROR 0x0001
111#define AIM_CB_ADS_DEFAULT 0xffff
112
113/*
114 * SNAC Family: Invitation Services.
115 */ 
116#define AIM_CB_INV_ERROR 0x0001
117#define AIM_CB_INV_DEFAULT 0xffff
118
119/*
120 * SNAC Family: Administrative Services.
121 */ 
122#define AIM_CB_ADM_ERROR 0x0001
123#define AIM_CB_ADM_INFOCHANGE_REPLY 0x0005
124#define AIM_CB_ADM_DEFAULT 0xffff
125
126/*
127 * SNAC Family: Popup Messages
128 */ 
129#define AIM_CB_POP_ERROR 0x0001
130#define AIM_CB_POP_DEFAULT 0xffff
131
132/*
133 * SNAC Family: Misc BOS Services.
134 */ 
135#define AIM_CB_BOS_ERROR 0x0001
136#define AIM_CB_BOS_RIGHTSQUERY 0x0002
137#define AIM_CB_BOS_RIGHTS 0x0003
138#define AIM_CB_BOS_DEFAULT 0xffff
139
140/*
141 * SNAC Family: User Lookup Services
142 */ 
143#define AIM_CB_LOK_ERROR 0x0001
144#define AIM_CB_LOK_DEFAULT 0xffff
145
146/*
147 * SNAC Family: User Status Services
148 */ 
149#define AIM_CB_STS_ERROR 0x0001
150#define AIM_CB_STS_SETREPORTINTERVAL 0x0002
151#define AIM_CB_STS_REPORTACK 0x0004
152#define AIM_CB_STS_DEFAULT 0xffff
153
154/*
155 * SNAC Family: Translation Services
156 */ 
157#define AIM_CB_TRN_ERROR 0x0001
158#define AIM_CB_TRN_DEFAULT 0xffff
159
160/*
161 * SNAC Family: Chat Navigation Services
162 */ 
163#define AIM_CB_CTN_ERROR 0x0001
164#define AIM_CB_CTN_CREATE 0x0008
165#define AIM_CB_CTN_INFO 0x0009
166#define AIM_CB_CTN_DEFAULT 0xffff
167
168/*
169 * SNAC Family: Chat Services
170 */ 
171#define AIM_CB_CHT_ERROR 0x0001
172#define AIM_CB_CHT_ROOMINFOUPDATE 0x0002
173#define AIM_CB_CHT_USERJOIN 0x0003
174#define AIM_CB_CHT_USERLEAVE 0x0004
175#define AIM_CB_CHT_OUTGOINGMSG 0x0005
176#define AIM_CB_CHT_INCOMINGMSG 0x0006
177#define AIM_CB_CHT_DEFAULT 0xffff
178
179/*
180 * SNAC Family: "New" Search
181 *
182 * Most of these are actually special.
183 */ 
184#define AIM_CB_SCH_ERROR 0x0001
185#define AIM_CB_SCH_SEARCH 0x0002
186#define AIM_CB_SCH_RESULTS 0x0003
187
188/*
189 * SNAC Family: ICQ
190 *
191 * Most of these are actually special.
192 */ 
193#define AIM_CB_ICQ_ERROR 0x0001
194#define AIM_CB_ICQ_OFFLINEMSG 0x00f0
195#define AIM_CB_ICQ_OFFLINEMSGCOMPLETE 0x00f1
196#define AIM_CB_ICQ_SIMPLEINFO 0x00f2
197#define AIM_CB_ICQ_DEFAULT 0xffff
198
199/*
200 * SNAC Family: Server-Stored Buddy Lists
201 */
202#define AIM_CB_SSI_ERROR 0x0001
203#define AIM_CB_SSI_REQRIGHTS 0x0002
204#define AIM_CB_SSI_RIGHTSINFO 0x0003
205#define AIM_CB_SSI_REQLIST 0x0005
206#define AIM_CB_SSI_LIST 0x0006
207#define AIM_CB_SSI_ACTIVATE 0x0007
208#define AIM_CB_SSI_ADD 0x0008
209#define AIM_CB_SSI_MOD 0x0009
210#define AIM_CB_SSI_DEL 0x000A
211#define AIM_CB_SSI_SRVACK 0x000E
212#define AIM_CB_SSI_NOLIST 0x000F
213#define AIM_CB_SSI_EDITSTART 0x0011
214#define AIM_CB_SSI_EDITSTOP 0x0012
215
216/*
217 * SNAC Family: Authorizer
218 *
219 * Used only in protocol versions three and above.
220 *
221 */
222#define AIM_CB_ATH_ERROR 0x0001
223#define AIM_CB_ATH_LOGINREQEST 0x0002
224#define AIM_CB_ATH_LOGINRESPONSE 0x0003
225#define AIM_CB_ATH_AUTHREQ 0x0006
226#define AIM_CB_ATH_AUTHRESPONSE 0x0007
227
228/*
229 * SNAC Family: Email
230 *
231 * Used for getting information on the email address
232 * associated with your screen name.
233 *
234 */
235#define AIM_CB_EML_ERROR 0x0001
236#define AIM_CB_EML_SENDCOOKIES 0x0006
237#define AIM_CB_EML_MAILSTATUS 0x0007
238#define AIM_CB_EML_INIT 0x0016
239
240/*
241 * OFT Services
242 *
243 * See non-SNAC note below.
244 */
245#define AIM_CB_OFT_DIRECTIMCONNECTREQ 0x0001/* connect request -- actually an OSCAR CAP*/
246#define AIM_CB_OFT_DIRECTIMINCOMING 0x0002
247#define AIM_CB_OFT_DIRECTIMDISCONNECT 0x0003
248#define AIM_CB_OFT_DIRECTIMTYPING 0x0004
249#define AIM_CB_OFT_DIRECTIMINITIATE 0x0005
250
251/* had been removed, put back by kretch */
252#define AIM_CB_OFT_GETFILECONNECTREQ 0x0006 /* connect request -- actually an OSCAR CAP*/
253#define AIM_CB_OFT_GETFILELISTINGREQ 0x0007 /* OFT listing.txt request */
254#define AIM_CB_OFT_GETFILEFILEREQ 0x0008    /* received file request */
255#define AIM_CB_OFT_GETFILEFILESEND 0x0009   /* received file request confirm -- send data */
256#define AIM_CB_OFT_GETFILECOMPLETE 0x000a   /* received file send complete*/
257#define AIM_CB_OFT_GETFILEINITIATE 0x000b   /* request for file get acknowledge */
258#define AIM_CB_OFT_GETFILEDISCONNECT 0x000c   /* OFT connection disconnected.*/
259#define AIM_CB_OFT_GETFILELISTING 0x000d   /* OFT listing.txt received.*/
260#define AIM_CB_OFT_GETFILERECEIVE 0x000e   /* OFT file incoming.*/
261#define AIM_CB_OFT_GETFILELISTINGRXCONFIRM 0x000f
262#define AIM_CB_OFT_GETFILESTATE4 0x0010
263
264#define AIM_CB_OFT_SENDFILEFILEREQ 0x0011 /* started receiving file */
265#define AIM_CB_OFT_SENDFILEFILESEND 0x0012 /* buddy ready to for us to send */
266#define AIM_CB_OFT_SENDFILECOMPLETE 0x0013 /* send to buddy complete */
267#define AIM_CB_OFT_SENDFILEINITIATE 0x0014 /* connection to buddy initiated */
268
269
270/*
271 * SNAC Family: Internal Messages
272 *
273 * This isn't truely a SNAC family either, but using
274 * these, we can integrated non-SNAC services into
275 * the SNAC-centered libfaim callback structure.
276 *
277 */ 
278#define AIM_CB_SPECIAL_AUTHSUCCESS 0x0001
279#define AIM_CB_SPECIAL_AUTHOTHER 0x0002
280#define AIM_CB_SPECIAL_CONNERR 0x0003
281#define AIM_CB_SPECIAL_CONNCOMPLETE 0x0004
282#define AIM_CB_SPECIAL_FLAPVER 0x0005
283#define AIM_CB_SPECIAL_CONNINITDONE 0x0006
284#define AIM_CB_SPECIAL_IMAGETRANSFER 0x007
285#define AIM_CB_SPECIAL_MSGTIMEOUT 0x008
286#define AIM_CB_SPECIAL_UNKNOWN 0xffff
287#define AIM_CB_SPECIAL_DEFAULT AIM_CB_SPECIAL_UNKNOWN
288
289/* SNAC flags */
290#define AIM_SNACFLAGS_DESTRUCTOR 0x0001
291
292#endif/*__AIM_CBTYPES_H__ */
Note: See TracBrowser for help on using the repository browser.