Thu, 28 Mar 2002 19:10:34 +0000
[gaim-migrate @ 3115]
Correctly show list icons from icq and wireless oscar users. Also correctly set icq user class for away. Thanks, Mark Doliner.
committer: Sean Egan <seanegan@pidgin.im>
| 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 */ | |
| 2991 | 26 | #define AIM_CB_FAM_SSI 0x0013 /* Server stored information */ |
|
2706
ac9384d37d6c
[gaim-migrate @ 2719]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
2675
diff
changeset
|
27 | #define AIM_CB_FAM_ICQ 0x0015 |
| 2086 | 28 | #define AIM_CB_FAM_ATH 0x0017 |
| 29 | #define AIM_CB_FAM_OFT 0xfffe /* OFT/Rvous */ | |
| 30 | #define AIM_CB_FAM_SPECIAL 0xffff /* Internal libfaim use */ | |
| 31 | ||
| 32 | /* | |
| 33 | * SNAC Family: Ack. | |
| 34 | * | |
| 35 | * Not really a family, but treating it as one really | |
| 36 | * helps it fit into the libfaim callback structure better. | |
| 37 | * | |
| 38 | */ | |
| 39 | #define AIM_CB_ACK_ACK 0x0001 | |
| 40 | ||
| 41 | /* | |
| 42 | * SNAC Family: General. | |
| 43 | */ | |
| 44 | #define AIM_CB_GEN_ERROR 0x0001 | |
| 45 | #define AIM_CB_GEN_CLIENTREADY 0x0002 | |
| 46 | #define AIM_CB_GEN_SERVERREADY 0x0003 | |
| 47 | #define AIM_CB_GEN_SERVICEREQ 0x0004 | |
| 48 | #define AIM_CB_GEN_REDIRECT 0x0005 | |
| 49 | #define AIM_CB_GEN_RATEINFOREQ 0x0006 | |
| 50 | #define AIM_CB_GEN_RATEINFO 0x0007 | |
| 51 | #define AIM_CB_GEN_RATEINFOACK 0x0008 | |
| 52 | #define AIM_CB_GEN_RATECHANGE 0x000a | |
| 53 | #define AIM_CB_GEN_SERVERPAUSE 0x000b | |
| 54 | #define AIM_CB_GEN_SERVERRESUME 0x000d | |
| 55 | #define AIM_CB_GEN_REQSELFINFO 0x000e | |
| 56 | #define AIM_CB_GEN_SELFINFO 0x000f | |
| 57 | #define AIM_CB_GEN_EVIL 0x0010 | |
| 58 | #define AIM_CB_GEN_SETIDLE 0x0011 | |
| 59 | #define AIM_CB_GEN_MIGRATIONREQ 0x0012 | |
| 60 | #define AIM_CB_GEN_MOTD 0x0013 | |
| 61 | #define AIM_CB_GEN_SETPRIVFLAGS 0x0014 | |
| 62 | #define AIM_CB_GEN_WELLKNOWNURL 0x0015 | |
| 63 | #define AIM_CB_GEN_NOP 0x0016 | |
| 64 | #define AIM_CB_GEN_DEFAULT 0xffff | |
| 65 | ||
| 66 | /* | |
| 67 | * SNAC Family: Location Services. | |
| 68 | */ | |
| 69 | #define AIM_CB_LOC_ERROR 0x0001 | |
| 70 | #define AIM_CB_LOC_REQRIGHTS 0x0002 | |
| 71 | #define AIM_CB_LOC_RIGHTSINFO 0x0003 | |
| 72 | #define AIM_CB_LOC_SETUSERINFO 0x0004 | |
| 73 | #define AIM_CB_LOC_REQUSERINFO 0x0005 | |
| 74 | #define AIM_CB_LOC_USERINFO 0x0006 | |
| 75 | #define AIM_CB_LOC_WATCHERSUBREQ 0x0007 | |
| 76 | #define AIM_CB_LOC_WATCHERNOT 0x0008 | |
| 77 | #define AIM_CB_LOC_DEFAULT 0xffff | |
| 78 | ||
| 79 | /* | |
| 80 | * SNAC Family: Buddy List Management Services. | |
| 81 | */ | |
| 82 | #define AIM_CB_BUD_ERROR 0x0001 | |
| 83 | #define AIM_CB_BUD_REQRIGHTS 0x0002 | |
| 84 | #define AIM_CB_BUD_RIGHTSINFO 0x0003 | |
| 85 | #define AIM_CB_BUD_ADDBUDDY 0x0004 | |
| 86 | #define AIM_CB_BUD_REMBUDDY 0x0005 | |
| 87 | #define AIM_CB_BUD_REJECT 0x000a | |
| 88 | #define AIM_CB_BUD_ONCOMING 0x000b | |
| 89 | #define AIM_CB_BUD_OFFGOING 0x000c | |
| 90 | #define AIM_CB_BUD_DEFAULT 0xffff | |
| 91 | ||
| 92 | /* | |
| 93 | * SNAC Family: Messeging Services. | |
| 94 | */ | |
| 95 | #define AIM_CB_MSG_ERROR 0x0001 | |
| 96 | #define AIM_CB_MSG_PARAMINFO 0x0005 | |
| 97 | #define AIM_CB_MSG_INCOMING 0x0007 | |
| 98 | #define AIM_CB_MSG_EVIL 0x0009 | |
| 99 | #define AIM_CB_MSG_MISSEDCALL 0x000a | |
| 100 | #define AIM_CB_MSG_CLIENTERROR 0x000b | |
| 101 | #define AIM_CB_MSG_ACK 0x000c | |
| 102 | #define AIM_CB_MSG_DEFAULT 0xffff | |
| 103 | ||
| 104 | /* | |
| 105 | * SNAC Family: Advertisement Services | |
| 106 | */ | |
| 107 | #define AIM_CB_ADS_ERROR 0x0001 | |
| 108 | #define AIM_CB_ADS_DEFAULT 0xffff | |
| 109 | ||
| 110 | /* | |
| 111 | * SNAC Family: Invitation Services. | |
| 112 | */ | |
| 113 | #define AIM_CB_INV_ERROR 0x0001 | |
| 114 | #define AIM_CB_INV_DEFAULT 0xffff | |
| 115 | ||
| 116 | /* | |
| 117 | * SNAC Family: Administrative Services. | |
| 118 | */ | |
| 119 | #define AIM_CB_ADM_ERROR 0x0001 | |
| 120 | #define AIM_CB_ADM_INFOCHANGE_REPLY 0x0005 | |
| 121 | #define AIM_CB_ADM_DEFAULT 0xffff | |
| 122 | ||
| 123 | /* | |
| 124 | * SNAC Family: Popup Messages | |
| 125 | */ | |
| 126 | #define AIM_CB_POP_ERROR 0x0001 | |
| 127 | #define AIM_CB_POP_DEFAULT 0xffff | |
| 128 | ||
| 129 | /* | |
| 130 | * SNAC Family: Misc BOS Services. | |
| 131 | */ | |
| 132 | #define AIM_CB_BOS_ERROR 0x0001 | |
| 133 | #define AIM_CB_BOS_RIGHTSQUERY 0x0002 | |
| 134 | #define AIM_CB_BOS_RIGHTS 0x0003 | |
| 135 | #define AIM_CB_BOS_DEFAULT 0xffff | |
| 136 | ||
| 137 | /* | |
| 138 | * SNAC Family: User Lookup Services | |
| 139 | */ | |
| 140 | #define AIM_CB_LOK_ERROR 0x0001 | |
| 141 | #define AIM_CB_LOK_DEFAULT 0xffff | |
| 142 | ||
| 143 | /* | |
| 144 | * SNAC Family: User Status Services | |
| 145 | */ | |
| 146 | #define AIM_CB_STS_ERROR 0x0001 | |
| 147 | #define AIM_CB_STS_SETREPORTINTERVAL 0x0002 | |
| 148 | #define AIM_CB_STS_REPORTACK 0x0004 | |
| 149 | #define AIM_CB_STS_DEFAULT 0xffff | |
| 150 | ||
| 151 | /* | |
| 152 | * SNAC Family: Translation Services | |
| 153 | */ | |
| 154 | #define AIM_CB_TRN_ERROR 0x0001 | |
| 155 | #define AIM_CB_TRN_DEFAULT 0xffff | |
| 156 | ||
| 157 | /* | |
| 158 | * SNAC Family: Chat Navigation Services | |
| 159 | */ | |
| 160 | #define AIM_CB_CTN_ERROR 0x0001 | |
| 161 | #define AIM_CB_CTN_CREATE 0x0008 | |
| 162 | #define AIM_CB_CTN_INFO 0x0009 | |
| 163 | #define AIM_CB_CTN_DEFAULT 0xffff | |
| 164 | ||
| 165 | /* | |
| 166 | * SNAC Family: Chat Services | |
| 167 | */ | |
| 168 | #define AIM_CB_CHT_ERROR 0x0001 | |
| 169 | #define AIM_CB_CHT_ROOMINFOUPDATE 0x0002 | |
| 170 | #define AIM_CB_CHT_USERJOIN 0x0003 | |
| 171 | #define AIM_CB_CHT_USERLEAVE 0x0004 | |
| 172 | #define AIM_CB_CHT_OUTGOINGMSG 0x0005 | |
| 173 | #define AIM_CB_CHT_INCOMINGMSG 0x0006 | |
| 174 | #define AIM_CB_CHT_DEFAULT 0xffff | |
| 175 | ||
| 176 | /* | |
|
2706
ac9384d37d6c
[gaim-migrate @ 2719]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
2675
diff
changeset
|
177 | * SNAC Family: ICQ |
|
ac9384d37d6c
[gaim-migrate @ 2719]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
2675
diff
changeset
|
178 | * |
|
ac9384d37d6c
[gaim-migrate @ 2719]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
2675
diff
changeset
|
179 | * Most of these are actually special. |
|
ac9384d37d6c
[gaim-migrate @ 2719]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
2675
diff
changeset
|
180 | */ |
|
ac9384d37d6c
[gaim-migrate @ 2719]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
2675
diff
changeset
|
181 | #define AIM_CB_ICQ_ERROR 0x0001 |
|
ac9384d37d6c
[gaim-migrate @ 2719]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
2675
diff
changeset
|
182 | #define AIM_CB_ICQ_OFFLINEMSG 0x00f0 |
|
ac9384d37d6c
[gaim-migrate @ 2719]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
2675
diff
changeset
|
183 | #define AIM_CB_ICQ_OFFLINEMSGCOMPLETE 0x00f1 |
|
2742
2ffd839888a5
[gaim-migrate @ 2755]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
2706
diff
changeset
|
184 | #define AIM_CB_ICQ_SIMPLEINFO 0x00f2 |
|
2706
ac9384d37d6c
[gaim-migrate @ 2719]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
2675
diff
changeset
|
185 | #define AIM_CB_ICQ_DEFAULT 0xffff |
|
ac9384d37d6c
[gaim-migrate @ 2719]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
2675
diff
changeset
|
186 | |
|
ac9384d37d6c
[gaim-migrate @ 2719]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
2675
diff
changeset
|
187 | /* |
| 2991 | 188 | * SNAC Family: Server-Stored Buddy Lists |
| 189 | */ | |
| 190 | #define AIM_CB_SSI_ERROR 0x0001 | |
| 191 | #define AIM_CB_SSI_REQRIGHTS 0x0002 | |
| 192 | #define AIM_CB_SSI_RIGHTSINFO 0x0003 | |
| 193 | #define AIM_CB_SSI_REQLIST 0x0005 | |
| 194 | #define AIM_CB_SSI_LIST 0x0006 | |
| 195 | #define AIM_CB_SSI_ACTIVATE 0x0007 | |
| 196 | #define AIM_CB_SSI_ADD 0x0008 | |
| 197 | #define AIM_CB_SSI_MOD 0x0009 | |
| 198 | #define AIM_CB_SSI_DEL 0x000A | |
| 199 | #define AIM_CB_SSI_SRVACK 0x000E | |
| 200 | #define AIM_CB_SSI_NOLIST 0x000F | |
| 201 | #define AIM_CB_SSI_EDITSTART 0x0011 | |
| 202 | #define AIM_CB_SSI_EDITSTOP 0x0012 | |
| 203 | ||
| 204 | /* | |
| 2086 | 205 | * SNAC Family: Authorizer |
| 206 | * | |
| 207 | * Used only in protocol versions three and above. | |
| 208 | * | |
| 209 | */ | |
| 210 | #define AIM_CB_ATH_ERROR 0x0001 | |
| 211 | #define AIM_CB_ATH_LOGINREQEST 0x0002 | |
| 212 | #define AIM_CB_ATH_LOGINRESPONSE 0x0003 | |
| 213 | #define AIM_CB_ATH_AUTHREQ 0x0006 | |
| 214 | #define AIM_CB_ATH_AUTHRESPONSE 0x0007 | |
| 215 | ||
| 216 | /* | |
| 217 | * OFT Services | |
| 218 | * | |
| 219 | * See non-SNAC note below. | |
| 220 | */ | |
| 221 | #define AIM_CB_OFT_DIRECTIMCONNECTREQ 0x0001/* connect request -- actually an OSCAR CAP*/ | |
| 222 | #define AIM_CB_OFT_DIRECTIMINCOMING 0x0002 | |
| 223 | #define AIM_CB_OFT_DIRECTIMDISCONNECT 0x0003 | |
| 224 | #define AIM_CB_OFT_DIRECTIMTYPING 0x0004 | |
| 225 | #define AIM_CB_OFT_DIRECTIMINITIATE 0x0005 | |
| 226 | ||
| 227 | #define AIM_CB_OFT_GETFILECONNECTREQ 0x0006 /* connect request -- actually an OSCAR CAP*/ | |
| 228 | #define AIM_CB_OFT_GETFILELISTINGREQ 0x0007 /* OFT listing.txt request */ | |
| 229 | #define AIM_CB_OFT_GETFILEFILEREQ 0x0008 /* received file request */ | |
| 230 | #define AIM_CB_OFT_GETFILEFILESEND 0x0009 /* received file request confirm -- send data */ | |
| 231 | #define AIM_CB_OFT_GETFILECOMPLETE 0x000a /* received file send complete*/ | |
| 232 | #define AIM_CB_OFT_GETFILEINITIATE 0x000b /* request for file get acknowledge */ | |
| 233 | #define AIM_CB_OFT_GETFILEDISCONNECT 0x000c /* OFT connection disconnected.*/ | |
| 234 | #define AIM_CB_OFT_GETFILELISTING 0x000d /* OFT listing.txt received.*/ | |
| 235 | #define AIM_CB_OFT_GETFILERECEIVE 0x000e /* OFT file incoming.*/ | |
| 236 | #define AIM_CB_OFT_GETFILELISTINGRXCONFIRM 0x000f | |
| 237 | #define AIM_CB_OFT_GETFILESTATE4 0x0010 | |
| 238 | ||
| 239 | #define AIM_CB_OFT_SENDFILEDISCONNECT 0x0020 /* OFT connection disconnected.*/ | |
| 240 | ||
| 241 | ||
| 242 | ||
| 243 | /* | |
| 244 | * SNAC Family: Internal Messages | |
| 245 | * | |
| 246 | * This isn't truely a SNAC family either, but using | |
| 247 | * these, we can integrated non-SNAC services into | |
| 248 | * the SNAC-centered libfaim callback structure. | |
| 249 | * | |
| 250 | */ | |
| 251 | #define AIM_CB_SPECIAL_AUTHSUCCESS 0x0001 | |
| 252 | #define AIM_CB_SPECIAL_AUTHOTHER 0x0002 | |
| 253 | #define AIM_CB_SPECIAL_CONNERR 0x0003 | |
| 254 | #define AIM_CB_SPECIAL_CONNCOMPLETE 0x0004 | |
| 255 | #define AIM_CB_SPECIAL_FLAPVER 0x0005 | |
| 2675 | 256 | #define AIM_CB_SPECIAL_CONNINITDONE 0x0006 |
| 3033 | 257 | #define AIM_CB_SPECIAL_IMAGETRANSFER 0x007 |
| 2086 | 258 | #define AIM_CB_SPECIAL_UNKNOWN 0xffff |
| 259 | #define AIM_CB_SPECIAL_DEFAULT AIM_CB_SPECIAL_UNKNOWN | |
| 260 | ||
| 261 | ||
| 262 | #endif/*__AIM_CBTYPES_H__ */ |