comparison src/protocols/qq/header_info.c @ 13870:983fd420e86b

[gaim-migrate @ 16340] Performed minor cleanup of the OpenQ codebase and patched it into the Gaim trunk as a prpl, providing basic QQ functionality. committer: Tailor Script <tailor@pidgin.im>
author Mark Huetsch <markhuetsch>
date Mon, 26 Jun 2006 02:58:54 +0000
parents
children ef8490f9e823
comparison
equal deleted inserted replaced
13869:5642f4658b59 13870:983fd420e86b
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 // START OF FILE
24 /*****************************************************************************/
25 #include "header_info.h"
26
27 #define QQ_CLIENT_062E 0x062e // GB QQ2000c build 0630
28 #define QQ_CLIENT_072E 0x072e // En QQ2000c build 0305
29 #define QQ_CLIENT_0801 0x0801 // En QQ2000c build 0630
30 #define QQ_CLIENT_0A1D 0x0a1d // Gb QQ2003c build 0808
31 #define QQ_CLIENT_0B07 0x0b07 // Gb QQ2003c build 0925
32 #define QQ_CLIENT_0B2F 0x0b2f // GB QQ2003iii build 0117
33 #define QQ_CLIENT_0B35 0x0b35 // GB QQ2003iii build 0304 (offical release)
34 #define QQ_CLIENT_0B37 0x0b37 // GB QQ2003iii build 0304 (April 05 updates)
35 #define QQ_SERVER_0100 0x0100 // server
36
37 /*****************************************************************************/
38 // given command alias, return the command name accordingly
39 const gchar *qq_get_cmd_desc(gint type)
40 {
41 switch (type) {
42 case QQ_CMD_LOGOUT:
43 return "QQ_CMD_LOGOUT";
44 case QQ_CMD_KEEP_ALIVE:
45 return "QQ_CMD_KEEP_ALIVE";
46 case QQ_CMD_UPDATE_INFO:
47 return "QQ_CMD_UPDATE_INFO";
48 case QQ_CMD_SEARCH_USER:
49 return "QQ_CMD_SEARCH_USER";
50 case QQ_CMD_GET_USER_INFO:
51 return "QQ_CMD_GET_USER_INFO";
52 case QQ_CMD_ADD_FRIEND_WO_AUTH:
53 return "QQ_CMD_ADD_FRIEND_WO_AUTH";
54 case QQ_CMD_DEL_FRIEND:
55 return "QQ_CMD_DEL_FRIEND";
56 case QQ_CMD_BUDDY_AUTH:
57 return "QQ_CMD_BUDDY_AUTH";
58 case QQ_CMD_CHANGE_ONLINE_STATUS:
59 return "QQ_CMD_CHANGE_ONLINE_STATUS";
60 case QQ_CMD_ACK_SYS_MSG:
61 return "QQ_CMD_ACK_SYS_MSG";
62 case QQ_CMD_SEND_IM:
63 return "QQ_CMD_SEND_IM";
64 case QQ_CMD_RECV_IM:
65 return "QQ_CMD_RECV_IM";
66 case QQ_CMD_REMOVE_SELF:
67 return "QQ_CMD_REMOVE_SELF";
68 case QQ_CMD_LOGIN:
69 return "QQ_CMD_LOGIN";
70 case QQ_CMD_GET_FRIENDS_LIST:
71 return "QQ_CMD_GET_FRIENDS_LIST";
72 case QQ_CMD_GET_FRIENDS_ONLINE:
73 return "QQ_CMD_GET_FRIENDS_ONLINE";
74 case QQ_CMD_GROUP_CMD:
75 return "QQ_CMD_GROUP_CMD";
76 case QQ_CMD_GET_ALL_LIST_WITH_GROUP: // by gfhuang
77 return "QQ_CMD_GET_ALL_LIST_WITH_GROUP";
78 case QQ_CMD_REQUEST_LOGIN_TOKEN:
79 return "QQ_CMD_REQUEST_LOGIN_TOKEN"; // by gfhuang
80 case QQ_CMD_RECV_MSG_SYS:
81 return "QQ_CMD_RECV_MSG_SYS";
82 case QQ_CMD_RECV_MSG_FRIEND_CHANGE_STATUS:
83 return "QQ_CMD_RECV_MSG_FRIEND_CHANGE_STATUS";
84 default:
85 return "UNKNOWN_TYPE";
86 } // switch (type)
87 } // qq_get_cmd_desc
88
89 /*****************************************************************************/
90 // given source tag, return its description accordingly
91 const gchar *qq_get_source_str(gint source)
92 {
93 switch (source) {
94 case QQ_CLIENT_062E:
95 return "GB QQ2000c build 0630";
96 case QQ_CLIENT_072E:
97 return "En QQ2000c build 0305";
98 case QQ_CLIENT_0801:
99 return "En QQ2000c build 0630";
100 case QQ_CLIENT_0A1D:
101 return "GB QQ2003ii build 0808";
102 case QQ_CLIENT_0B07:
103 return "GB QQ2003ii build 0925";
104 case QQ_CLIENT_0B2F:
105 return "GB QQ2003iii build 0117";
106 case QQ_CLIENT_0B35:
107 return "GB QQ2003iii build 0304";
108 case QQ_CLIENT_0B37:
109 return "GB QQ2003iii build 0304 (April 5 update)";
110 case QQ_SERVER_0100:
111 return "QQ Server 0100";
112 default:
113 return "QQ unknown version";
114 }
115 } // qq_get_source_str
116
117 /*****************************************************************************/
118 // END OF FILE