Mercurial > pidgin
diff 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 |
line wrap: on
line diff
--- a/src/protocols/qq/header_info.h Wed Aug 02 13:37:13 2006 +0000 +++ b/src/protocols/qq/header_info.h Wed Aug 02 15:35:36 2006 +0000 @@ -20,8 +20,6 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -// START OF FILE -/*****************************************************************************/ #ifndef _QQ_HEADER_INFO_H_ #define _QQ_HEADER_INFO_H_ @@ -30,37 +28,37 @@ #define QQ_UDP_HEADER_LENGTH 7 #define QQ_TCP_HEADER_LENGTH 9 -#define QQ_PACKET_TAG 0x02 // all QQ text packets starts with it -#define QQ_PACKET_TAIL 0x03 // all QQ text packets end with it +#define QQ_PACKET_TAG 0x02 /* all QQ text packets starts with it */ +#define QQ_PACKET_TAIL 0x03 /* all QQ text packets end with it */ -//#define QQ_CLIENT 0x0b37 // QQ2003iii build 0304, Aprili 05 update +/* #define QQ_CLIENT 0x0b37 */ /* QQ2003iii build 0304, Aprili 05 update */ -// list of known QQ commands +/* list of known QQ commands */ enum { - QQ_CMD_LOGOUT = 0x0001, // log out - QQ_CMD_KEEP_ALIVE = 0x0002, // get onlines from tencent - QQ_CMD_UPDATE_INFO = 0x0004, // update information - QQ_CMD_SEARCH_USER = 0x0005, // serach for user - QQ_CMD_GET_USER_INFO = 0x0006, // get user information - QQ_CMD_ADD_FRIEND_WO_AUTH = 0x0009, // add friend without auth - QQ_CMD_DEL_FRIEND = 0x000a, // delete a friend - QQ_CMD_BUDDY_AUTH = 0x000b, // buddy authentication - QQ_CMD_CHANGE_ONLINE_STATUS = 0x000d, // change my online status - QQ_CMD_ACK_SYS_MSG = 0x0012, // ack system message - QQ_CMD_SEND_IM = 0x0016, // send message - QQ_CMD_RECV_IM = 0x0017, // receive message - QQ_CMD_REMOVE_SELF = 0x001c, // remove self - QQ_CMD_REQUEST_KEY = 0x001d, // request key for file transfer - QQ_CMD_CELL_PHONE_1 = 0x0021, // cell phone 1 - QQ_CMD_LOGIN = 0x0022, // login - QQ_CMD_GET_FRIENDS_LIST = 0x0026, // retrieve my freinds list - QQ_CMD_GET_FRIENDS_ONLINE = 0x0027, // get my online friends list - QQ_CMD_CELL_PHONE_2 = 0x0029, // cell phone 2 - QQ_CMD_GROUP_CMD = 0x0030, // group command - QQ_CMD_GET_ALL_LIST_WITH_GROUP = 0x58, //by gfhuang - QQ_CMD_REQUEST_LOGIN_TOKEN = 0x62, //by gfhuang - QQ_CMD_RECV_MSG_SYS = 0x0080, // receive a system message - QQ_CMD_RECV_MSG_FRIEND_CHANGE_STATUS = 0x0081, // friends change status + QQ_CMD_LOGOUT = 0x0001, /* log out */ + QQ_CMD_KEEP_ALIVE = 0x0002, /* get onlines from tencent */ + QQ_CMD_UPDATE_INFO = 0x0004, /* update information */ + QQ_CMD_SEARCH_USER = 0x0005, /* serach for user */ + QQ_CMD_GET_USER_INFO = 0x0006, /* get user information */ + QQ_CMD_ADD_FRIEND_WO_AUTH = 0x0009, /* add friend without auth */ + QQ_CMD_DEL_FRIEND = 0x000a, /* delete a friend */ + QQ_CMD_BUDDY_AUTH = 0x000b, /* buddy authentication */ + QQ_CMD_CHANGE_ONLINE_STATUS = 0x000d, /* change my online status */ + QQ_CMD_ACK_SYS_MSG = 0x0012, /* ack system message */ + QQ_CMD_SEND_IM = 0x0016, /* send message */ + QQ_CMD_RECV_IM = 0x0017, /* receive message */ + QQ_CMD_REMOVE_SELF = 0x001c, /* remove self */ + QQ_CMD_REQUEST_KEY = 0x001d, /* request key for file transfer */ + QQ_CMD_CELL_PHONE_1 = 0x0021, /* cell phone 1 */ + QQ_CMD_LOGIN = 0x0022, /* login */ + QQ_CMD_GET_FRIENDS_LIST = 0x0026, /* retrieve my freinds list */ + QQ_CMD_GET_FRIENDS_ONLINE = 0x0027, /* get my online friends list */ + QQ_CMD_CELL_PHONE_2 = 0x0029, /* cell phone 2 */ + QQ_CMD_GROUP_CMD = 0x0030, /* group command */ + QQ_CMD_GET_ALL_LIST_WITH_GROUP = 0x58, + QQ_CMD_REQUEST_LOGIN_TOKEN = 0x62, + QQ_CMD_RECV_MSG_SYS = 0x0080, /* receive a system message */ + QQ_CMD_RECV_MSG_FRIEND_CHANGE_STATUS = 0x0081, /* friends change status */ }; const gchar *qq_get_cmd_desc(gint type); @@ -68,5 +66,3 @@ const gchar *qq_get_source_str(gint source); #endif -/*****************************************************************************/ -// END OF FILE