Idź do dokumentacji tego pliku.00001 #ifndef __ICQ_CONST_H
00002 #define __ICQ_CONST_H
00003
00004
00005
00006
00007
00008
00009
00010 #define MTYPE_PLAIN 0x01
00011 #define MTYPE_CHAT 0x02
00012 #define MTYPE_FILEREQ 0x03
00013 #define MTYPE_URL 0x04
00014 #define MTYPE_AUTHREQ 0x06
00015 #define MTYPE_AUTHDENY 0x07
00016 #define MTYPE_AUTHOK 0x08
00017 #define MTYPE_SERVER 0x09
00018 #define MTYPE_ADDED 0x0C
00019 #define MTYPE_WWP 0x0D
00020 #define MTYPE_EEXPRESS 0x0E
00021 #define MTYPE_CONTACTS 0x13
00022 #define MTYPE_PLUGIN 0x1A
00023 #define MTYPE_AUTOAWAY 0xE8
00024 #define MTYPE_AUTOBUSY 0xE9
00025 #define MTYPE_AUTONA 0xEA
00026 #define MTYPE_AUTODND 0xEB
00027 #define MTYPE_AUTOFFC 0xEC
00028
00029
00030
00031 #define MTYPE_UNKNOWN 0x00 // Unknown message
00032
00033 #define MTYPE_GREETINGCARD 0x101 // Greeting Card
00034 #define MTYPE_REQUESTCONTACTS 0x102 // Request for Contacts
00035 #define MTYPE_MESSAGE 0x103 // Message+
00036 #define MTYPE_STATUSMSGEXT 0x104 // StatusMsgExt (2003b)
00037 #define MTYPE_SMS_MESSAGE 0x110 // SMS message from Mobile
00038 #define MTYPE_SCRIPT_INVITATION 0x201 // Xtraz Invitation
00039 #define MTYPE_SCRIPT_DATA 0x202 // Xtraz Message
00040 #define MTYPE_SCRIPT_NOTIFY 0x208 // Xtraz Response
00041 #define MTYPE_REVERSE_REQUEST 0x401 // Reverse DC request
00042
00043
00044
00045
00046
00047 #define MFLAG_NORMAL 0x01
00048 #define MFLAG_AUTO 0x03
00049 #define MFLAG_MULTI 0x80
00050
00051
00052
00053
00054 #define ACKTYPE_MESSAGE 0
00055 #define ACKTYPE_URL 1
00056 #define ACKTYPE_FILE 2
00057 #define ACKTYPE_CHAT 3
00058 #define ACKTYPE_AWAYMSG 4
00059 #define ACKTYPE_AUTHREQ 5
00060 #define ACKTYPE_ADDED 6
00061 #define ACKTYPE_GETINFO 7
00062 #define ACKTYPE_SETINFO 8
00063 #define ACKTYPE_LOGIN 9
00064 #define ACKTYPE_SEARCH 10
00065 #define ACKTYPE_NEWUSER 11
00066 #define ACKTYPE_STATUS 12
00067 #define ACKTYPE_CONTACTS 13 //send/recv of contacts
00068 #define ACKTYPE_AVATAR 14 //send/recv of avatars from a protocol
00069 #define ACKTYPE_EMAIL 15 //notify if the unread emails changed
00070
00071
00072
00073
00074 #define CLI_OFFLINE_MESSAGE_REQ 0x003c
00075 #define CLI_DELETE_OFFLINE_MSGS_REQ 0x003e
00076 #define CLI_META_INFO_REQ 0x07d0
00077
00078
00079
00080 #define CLI_FULLINFO_REQUEST 0x04b2
00081 #define CLI_SHORTINFO_REQUEST 0x04ba
00082 #define CLI_FULLINFO_REQUEST2 0x04d0
00083 #define CLI_FIND_BY_UIN2 0x0569
00084 #define CLI_WHITE_PAGES_SEARCH2 0x055F
00085 #define CLI_SET_FULLINFO 0x0c3a
00086
00087
00088
00089 #define SRV_OFFLINE_MESSAGE 0x0041
00090 #define SRV_END_OF_OFFLINE_MSGS 0x0042
00091 #define SRV_META_INFO_REPLY 0x07da
00092
00093
00094
00095
00096
00097 #define META_SET_HOMEINFO_ACK 0x0064
00098 #define META_SET_WORKINFO_ACK 0x006e
00099 #define META_SET_MOREINFO_ACK 0x0078
00100 #define META_SET_NOTES_ACK 0x0082
00101 #define META_SET_EMAILINFO_ACK 0x0087
00102 #define META_SET_INTINFO_ACK 0x008c
00103 #define META_SET_AFFINFO_ACK 0x0096
00104 #define META_SMS_DELIVERY_RECEIPT 0x0096
00105 #define META_SET_PERMS_ACK 0x00a0
00106 #define META_SET_PASSWORD_ACK 0x00aa
00107 #define META_UNREGISTER_ACK 0x00b4
00108 #define META_SET_HPAGECAT_ACK 0x00be
00109
00110 #define META_BASIC_USERINFO 0x00c8
00111 #define META_WORK_USERINFO 0x00d2
00112 #define META_MORE_USERINFO 0x00dc
00113 #define META_NOTES_USERINFO 0x00e6
00114 #define META_EMAIL_USERINFO 0x00eb
00115 #define META_INTERESTS_USERINFO 0x00f0
00116 #define META_AFFILATIONS_USERINFO 0x00fa
00117 #define META_SHORT_USERINFO 0x0104
00118 #define META_HPAGECAT_USERINFO 0x010e
00119
00120 #define SRV_USER_FOUND 0x01a4
00121 #define SRV_LAST_USER_FOUND 0x01ae
00122
00123 #define META_REGISTRATION_STATS_ACK 0x0302
00124 #define SRV_RANDOM_FOUND 0x0366
00125 #define META_XML_INFO 0x08a2
00126 #define META_SET_FULLINFO_ACK 0x0c3f
00127 #define META_SPAM_REPORT_ACK 0x2012
00128
00129
00130 #define ACKTYPE_MESSAGE 0
00131 #define ACKTYPE_URL 1
00132 #define ACKTYPE_FILE 2
00133 #define ACKTYPE_CHAT 3
00134 #define ACKTYPE_AWAYMSG 4
00135 #define ACKTYPE_AUTHREQ 5
00136 #define ACKTYPE_ADDED 6
00137 #define ACKTYPE_GETINFO 7
00138 #define ACKTYPE_SETINFO 8
00139 #define ACKTYPE_LOGIN 9
00140 #define ACKTYPE_SEARCH 10
00141 #define ACKTYPE_NEWUSER 11
00142 #define ACKTYPE_STATUS 12
00143 #define ACKTYPE_CONTACTS 13 //send/recv of contacts
00144 #define ACKTYPE_AVATAR 14 //send/recv of avatars from a protocol
00145 #define ACKTYPE_EMAIL 15 //notify if the unread emails changed
00146
00147
00148
00149
00150 #define STATUS_WEBAWARE 0x0001 // Status webaware flag
00151 #define STATUS_SHOWIP 0x0002 // Status show ip flag
00152 #define STATUS_BIRTHDAY 0x0008 // User birthday flag
00153 #define STATUS_WEBFRONT 0x0020 // User active webfront flag
00154 #define STATUS_DCDISABLED 0x0100 // Direct connection not supported
00155 #define STATUS_DCAUTH 0x1000 // Direct connection upon authorization
00156 #define STATUS_DCCONT 0x2000 // DC only with contact users
00157
00158
00159
00160
00161 #define DC_DISABLED 0x0000 // Direct connection disabled / auth required
00162 #define DC_HTTPS 0x0001 // Direct connection thru firewall or https proxy
00163 #define DC_SOCKS 0x0002 // Direct connection thru socks4/5 proxy server
00164 #define DC_NORMAL 0x0004 // Normal direct connection (without proxy/firewall)
00165 #define DC_WEB 0x0006 // Web client - no direct connection
00166
00167
00168
00169
00170
00171 #define ICQ_VERSION 8
00172 #define CLIENTFEATURES 0x3
00173 #define WEBFRONTPORT 0x50
00174
00175
00176 #endif