Frameworks/libpurple.framework/Versions/0.6.2/Headers/snactypes.h
changeset 2592 e8d15275025e
parent 1739 8b0daad9656c
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/Frameworks/libpurple.framework/Versions/0.6.2/Headers/snactypes.h	Fri Aug 21 13:25:11 2009 -0700
     1.3 @@ -0,0 +1,287 @@
     1.4 +/*
     1.5 + * Purple's oscar protocol plugin
     1.6 + * This file is the legal property of its developers.
     1.7 + * Please see the AUTHORS file distributed alongside this file.
     1.8 + *
     1.9 + * This library is free software; you can redistribute it and/or
    1.10 + * modify it under the terms of the GNU Lesser General Public
    1.11 + * License as published by the Free Software Foundation; either
    1.12 + * version 2 of the License, or (at your option) any later version.
    1.13 + *
    1.14 + * This library is distributed in the hope that it will be useful,
    1.15 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.16 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    1.17 + * Lesser General Public License for more details.
    1.18 + *
    1.19 + * You should have received a copy of the GNU Lesser General Public
    1.20 + * License along with this library; if not, write to the Free Software
    1.21 + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111-1301  USA
    1.22 +*/
    1.23 +
    1.24 +/*
    1.25 + * AIM Callback Types
    1.26 + *
    1.27 + */
    1.28 +#ifndef _SNACTYPES_H_
    1.29 +#define _SNACTYPES_H_
    1.30 +
    1.31 +/*
    1.32 + * SNAC Families.
    1.33 + */
    1.34 +#define SNAC_FAMILY_OSERVICE   0x0001
    1.35 +#define SNAC_FAMILY_LOCATE     0x0002
    1.36 +#define SNAC_FAMILY_BUDDY      0x0003
    1.37 +#define SNAC_FAMILY_ICBM       0x0004
    1.38 +#define SNAC_FAMILY_ADVERT     0x0005
    1.39 +#define SNAC_FAMILY_INVITE     0x0006
    1.40 +#define SNAC_FAMILY_ADMIN      0x0007
    1.41 +#define SNAC_FAMILY_POPUP      0x0008
    1.42 +#define SNAC_FAMILY_BOS        0x0009
    1.43 +#define SNAC_FAMILY_USERLOOKUP 0x000a
    1.44 +#define SNAC_FAMILY_STATS      0x000b
    1.45 +#define SNAC_FAMILY_TRANSLATE  0x000c
    1.46 +#define SNAC_FAMILY_CHATNAV    0x000d
    1.47 +#define SNAC_FAMILY_CHAT       0x000e
    1.48 +#define SNAC_FAMILY_ODIR       0x000f
    1.49 +#define SNAC_FAMILY_BART       0x0010
    1.50 +#define SNAC_FAMILY_FEEDBAG    0x0013
    1.51 +#define SNAC_FAMILY_ICQ        0x0015
    1.52 +#define SNAC_FAMILY_AUTH       0x0017
    1.53 +#define SNAC_FAMILY_ALERT      0x0018
    1.54 +
    1.55 +#define AIM_CB_FAM_SPECIAL 0xffff /* Internal libfaim use */
    1.56 +
    1.57 +/*
    1.58 + * SNAC Family: Ack.
    1.59 + *
    1.60 + * Not really a family, but treating it as one really
    1.61 + * helps it fit into the libfaim callback structure better.
    1.62 + *
    1.63 + */
    1.64 +#define AIM_CB_ACK_ACK 0x0001
    1.65 +
    1.66 +/*
    1.67 + * SNAC Family: General.
    1.68 + */
    1.69 +#define SNAC_SUBTYPE_OSERVICE_ERROR 0x0001
    1.70 +#define SNAC_SUBTYPE_OSERVICE_CLIENTREADY 0x0002
    1.71 +#define SNAC_SUBTYPE_OSERVICE_SERVERREADY 0x0003
    1.72 +#define SNAC_SUBTYPE_OSERVICE_SERVICEREQ 0x0004
    1.73 +#define SNAC_SUBTYPE_OSERVICE_REDIRECT 0x0005
    1.74 +#define SNAC_SUBTYPE_OSERVICE_RATEINFOREQ 0x0006
    1.75 +#define SNAC_SUBTYPE_OSERVICE_RATEINFO 0x0007
    1.76 +#define SNAC_SUBTYPE_OSERVICE_RATEINFOACK 0x0008
    1.77 +#define SNAC_SUBTYPE_OSERVICE_RATECHANGE 0x000a
    1.78 +#define SNAC_SUBTYPE_OSERVICE_SERVERPAUSE 0x000b
    1.79 +#define SNAC_SUBTYPE_OSERVICE_SERVERRESUME 0x000d
    1.80 +#define SNAC_SUBTYPE_OSERVICE_REQSELFINFO 0x000e
    1.81 +#define SNAC_SUBTYPE_OSERVICE_SELFINFO 0x000f
    1.82 +#define SNAC_SUBTYPE_OSERVICE_EVIL 0x0010
    1.83 +#define SNAC_SUBTYPE_OSERVICE_SETIDLE 0x0011
    1.84 +#define SNAC_SUBTYPE_OSERVICE_MIGRATIONREQ 0x0012
    1.85 +#define SNAC_SUBTYPE_OSERVICE_MOTD 0x0013
    1.86 +#define SNAC_SUBTYPE_OSERVICE_SETPRIVFLAGS 0x0014
    1.87 +#define SNAC_SUBTYPE_OSERVICE_WELLKNOWNURL 0x0015
    1.88 +#define SNAC_SUBTYPE_OSERVICE_NOP 0x0016
    1.89 +#define SNAC_SUBTYPE_OSERVICE_DEFAULT 0xffff
    1.90 +
    1.91 +/*
    1.92 + * SNAC Family: Location Services.
    1.93 + */
    1.94 +#define SNAC_SUBTYPE_LOCATE_ERROR 0x0001
    1.95 +#define SNAC_SUBTYPE_LOCATE_REQRIGHTS 0x0002
    1.96 +#define SNAC_SUBTYPE_LOCATE_RIGHTSINFO 0x0003
    1.97 +#define SNAC_SUBTYPE_LOCATE_SETUSERINFO 0x0004
    1.98 +#define SNAC_SUBTYPE_LOCATE_REQUSERINFO 0x0005
    1.99 +#define SNAC_SUBTYPE_LOCATE_USERINFO 0x0006
   1.100 +#define SNAC_SUBTYPE_LOCATE_WATCHERSUBREQ 0x0007
   1.101 +#define SNAC_SUBTYPE_LOCATE_WATCHERNOT 0x0008
   1.102 +#define SNAC_SUBTYPE_LOCATE_DEFAULT 0xffff
   1.103 +
   1.104 +/*
   1.105 + * SNAC Family: Buddy List Management Services.
   1.106 + */
   1.107 +#define SNAC_SUBTYPE_BUDDY_ERROR 0x0001
   1.108 +#define SNAC_SUBTYPE_BUDDY_REQRIGHTS 0x0002
   1.109 +#define SNAC_SUBTYPE_BUDDY_RIGHTSINFO 0x0003
   1.110 +#define SNAC_SUBTYPE_BUDDY_ADDBUDDY 0x0004
   1.111 +#define SNAC_SUBTYPE_BUDDY_REMBUDDY 0x0005
   1.112 +#define SNAC_SUBTYPE_BUDDY_REJECT 0x000a
   1.113 +#define SNAC_SUBTYPE_BUDDY_ONCOMING 0x000b
   1.114 +#define SNAC_SUBTYPE_BUDDY_OFFGOING 0x000c
   1.115 +#define SNAC_SUBTYPE_BUDDY_DEFAULT 0xffff
   1.116 +
   1.117 +/*
   1.118 + * SNAC Family: Messaging Services.
   1.119 + */
   1.120 +#define SNAC_SUBTYPE_ICBM_ERROR 0x0001
   1.121 +#define SNAC_SUBTYPE_ICBM_PARAMINFO 0x0005
   1.122 +#define SNAC_SUBTYPE_ICBM_INCOMING 0x0007
   1.123 +#define SNAC_SUBTYPE_ICBM_EVIL 0x0009
   1.124 +#define SNAC_SUBTYPE_ICBM_MISSEDCALL 0x000a
   1.125 +#define SNAC_SUBTYPE_ICBM_CLIENTAUTORESP 0x000b
   1.126 +#define SNAC_SUBTYPE_ICBM_ACK 0x000c
   1.127 +#define SNAC_SUBTYPE_ICBM_MTN 0x0014
   1.128 +#define SNAC_SUBTYPE_ICBM_DEFAULT 0xffff
   1.129 +
   1.130 +/*
   1.131 + * SNAC Family: Advertisement Services
   1.132 + */
   1.133 +#define SNAC_SUBTYPE_ADVERT_ERROR 0x0001
   1.134 +#define SNAC_SUBTYPE_ADVERT_DEFAULT 0xffff
   1.135 +
   1.136 +/*
   1.137 + * SNAC Family: Invitation Services.
   1.138 + */
   1.139 +#define SNAC_SUBTYPE_INVITE_ERROR 0x0001
   1.140 +#define SNAC_SUBTYPE_INVITE_DEFAULT 0xffff
   1.141 +
   1.142 +/*
   1.143 + * SNAC Family: Administrative Services.
   1.144 + */
   1.145 +#define SNAC_SUBTYPE_ADMIN_ERROR 0x0001
   1.146 +#define SNAC_SUBTYPE_ADMIN_INFOCHANGE_REPLY 0x0005
   1.147 +#define SNAC_SUBTYPE_ADMIN_DEFAULT 0xffff
   1.148 +
   1.149 +/*
   1.150 + * SNAC Family: Popup Messages
   1.151 + */
   1.152 +#define SNAC_SUBTYPE_POPUP_ERROR 0x0001
   1.153 +#define SNAC_SUBTYPE_POPUP_DEFAULT 0xffff
   1.154 +
   1.155 +/*
   1.156 + * SNAC Family: Misc BOS Services.
   1.157 + */
   1.158 +#define SNAC_SUBTYPE_BOS_ERROR 0x0001
   1.159 +#define SNAC_SUBTYPE_BOS_RIGHTSQUERY 0x0002
   1.160 +#define SNAC_SUBTYPE_BOS_RIGHTS 0x0003
   1.161 +#define SNAC_SUBTYPE_BOS_DEFAULT 0xffff
   1.162 +
   1.163 +/*
   1.164 + * SNAC Family: User Lookup Services
   1.165 + */
   1.166 +#define SNAC_SUBTYPE_USERLOOKUP_ERROR 0x0001
   1.167 +#define SNAC_SUBTYPE_USERLOOKUP_DEFAULT 0xffff
   1.168 +
   1.169 +/*
   1.170 + * SNAC Family: User Status Services
   1.171 + */
   1.172 +#define SNAC_SUBTYPE_STATS_ERROR 0x0001
   1.173 +#define SNAC_SUBTYPE_STATS_SETREPORTINTERVAL 0x0002
   1.174 +#define SNAC_SUBTYPE_STATS_REPORTACK 0x0004
   1.175 +#define SNAC_SUBTYPE_STATS_DEFAULT 0xffff
   1.176 +
   1.177 +/*
   1.178 + * SNAC Family: Translation Services
   1.179 + */
   1.180 +#define SNAC_SUBTYPE_TRANSLATE_ERROR 0x0001
   1.181 +#define SNAC_SUBTYPE_TRANSLATE_DEFAULT 0xffff
   1.182 +
   1.183 +/*
   1.184 + * SNAC Family: Chat Navigation Services
   1.185 + */
   1.186 +#define SNAC_SUBTYPE_CHATNAV_ERROR 0x0001
   1.187 +#define SNAC_SUBTYPE_CHATNAV_CREATE 0x0008
   1.188 +#define SNAC_SUBTYPE_CHATNAV_INFO 0x0009
   1.189 +#define SNAC_SUBTYPE_CHATNAV_DEFAULT 0xffff
   1.190 +
   1.191 +/*
   1.192 + * SNAC Family: Chat Services
   1.193 + */
   1.194 +#define SNAC_SUBTYPE_CHAT_ERROR 0x0001
   1.195 +#define SNAC_SUBTYPE_CHAT_ROOMINFOUPDATE 0x0002
   1.196 +#define SNAC_SUBTYPE_CHAT_USERJOIN 0x0003
   1.197 +#define SNAC_SUBTYPE_CHAT_USERLEAVE 0x0004
   1.198 +#define SNAC_SUBTYPE_CHAT_OUTGOINGMSG 0x0005
   1.199 +#define SNAC_SUBTYPE_CHAT_INCOMINGMSG 0x0006
   1.200 +#define SNAC_SUBTYPE_CHAT_DEFAULT 0xffff
   1.201 +
   1.202 +/*
   1.203 + * SNAC Family: "New" Search
   1.204 + */
   1.205 +#define SNAC_SUBTYPE_ODIR_ERROR 0x0001
   1.206 +#define SNAC_SUBTYPE_ODIR_SEARCH 0x0002
   1.207 +#define SNAC_SUBTYPE_ODIR_RESULTS 0x0003
   1.208 +
   1.209 +/*
   1.210 + * SNAC Family: Buddy icons
   1.211 + */
   1.212 +#define SNAC_SUBTYPE_BART_ERROR 0x0001
   1.213 +#define SNAC_SUBTYPE_BART_REQUEST 0x0004
   1.214 +#define SNAC_SUBTYPE_BART_RESPONSE 0x0005
   1.215 +
   1.216 +/*
   1.217 + * SNAC Family: Server-Stored Buddy Lists
   1.218 + */
   1.219 +#define SNAC_SUBTYPE_FEEDBAG_ERROR 0x0001
   1.220 +#define SNAC_SUBTYPE_FEEDBAG_REQRIGHTS 0x0002
   1.221 +#define SNAC_SUBTYPE_FEEDBAG_RIGHTSINFO 0x0003
   1.222 +#define SNAC_SUBTYPE_FEEDBAG_REQDATA 0x0004
   1.223 +#define SNAC_SUBTYPE_FEEDBAG_REQIFCHANGED 0x0005
   1.224 +#define SNAC_SUBTYPE_FEEDBAG_LIST 0x0006
   1.225 +#define SNAC_SUBTYPE_FEEDBAG_ACTIVATE 0x0007
   1.226 +#define SNAC_SUBTYPE_FEEDBAG_ADD 0x0008
   1.227 +#define SNAC_SUBTYPE_FEEDBAG_MOD 0x0009
   1.228 +#define SNAC_SUBTYPE_FEEDBAG_DEL 0x000A
   1.229 +#define SNAC_SUBTYPE_FEEDBAG_SRVACK 0x000E
   1.230 +#define SNAC_SUBTYPE_FEEDBAG_NOLIST 0x000F
   1.231 +#define SNAC_SUBTYPE_FEEDBAG_EDITSTART 0x0011
   1.232 +#define SNAC_SUBTYPE_FEEDBAG_EDITSTOP 0x0012
   1.233 +#define SNAC_SUBTYPE_FEEDBAG_SENDAUTH 0x0014
   1.234 +#define SNAC_SUBTYPE_FEEDBAG_RECVAUTH 0x0015
   1.235 +#define SNAC_SUBTYPE_FEEDBAG_SENDAUTHREQ 0x0018
   1.236 +#define SNAC_SUBTYPE_FEEDBAG_RECVAUTHREQ 0x0019
   1.237 +#define SNAC_SUBTYPE_FEEDBAG_SENDAUTHREP 0x001a
   1.238 +#define SNAC_SUBTYPE_FEEDBAG_RECVAUTHREP 0x001b
   1.239 +#define SNAC_SUBTYPE_FEEDBAG_ADDED 0x001c
   1.240 +
   1.241 +/*
   1.242 + * SNAC Family: ICQ
   1.243 + *
   1.244 + * Most of these are actually special.
   1.245 + */
   1.246 +#define SNAC_SUBTYPE_ICQ_ERROR 0x0001
   1.247 +#define SNAC_SUBTYPE_ICQ_OFFLINEMSG 0x00f0
   1.248 +#define SNAC_SUBTYPE_ICQ_OFFLINEMSGCOMPLETE 0x00f1
   1.249 +#define SNAC_SUBTYPE_ICQ_INFO 0x00f2
   1.250 +#define SNAC_SUBTYPE_ICQ_ALIAS 0x00f3
   1.251 +#define SNAC_SUBTYPE_ICQ_DEFAULT 0xffff
   1.252 +
   1.253 +/*
   1.254 + * SNAC Family: Authorizer
   1.255 + *
   1.256 + * Used only in protocol versions three and above.
   1.257 + */
   1.258 +#define SNAC_SUBTYPE_AUTH_ERROR 0x0001
   1.259 +#define SNAC_SUBTYPE_AUTH_LOGINREQEST 0x0002
   1.260 +#define SNAC_SUBTYPE_AUTH_LOGINRESPONSE 0x0003
   1.261 +#define SNAC_SUBTYPE_AUTH_AUTHREQ 0x0006
   1.262 +#define SNAC_SUBTYPE_AUTH_AUTHRESPONSE 0x0007
   1.263 +#define SNAC_SUBTYPE_AUTH_SECURID_REQUEST 0x000a
   1.264 +#define SNAC_SUBTYPE_AUTH_SECURID_RESPONSE 0x000b
   1.265 +
   1.266 +/*
   1.267 + * SNAC Family: Email
   1.268 + *
   1.269 + * Used for getting information on the email address
   1.270 + * associated with your username.
   1.271 + */
   1.272 +#define SNAC_SUBTYPE_ALERT_ERROR 0x0001
   1.273 +#define SNAC_SUBTYPE_ALERT_SENDCOOKIES 0x0006
   1.274 +#define SNAC_SUBTYPE_ALERT_MAILSTATUS 0x0007
   1.275 +#define SNAC_SUBTYPE_ALERT_INIT 0x0016
   1.276 +
   1.277 +/*
   1.278 + * SNAC Family: Internal Messages
   1.279 + *
   1.280 + * This isn't truly a SNAC family either, but using
   1.281 + * these, we can integrated non-SNAC services into
   1.282 + * the SNAC-centered libfaim callback structure.
   1.283 + */
   1.284 +#define AIM_CB_SPECIAL_CONNERR 0x0003
   1.285 +#define AIM_CB_SPECIAL_CONNINITDONE 0x0006
   1.286 +
   1.287 +/* SNAC flags */
   1.288 +#define AIM_SNACFLAGS_DESTRUCTOR 0x0001
   1.289 +
   1.290 +#endif /* _SNACTYPES_H_ */