comparison src/protocols/qq/header_info.h @ 14021:ef8490f9e823

[gaim-migrate @ 16618] Replaced all C++-style comments with C-style ones. Cleaned up some comments and implemented a more consistent formatting scheme. committer: Tailor Script <tailor@pidgin.im>
author Mark Huetsch <markhuetsch>
date Wed, 02 Aug 2006 15:35:36 +0000
parents 983fd420e86b
children
comparison
equal deleted inserted replaced
14020:13e7ba964993 14021:ef8490f9e823
18 * You should have received a copy of the GNU General Public License 18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software 19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 */ 21 */
22 22
23 // START OF FILE
24 /*****************************************************************************/
25 #ifndef _QQ_HEADER_INFO_H_ 23 #ifndef _QQ_HEADER_INFO_H_
26 #define _QQ_HEADER_INFO_H_ 24 #define _QQ_HEADER_INFO_H_
27 25
28 #include <glib.h> 26 #include <glib.h>
29 27
30 #define QQ_UDP_HEADER_LENGTH 7 28 #define QQ_UDP_HEADER_LENGTH 7
31 #define QQ_TCP_HEADER_LENGTH 9 29 #define QQ_TCP_HEADER_LENGTH 9
32 30
33 #define QQ_PACKET_TAG 0x02 // all QQ text packets starts with it 31 #define QQ_PACKET_TAG 0x02 /* all QQ text packets starts with it */
34 #define QQ_PACKET_TAIL 0x03 // all QQ text packets end with it 32 #define QQ_PACKET_TAIL 0x03 /* all QQ text packets end with it */
35 33
36 //#define QQ_CLIENT 0x0b37 // QQ2003iii build 0304, Aprili 05 update 34 /* #define QQ_CLIENT 0x0b37 */ /* QQ2003iii build 0304, Aprili 05 update */
37 35
38 // list of known QQ commands 36 /* list of known QQ commands */
39 enum { 37 enum {
40 QQ_CMD_LOGOUT = 0x0001, // log out 38 QQ_CMD_LOGOUT = 0x0001, /* log out */
41 QQ_CMD_KEEP_ALIVE = 0x0002, // get onlines from tencent 39 QQ_CMD_KEEP_ALIVE = 0x0002, /* get onlines from tencent */
42 QQ_CMD_UPDATE_INFO = 0x0004, // update information 40 QQ_CMD_UPDATE_INFO = 0x0004, /* update information */
43 QQ_CMD_SEARCH_USER = 0x0005, // serach for user 41 QQ_CMD_SEARCH_USER = 0x0005, /* serach for user */
44 QQ_CMD_GET_USER_INFO = 0x0006, // get user information 42 QQ_CMD_GET_USER_INFO = 0x0006, /* get user information */
45 QQ_CMD_ADD_FRIEND_WO_AUTH = 0x0009, // add friend without auth 43 QQ_CMD_ADD_FRIEND_WO_AUTH = 0x0009, /* add friend without auth */
46 QQ_CMD_DEL_FRIEND = 0x000a, // delete a friend 44 QQ_CMD_DEL_FRIEND = 0x000a, /* delete a friend */
47 QQ_CMD_BUDDY_AUTH = 0x000b, // buddy authentication 45 QQ_CMD_BUDDY_AUTH = 0x000b, /* buddy authentication */
48 QQ_CMD_CHANGE_ONLINE_STATUS = 0x000d, // change my online status 46 QQ_CMD_CHANGE_ONLINE_STATUS = 0x000d, /* change my online status */
49 QQ_CMD_ACK_SYS_MSG = 0x0012, // ack system message 47 QQ_CMD_ACK_SYS_MSG = 0x0012, /* ack system message */
50 QQ_CMD_SEND_IM = 0x0016, // send message 48 QQ_CMD_SEND_IM = 0x0016, /* send message */
51 QQ_CMD_RECV_IM = 0x0017, // receive message 49 QQ_CMD_RECV_IM = 0x0017, /* receive message */
52 QQ_CMD_REMOVE_SELF = 0x001c, // remove self 50 QQ_CMD_REMOVE_SELF = 0x001c, /* remove self */
53 QQ_CMD_REQUEST_KEY = 0x001d, // request key for file transfer 51 QQ_CMD_REQUEST_KEY = 0x001d, /* request key for file transfer */
54 QQ_CMD_CELL_PHONE_1 = 0x0021, // cell phone 1 52 QQ_CMD_CELL_PHONE_1 = 0x0021, /* cell phone 1 */
55 QQ_CMD_LOGIN = 0x0022, // login 53 QQ_CMD_LOGIN = 0x0022, /* login */
56 QQ_CMD_GET_FRIENDS_LIST = 0x0026, // retrieve my freinds list 54 QQ_CMD_GET_FRIENDS_LIST = 0x0026, /* retrieve my freinds list */
57 QQ_CMD_GET_FRIENDS_ONLINE = 0x0027, // get my online friends list 55 QQ_CMD_GET_FRIENDS_ONLINE = 0x0027, /* get my online friends list */
58 QQ_CMD_CELL_PHONE_2 = 0x0029, // cell phone 2 56 QQ_CMD_CELL_PHONE_2 = 0x0029, /* cell phone 2 */
59 QQ_CMD_GROUP_CMD = 0x0030, // group command 57 QQ_CMD_GROUP_CMD = 0x0030, /* group command */
60 QQ_CMD_GET_ALL_LIST_WITH_GROUP = 0x58, //by gfhuang 58 QQ_CMD_GET_ALL_LIST_WITH_GROUP = 0x58,
61 QQ_CMD_REQUEST_LOGIN_TOKEN = 0x62, //by gfhuang 59 QQ_CMD_REQUEST_LOGIN_TOKEN = 0x62,
62 QQ_CMD_RECV_MSG_SYS = 0x0080, // receive a system message 60 QQ_CMD_RECV_MSG_SYS = 0x0080, /* receive a system message */
63 QQ_CMD_RECV_MSG_FRIEND_CHANGE_STATUS = 0x0081, // friends change status 61 QQ_CMD_RECV_MSG_FRIEND_CHANGE_STATUS = 0x0081, /* friends change status */
64 }; 62 };
65 63
66 const gchar *qq_get_cmd_desc(gint type); 64 const gchar *qq_get_cmd_desc(gint type);
67 65
68 const gchar *qq_get_source_str(gint source); 66 const gchar *qq_get_source_str(gint source);
69 67
70 #endif 68 #endif
71 /*****************************************************************************/
72 // END OF FILE