Frameworks/libpurple.framework/Versions/2.10.12r8d2874a79747/Headers/snactypes.h
branchadium-1.5.11-merge
changeset 6013 f8d0dc659e3f
parent 5941 307f53385811
parent 6012 200a01709ba4
child 6014 fcb71cb71a3d
child 6015 2b01cc935b7c
equal deleted inserted replaced
5941:307f53385811 6013:f8d0dc659e3f
     1 /*
       
     2  * Purple's oscar protocol plugin
       
     3  * This file is the legal property of its developers.
       
     4  * Please see the AUTHORS file distributed alongside this file.
       
     5  *
       
     6  * This library is free software; you can redistribute it and/or
       
     7  * modify it under the terms of the GNU Lesser General Public
       
     8  * License as published by the Free Software Foundation; either
       
     9  * version 2 of the License, or (at your option) any later version.
       
    10  *
       
    11  * This library is distributed in the hope that it will be useful,
       
    12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
       
    14  * Lesser General Public License for more details.
       
    15  *
       
    16  * You should have received a copy of the GNU Lesser General Public
       
    17  * License along with this library; if not, write to the Free Software
       
    18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111-1301  USA
       
    19 */
       
    20 
       
    21 /*
       
    22  * AIM Callback Types
       
    23  *
       
    24  */
       
    25 #ifndef _SNACTYPES_H_
       
    26 #define _SNACTYPES_H_
       
    27 
       
    28 /*
       
    29  * SNAC Families.
       
    30  */
       
    31 #define SNAC_FAMILY_OSERVICE   0x0001
       
    32 #define SNAC_FAMILY_LOCATE     0x0002
       
    33 #define SNAC_FAMILY_BUDDY      0x0003
       
    34 #define SNAC_FAMILY_ICBM       0x0004
       
    35 #define SNAC_FAMILY_ADVERT     0x0005
       
    36 #define SNAC_FAMILY_INVITE     0x0006
       
    37 #define SNAC_FAMILY_ADMIN      0x0007
       
    38 #define SNAC_FAMILY_POPUP      0x0008
       
    39 #define SNAC_FAMILY_BOS        0x0009
       
    40 #define SNAC_FAMILY_USERLOOKUP 0x000a
       
    41 #define SNAC_FAMILY_STATS      0x000b
       
    42 #define SNAC_FAMILY_TRANSLATE  0x000c
       
    43 #define SNAC_FAMILY_CHATNAV    0x000d
       
    44 #define SNAC_FAMILY_CHAT       0x000e
       
    45 #define SNAC_FAMILY_ODIR       0x000f
       
    46 #define SNAC_FAMILY_BART       0x0010
       
    47 #define SNAC_FAMILY_FEEDBAG    0x0013
       
    48 #define SNAC_FAMILY_ICQ        0x0015
       
    49 #define SNAC_FAMILY_AUTH       0x0017
       
    50 #define SNAC_FAMILY_ALERT      0x0018
       
    51 
       
    52 #define AIM_CB_FAM_SPECIAL 0xffff /* Internal libfaim use */
       
    53 
       
    54 /*
       
    55  * SNAC Family: Ack.
       
    56  *
       
    57  * Not really a family, but treating it as one really
       
    58  * helps it fit into the libfaim callback structure better.
       
    59  *
       
    60  */
       
    61 #define AIM_CB_ACK_ACK 0x0001
       
    62 
       
    63 /*
       
    64  * SNAC Family: General.
       
    65  */
       
    66 #define SNAC_SUBTYPE_OSERVICE_ERROR 0x0001
       
    67 #define SNAC_SUBTYPE_OSERVICE_CLIENTREADY 0x0002
       
    68 #define SNAC_SUBTYPE_OSERVICE_SERVERREADY 0x0003
       
    69 #define SNAC_SUBTYPE_OSERVICE_SERVICEREQ 0x0004
       
    70 #define SNAC_SUBTYPE_OSERVICE_REDIRECT 0x0005
       
    71 #define SNAC_SUBTYPE_OSERVICE_RATEINFOREQ 0x0006
       
    72 #define SNAC_SUBTYPE_OSERVICE_RATEINFO 0x0007
       
    73 #define SNAC_SUBTYPE_OSERVICE_RATEINFOACK 0x0008
       
    74 #define SNAC_SUBTYPE_OSERVICE_RATECHANGE 0x000a
       
    75 #define SNAC_SUBTYPE_OSERVICE_SERVERPAUSE 0x000b
       
    76 #define SNAC_SUBTYPE_OSERVICE_SERVERRESUME 0x000d
       
    77 #define SNAC_SUBTYPE_OSERVICE_REQSELFINFO 0x000e
       
    78 #define SNAC_SUBTYPE_OSERVICE_SELFINFO 0x000f
       
    79 #define SNAC_SUBTYPE_OSERVICE_EVIL 0x0010
       
    80 #define SNAC_SUBTYPE_OSERVICE_SETIDLE 0x0011
       
    81 #define SNAC_SUBTYPE_OSERVICE_MIGRATIONREQ 0x0012
       
    82 #define SNAC_SUBTYPE_OSERVICE_MOTD 0x0013
       
    83 #define SNAC_SUBTYPE_OSERVICE_SETPRIVFLAGS 0x0014
       
    84 #define SNAC_SUBTYPE_OSERVICE_WELLKNOWNURL 0x0015
       
    85 #define SNAC_SUBTYPE_OSERVICE_NOP 0x0016
       
    86 #define SNAC_SUBTYPE_OSERVICE_DEFAULT 0xffff
       
    87 
       
    88 /*
       
    89  * SNAC Family: Location Services.
       
    90  */
       
    91 #define SNAC_SUBTYPE_LOCATE_ERROR 0x0001
       
    92 #define SNAC_SUBTYPE_LOCATE_REQRIGHTS 0x0002
       
    93 #define SNAC_SUBTYPE_LOCATE_RIGHTSINFO 0x0003
       
    94 #define SNAC_SUBTYPE_LOCATE_SETUSERINFO 0x0004
       
    95 #define SNAC_SUBTYPE_LOCATE_REQUSERINFO 0x0005
       
    96 #define SNAC_SUBTYPE_LOCATE_USERINFO 0x0006
       
    97 #define SNAC_SUBTYPE_LOCATE_WATCHERSUBREQ 0x0007
       
    98 #define SNAC_SUBTYPE_LOCATE_WATCHERNOT 0x0008
       
    99 #define SNAC_SUBTYPE_LOCATE_DEFAULT 0xffff
       
   100 
       
   101 /*
       
   102  * SNAC Family: Buddy List Management Services.
       
   103  */
       
   104 #define SNAC_SUBTYPE_BUDDY_ERROR 0x0001
       
   105 #define SNAC_SUBTYPE_BUDDY_REQRIGHTS 0x0002
       
   106 #define SNAC_SUBTYPE_BUDDY_RIGHTSINFO 0x0003
       
   107 #define SNAC_SUBTYPE_BUDDY_ADDBUDDY 0x0004
       
   108 #define SNAC_SUBTYPE_BUDDY_REMBUDDY 0x0005
       
   109 #define SNAC_SUBTYPE_BUDDY_REJECT 0x000a
       
   110 #define SNAC_SUBTYPE_BUDDY_ONCOMING 0x000b
       
   111 #define SNAC_SUBTYPE_BUDDY_OFFGOING 0x000c
       
   112 #define SNAC_SUBTYPE_BUDDY_DEFAULT 0xffff
       
   113 
       
   114 /*
       
   115  * SNAC Family: Messaging Services.
       
   116  */
       
   117 #define SNAC_SUBTYPE_ICBM_ERROR 0x0001
       
   118 #define SNAC_SUBTYPE_ICBM_PARAMINFO 0x0005
       
   119 #define SNAC_SUBTYPE_ICBM_INCOMING 0x0007
       
   120 #define SNAC_SUBTYPE_ICBM_EVIL 0x0009
       
   121 #define SNAC_SUBTYPE_ICBM_MISSEDCALL 0x000a
       
   122 #define SNAC_SUBTYPE_ICBM_CLIENTAUTORESP 0x000b
       
   123 #define SNAC_SUBTYPE_ICBM_ACK 0x000c
       
   124 #define SNAC_SUBTYPE_ICBM_MTN 0x0014
       
   125 #define SNAC_SUBTYPE_ICBM_DEFAULT 0xffff
       
   126 
       
   127 /*
       
   128  * SNAC Family: Advertisement Services
       
   129  */
       
   130 #define SNAC_SUBTYPE_ADVERT_ERROR 0x0001
       
   131 #define SNAC_SUBTYPE_ADVERT_DEFAULT 0xffff
       
   132 
       
   133 /*
       
   134  * SNAC Family: Invitation Services.
       
   135  */
       
   136 #define SNAC_SUBTYPE_INVITE_ERROR 0x0001
       
   137 #define SNAC_SUBTYPE_INVITE_DEFAULT 0xffff
       
   138 
       
   139 /*
       
   140  * SNAC Family: Administrative Services.
       
   141  */
       
   142 #define SNAC_SUBTYPE_ADMIN_ERROR 0x0001
       
   143 #define SNAC_SUBTYPE_ADMIN_INFOCHANGE_REPLY 0x0005
       
   144 #define SNAC_SUBTYPE_ADMIN_DEFAULT 0xffff
       
   145 
       
   146 /*
       
   147  * SNAC Family: Popup Messages
       
   148  */
       
   149 #define SNAC_SUBTYPE_POPUP_ERROR 0x0001
       
   150 #define SNAC_SUBTYPE_POPUP_DEFAULT 0xffff
       
   151 
       
   152 /*
       
   153  * SNAC Family: Misc BOS Services.
       
   154  */
       
   155 #define SNAC_SUBTYPE_BOS_ERROR 0x0001
       
   156 #define SNAC_SUBTYPE_BOS_RIGHTSQUERY 0x0002
       
   157 #define SNAC_SUBTYPE_BOS_RIGHTS 0x0003
       
   158 #define SNAC_SUBTYPE_BOS_DEFAULT 0xffff
       
   159 
       
   160 /*
       
   161  * SNAC Family: User Lookup Services
       
   162  */
       
   163 #define SNAC_SUBTYPE_USERLOOKUP_ERROR 0x0001
       
   164 #define SNAC_SUBTYPE_USERLOOKUP_DEFAULT 0xffff
       
   165 
       
   166 /*
       
   167  * SNAC Family: User Status Services
       
   168  */
       
   169 #define SNAC_SUBTYPE_STATS_ERROR 0x0001
       
   170 #define SNAC_SUBTYPE_STATS_SETREPORTINTERVAL 0x0002
       
   171 #define SNAC_SUBTYPE_STATS_REPORTACK 0x0004
       
   172 #define SNAC_SUBTYPE_STATS_DEFAULT 0xffff
       
   173 
       
   174 /*
       
   175  * SNAC Family: Translation Services
       
   176  */
       
   177 #define SNAC_SUBTYPE_TRANSLATE_ERROR 0x0001
       
   178 #define SNAC_SUBTYPE_TRANSLATE_DEFAULT 0xffff
       
   179 
       
   180 /*
       
   181  * SNAC Family: Chat Navigation Services
       
   182  */
       
   183 #define SNAC_SUBTYPE_CHATNAV_ERROR 0x0001
       
   184 #define SNAC_SUBTYPE_CHATNAV_CREATE 0x0008
       
   185 #define SNAC_SUBTYPE_CHATNAV_INFO 0x0009
       
   186 #define SNAC_SUBTYPE_CHATNAV_DEFAULT 0xffff
       
   187 
       
   188 /*
       
   189  * SNAC Family: Chat Services
       
   190  */
       
   191 #define SNAC_SUBTYPE_CHAT_ERROR 0x0001
       
   192 #define SNAC_SUBTYPE_CHAT_ROOMINFOUPDATE 0x0002
       
   193 #define SNAC_SUBTYPE_CHAT_USERJOIN 0x0003
       
   194 #define SNAC_SUBTYPE_CHAT_USERLEAVE 0x0004
       
   195 #define SNAC_SUBTYPE_CHAT_OUTGOINGMSG 0x0005
       
   196 #define SNAC_SUBTYPE_CHAT_INCOMINGMSG 0x0006
       
   197 #define SNAC_SUBTYPE_CHAT_DEFAULT 0xffff
       
   198 
       
   199 /*
       
   200  * SNAC Family: "New" Search
       
   201  */
       
   202 #define SNAC_SUBTYPE_ODIR_ERROR 0x0001
       
   203 #define SNAC_SUBTYPE_ODIR_SEARCH 0x0002
       
   204 #define SNAC_SUBTYPE_ODIR_RESULTS 0x0003
       
   205 
       
   206 /*
       
   207  * SNAC Family: Buddy icons
       
   208  */
       
   209 #define SNAC_SUBTYPE_BART_ERROR 0x0001
       
   210 #define SNAC_SUBTYPE_BART_REQUEST 0x0004
       
   211 #define SNAC_SUBTYPE_BART_RESPONSE 0x0005
       
   212 
       
   213 /*
       
   214  * SNAC Family: Server-Stored Buddy Lists
       
   215  */
       
   216 #define SNAC_SUBTYPE_FEEDBAG_ERROR 0x0001
       
   217 #define SNAC_SUBTYPE_FEEDBAG_REQRIGHTS 0x0002
       
   218 #define SNAC_SUBTYPE_FEEDBAG_RIGHTSINFO 0x0003
       
   219 #define SNAC_SUBTYPE_FEEDBAG_REQDATA 0x0004
       
   220 #define SNAC_SUBTYPE_FEEDBAG_REQIFCHANGED 0x0005
       
   221 #define SNAC_SUBTYPE_FEEDBAG_LIST 0x0006
       
   222 #define SNAC_SUBTYPE_FEEDBAG_ACTIVATE 0x0007
       
   223 #define SNAC_SUBTYPE_FEEDBAG_ADD 0x0008
       
   224 #define SNAC_SUBTYPE_FEEDBAG_MOD 0x0009
       
   225 #define SNAC_SUBTYPE_FEEDBAG_DEL 0x000A
       
   226 #define SNAC_SUBTYPE_FEEDBAG_SRVACK 0x000E
       
   227 #define SNAC_SUBTYPE_FEEDBAG_NOLIST 0x000F
       
   228 #define SNAC_SUBTYPE_FEEDBAG_EDITSTART 0x0011
       
   229 #define SNAC_SUBTYPE_FEEDBAG_EDITSTOP 0x0012
       
   230 #define SNAC_SUBTYPE_FEEDBAG_SENDAUTH 0x0014
       
   231 #define SNAC_SUBTYPE_FEEDBAG_RECVAUTH 0x0015
       
   232 #define SNAC_SUBTYPE_FEEDBAG_SENDAUTHREQ 0x0018
       
   233 #define SNAC_SUBTYPE_FEEDBAG_RECVAUTHREQ 0x0019
       
   234 #define SNAC_SUBTYPE_FEEDBAG_SENDAUTHREP 0x001a
       
   235 #define SNAC_SUBTYPE_FEEDBAG_RECVAUTHREP 0x001b
       
   236 #define SNAC_SUBTYPE_FEEDBAG_ADDED 0x001c
       
   237 
       
   238 /*
       
   239  * SNAC Family: ICQ
       
   240  *
       
   241  * Most of these are actually special.
       
   242  */
       
   243 #define SNAC_SUBTYPE_ICQ_ERROR 0x0001
       
   244 #define SNAC_SUBTYPE_ICQ_OFFLINEMSG 0x00f0
       
   245 #define SNAC_SUBTYPE_ICQ_OFFLINEMSGCOMPLETE 0x00f1
       
   246 #define SNAC_SUBTYPE_ICQ_INFO 0x00f2
       
   247 #define SNAC_SUBTYPE_ICQ_ALIAS 0x00f3
       
   248 #define SNAC_SUBTYPE_ICQ_DEFAULT 0xffff
       
   249 
       
   250 /*
       
   251  * SNAC Family: Authorizer
       
   252  *
       
   253  * Used only in protocol versions three and above.
       
   254  */
       
   255 #define SNAC_SUBTYPE_AUTH_ERROR 0x0001
       
   256 #define SNAC_SUBTYPE_AUTH_LOGINREQEST 0x0002
       
   257 #define SNAC_SUBTYPE_AUTH_LOGINRESPONSE 0x0003
       
   258 #define SNAC_SUBTYPE_AUTH_AUTHREQ 0x0006
       
   259 #define SNAC_SUBTYPE_AUTH_AUTHRESPONSE 0x0007
       
   260 #define SNAC_SUBTYPE_AUTH_SECURID_REQUEST 0x000a
       
   261 #define SNAC_SUBTYPE_AUTH_SECURID_RESPONSE 0x000b
       
   262 
       
   263 /*
       
   264  * SNAC Family: Email
       
   265  *
       
   266  * Used for getting information on the email address
       
   267  * associated with your username.
       
   268  */
       
   269 #define SNAC_SUBTYPE_ALERT_ERROR 0x0001
       
   270 #define SNAC_SUBTYPE_ALERT_SENDCOOKIES 0x0006
       
   271 #define SNAC_SUBTYPE_ALERT_MAILSTATUS 0x0007
       
   272 #define SNAC_SUBTYPE_ALERT_INIT 0x0016
       
   273 
       
   274 /*
       
   275  * SNAC Family: Internal Messages
       
   276  *
       
   277  * This isn't truly a SNAC family either, but using
       
   278  * these, we can integrated non-SNAC services into
       
   279  * the SNAC-centered libfaim callback structure.
       
   280  */
       
   281 #define AIM_CB_SPECIAL_CONNERR 0x0003
       
   282 #define AIM_CB_SPECIAL_CONNINITDONE 0x0006
       
   283 
       
   284 /* SNAC flags */
       
   285 #define AIM_SNACFLAGS_DESTRUCTOR 0x0001
       
   286 
       
   287 #endif /* _SNACTYPES_H_ */