Mercurial > pidgin.yaz
annotate src/protocols/oscar/aim_cbtypes.h @ 4173:b66f960bfe60
[gaim-migrate @ 4403]
So type is actually 1 byte, and not 2.
Something about an ass out of u and me.
This should make multi-recipient ICQ messages work.
It also fixes a little mistake that caused ICQ URLs,
auth requests, pager messages, emails, and ICQ cotact
sending thingies to not show up. I don't think that
bug existed for more than a more days.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 02 Jan 2003 22:22:38 +0000 |
parents | 1a5dcfa1823e |
children | 9f729d6d88a6 |
rev | line source |
---|---|
2086 | 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 */ | |
3952 | 26 #define AIM_CB_FAM_SCH 0x000f /* "New" search */ |
2991 | 27 #define AIM_CB_FAM_SSI 0x0013 /* Server stored information */ |
2706
e841b14b5b89
[gaim-migrate @ 2719]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2675
diff
changeset
|
28 #define AIM_CB_FAM_ICQ 0x0015 |
2086 | 29 #define AIM_CB_FAM_ATH 0x0017 |
3694 | 30 #define AIM_CB_FAM_EML 0x0018 |
2086 | 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 | |
3212 | 102 #define AIM_CB_MSG_CLIENTAUTORESP 0x000b |
2086 | 103 #define AIM_CB_MSG_ACK 0x000c |
3595 | 104 #define AIM_CB_MSG_MTN 0x0014 |
2086 | 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 /* | |
3952 | 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 /* | |
2706
e841b14b5b89
[gaim-migrate @ 2719]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2675
diff
changeset
|
189 * SNAC Family: ICQ |
e841b14b5b89
[gaim-migrate @ 2719]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2675
diff
changeset
|
190 * |
e841b14b5b89
[gaim-migrate @ 2719]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2675
diff
changeset
|
191 * Most of these are actually special. |
e841b14b5b89
[gaim-migrate @ 2719]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2675
diff
changeset
|
192 */ |
e841b14b5b89
[gaim-migrate @ 2719]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2675
diff
changeset
|
193 #define AIM_CB_ICQ_ERROR 0x0001 |
e841b14b5b89
[gaim-migrate @ 2719]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2675
diff
changeset
|
194 #define AIM_CB_ICQ_OFFLINEMSG 0x00f0 |
e841b14b5b89
[gaim-migrate @ 2719]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2675
diff
changeset
|
195 #define AIM_CB_ICQ_OFFLINEMSGCOMPLETE 0x00f1 |
2742
6f527cbd899d
[gaim-migrate @ 2755]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2706
diff
changeset
|
196 #define AIM_CB_ICQ_SIMPLEINFO 0x00f2 |
4151 | 197 #define AIM_CB_ICQ_ALLINFO 0x00f3 |
2706
e841b14b5b89
[gaim-migrate @ 2719]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2675
diff
changeset
|
198 #define AIM_CB_ICQ_DEFAULT 0xffff |
e841b14b5b89
[gaim-migrate @ 2719]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2675
diff
changeset
|
199 |
e841b14b5b89
[gaim-migrate @ 2719]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2675
diff
changeset
|
200 /* |
2991 | 201 * SNAC Family: Server-Stored Buddy Lists |
202 */ | |
203 #define AIM_CB_SSI_ERROR 0x0001 | |
204 #define AIM_CB_SSI_REQRIGHTS 0x0002 | |
205 #define AIM_CB_SSI_RIGHTSINFO 0x0003 | |
206 #define AIM_CB_SSI_REQLIST 0x0005 | |
207 #define AIM_CB_SSI_LIST 0x0006 | |
208 #define AIM_CB_SSI_ACTIVATE 0x0007 | |
209 #define AIM_CB_SSI_ADD 0x0008 | |
210 #define AIM_CB_SSI_MOD 0x0009 | |
211 #define AIM_CB_SSI_DEL 0x000A | |
212 #define AIM_CB_SSI_SRVACK 0x000E | |
213 #define AIM_CB_SSI_NOLIST 0x000F | |
214 #define AIM_CB_SSI_EDITSTART 0x0011 | |
215 #define AIM_CB_SSI_EDITSTOP 0x0012 | |
216 | |
217 /* | |
2086 | 218 * SNAC Family: Authorizer |
219 * | |
220 * Used only in protocol versions three and above. | |
221 * | |
222 */ | |
223 #define AIM_CB_ATH_ERROR 0x0001 | |
224 #define AIM_CB_ATH_LOGINREQEST 0x0002 | |
225 #define AIM_CB_ATH_LOGINRESPONSE 0x0003 | |
226 #define AIM_CB_ATH_AUTHREQ 0x0006 | |
227 #define AIM_CB_ATH_AUTHRESPONSE 0x0007 | |
228 | |
229 /* | |
3694 | 230 * SNAC Family: Email |
231 * | |
232 * Used for getting information on the email address | |
233 * associated with your screen name. | |
234 * | |
235 */ | |
236 #define AIM_CB_EML_ERROR 0x0001 | |
237 #define AIM_CB_EML_SENDCOOKIES 0x0006 | |
238 #define AIM_CB_EML_MAILSTATUS 0x0007 | |
239 #define AIM_CB_EML_INIT 0x0016 | |
240 | |
241 /* | |
2086 | 242 * OFT Services |
243 * | |
244 * See non-SNAC note below. | |
245 */ | |
246 #define AIM_CB_OFT_DIRECTIMCONNECTREQ 0x0001/* connect request -- actually an OSCAR CAP*/ | |
247 #define AIM_CB_OFT_DIRECTIMINCOMING 0x0002 | |
248 #define AIM_CB_OFT_DIRECTIMDISCONNECT 0x0003 | |
249 #define AIM_CB_OFT_DIRECTIMTYPING 0x0004 | |
250 #define AIM_CB_OFT_DIRECTIMINITIATE 0x0005 | |
251 | |
3771 | 252 #if 0 |
2086 | 253 #define AIM_CB_OFT_GETFILECONNECTREQ 0x0006 /* connect request -- actually an OSCAR CAP*/ |
254 #define AIM_CB_OFT_GETFILELISTINGREQ 0x0007 /* OFT listing.txt request */ | |
255 #define AIM_CB_OFT_GETFILEFILEREQ 0x0008 /* received file request */ | |
256 #define AIM_CB_OFT_GETFILEFILESEND 0x0009 /* received file request confirm -- send data */ | |
257 #define AIM_CB_OFT_GETFILECOMPLETE 0x000a /* received file send complete*/ | |
258 #define AIM_CB_OFT_GETFILEINITIATE 0x000b /* request for file get acknowledge */ | |
259 #define AIM_CB_OFT_GETFILEDISCONNECT 0x000c /* OFT connection disconnected.*/ | |
260 #define AIM_CB_OFT_GETFILELISTING 0x000d /* OFT listing.txt received.*/ | |
261 #define AIM_CB_OFT_GETFILERECEIVE 0x000e /* OFT file incoming.*/ | |
262 #define AIM_CB_OFT_GETFILELISTINGRXCONFIRM 0x000f | |
263 #define AIM_CB_OFT_GETFILESTATE4 0x0010 | |
3771 | 264 #endif |
2086 | 265 |
3771 | 266 #define AIM_CB_OFT_SENDFILEFILEREQ 0x0011 /* started receiving file */ |
267 #define AIM_CB_OFT_SENDFILEFILESEND 0x0012 /* buddy ready to for us to send */ | |
268 #define AIM_CB_OFT_SENDFILECOMPLETE 0x0013 /* send to buddy complete */ | |
269 #define AIM_CB_OFT_SENDFILEINITIATE 0x0014 /* connection to buddy initiated */ | |
2086 | 270 |
271 | |
272 /* | |
273 * SNAC Family: Internal Messages | |
274 * | |
275 * This isn't truely a SNAC family either, but using | |
276 * these, we can integrated non-SNAC services into | |
277 * the SNAC-centered libfaim callback structure. | |
278 * | |
279 */ | |
280 #define AIM_CB_SPECIAL_AUTHSUCCESS 0x0001 | |
281 #define AIM_CB_SPECIAL_AUTHOTHER 0x0002 | |
282 #define AIM_CB_SPECIAL_CONNERR 0x0003 | |
283 #define AIM_CB_SPECIAL_CONNCOMPLETE 0x0004 | |
284 #define AIM_CB_SPECIAL_FLAPVER 0x0005 | |
2675 | 285 #define AIM_CB_SPECIAL_CONNINITDONE 0x0006 |
3033 | 286 #define AIM_CB_SPECIAL_IMAGETRANSFER 0x007 |
3752 | 287 #define AIM_CB_SPECIAL_MSGTIMEOUT 0x008 |
2086 | 288 #define AIM_CB_SPECIAL_UNKNOWN 0xffff |
289 #define AIM_CB_SPECIAL_DEFAULT AIM_CB_SPECIAL_UNKNOWN | |
290 | |
3752 | 291 /* SNAC flags */ |
292 #define AIM_SNACFLAGS_DESTRUCTOR 0x0001 | |
2086 | 293 |
294 #endif/*__AIM_CBTYPES_H__ */ |