comparison libgaim/protocols/qq/header_info.h @ 14192:60b1bc8dbf37

[gaim-migrate @ 16863] Renamed 'core' to 'libgaim' committer: Tailor Script <tailor@pidgin.im>
author Evan Schoenberg <evan.s@dreskin.net>
date Sat, 19 Aug 2006 01:50:10 +0000
parents
children c039c920e11c
comparison
equal deleted inserted replaced
14191:009db0b357b5 14192:60b1bc8dbf37
1 /**
2 * The QQ2003C protocol plugin
3 *
4 * for gaim
5 *
6 * Copyright (C) 2004 Puzzlebird
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
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
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 */
22
23 #ifndef _QQ_HEADER_INFO_H_
24 #define _QQ_HEADER_INFO_H_
25
26 #include <glib.h>
27
28 #define QQ_UDP_HEADER_LENGTH 7
29 #define QQ_TCP_HEADER_LENGTH 9
30
31 #define QQ_PACKET_TAG 0x02 /* all QQ text packets starts with it */
32 #define QQ_PACKET_TAIL 0x03 /* all QQ text packets end with it */
33
34 /* #define QQ_CLIENT 0x0b37 */ /* QQ2003iii build 0304, Aprili 05 update */
35
36 /* list of known QQ commands */
37 enum {
38 QQ_CMD_LOGOUT = 0x0001, /* log out */
39 QQ_CMD_KEEP_ALIVE = 0x0002, /* get onlines from tencent */
40 QQ_CMD_UPDATE_INFO = 0x0004, /* update information */
41 QQ_CMD_SEARCH_USER = 0x0005, /* serach for user */
42 QQ_CMD_GET_USER_INFO = 0x0006, /* get user information */
43 QQ_CMD_ADD_FRIEND_WO_AUTH = 0x0009, /* add friend without auth */
44 QQ_CMD_DEL_FRIEND = 0x000a, /* delete a friend */
45 QQ_CMD_BUDDY_AUTH = 0x000b, /* buddy authentication */
46 QQ_CMD_CHANGE_ONLINE_STATUS = 0x000d, /* change my online status */
47 QQ_CMD_ACK_SYS_MSG = 0x0012, /* ack system message */
48 QQ_CMD_SEND_IM = 0x0016, /* send message */
49 QQ_CMD_RECV_IM = 0x0017, /* receive message */
50 QQ_CMD_REMOVE_SELF = 0x001c, /* remove self */
51 QQ_CMD_REQUEST_KEY = 0x001d, /* request key for file transfer */
52 QQ_CMD_CELL_PHONE_1 = 0x0021, /* cell phone 1 */
53 QQ_CMD_LOGIN = 0x0022, /* login */
54 QQ_CMD_GET_FRIENDS_LIST = 0x0026, /* retrieve my freinds list */
55 QQ_CMD_GET_FRIENDS_ONLINE = 0x0027, /* get my online friends list */
56 QQ_CMD_CELL_PHONE_2 = 0x0029, /* cell phone 2 */
57 QQ_CMD_GROUP_CMD = 0x0030, /* group command */
58 QQ_CMD_GET_ALL_LIST_WITH_GROUP = 0x58,
59 QQ_CMD_REQUEST_LOGIN_TOKEN = 0x62,
60 QQ_CMD_RECV_MSG_SYS = 0x0080, /* receive a system message */
61 QQ_CMD_RECV_MSG_FRIEND_CHANGE_STATUS = 0x0081, /* friends change status */
62 };
63
64 const gchar *qq_get_cmd_desc(gint type);
65
66 const gchar *qq_get_source_str(gint source);
67
68 #endif