comparison libpurple/protocols/qq/header_info.c @ 15374:5fe8042783c1

Rename gtk/ and libgaim/ to pidgin/ and libpurple/
author Sean Egan <seanegan@gmail.com>
date Sat, 20 Jan 2007 02:32:10 +0000
parents
children 32c366eeeb99
comparison
equal deleted inserted replaced
15373:f79e0f4df793 15374:5fe8042783c1
1 /**
2 * @file header_info.c
3 *
4 * gaim
5 *
6 * Gaim is the legal property of its developers, whose names are too numerous
7 * to list here. Please refer to the COPYRIGHT file distributed with this
8 * source distribution.
9 *
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 */
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_CLIENT_0E1B 0x0e1b /* QQ2005? QQ2006? */
36 #define QQ_CLIENT_0F15 0x0f15 /* QQ2006 Spring Festival build */
37 #define QQ_CLIENT_0F5F 0x0f5f /* QQ2006 final build */
38
39 #define QQ_SERVER_0100 0x0100 /* server */
40
41 /* given command alias, return the command name accordingly */
42 const gchar *qq_get_cmd_desc(gint type)
43 {
44 switch (type) {
45 case QQ_CMD_LOGOUT:
46 return "QQ_CMD_LOGOUT";
47 case QQ_CMD_KEEP_ALIVE:
48 return "QQ_CMD_KEEP_ALIVE";
49 case QQ_CMD_UPDATE_INFO:
50 return "QQ_CMD_UPDATE_INFO";
51 case QQ_CMD_SEARCH_USER:
52 return "QQ_CMD_SEARCH_USER";
53 case QQ_CMD_GET_USER_INFO:
54 return "QQ_CMD_GET_USER_INFO";
55 case QQ_CMD_ADD_FRIEND_WO_AUTH:
56 return "QQ_CMD_ADD_FRIEND_WO_AUTH";
57 case QQ_CMD_DEL_FRIEND:
58 return "QQ_CMD_DEL_FRIEND";
59 case QQ_CMD_BUDDY_AUTH:
60 return "QQ_CMD_BUDDY_AUTH";
61 case QQ_CMD_CHANGE_ONLINE_STATUS:
62 return "QQ_CMD_CHANGE_ONLINE_STATUS";
63 case QQ_CMD_ACK_SYS_MSG:
64 return "QQ_CMD_ACK_SYS_MSG";
65 case QQ_CMD_SEND_IM:
66 return "QQ_CMD_SEND_IM";
67 case QQ_CMD_RECV_IM:
68 return "QQ_CMD_RECV_IM";
69 case QQ_CMD_REMOVE_SELF:
70 return "QQ_CMD_REMOVE_SELF";
71 case QQ_CMD_LOGIN:
72 return "QQ_CMD_LOGIN";
73 case QQ_CMD_GET_FRIENDS_LIST:
74 return "QQ_CMD_GET_FRIENDS_LIST";
75 case QQ_CMD_GET_FRIENDS_ONLINE:
76 return "QQ_CMD_GET_FRIENDS_ONLINE";
77 case QQ_CMD_GROUP_CMD:
78 return "QQ_CMD_GROUP_CMD";
79 case QQ_CMD_GET_ALL_LIST_WITH_GROUP:
80 return "QQ_CMD_GET_ALL_LIST_WITH_GROUP";
81 case QQ_CMD_GET_LEVEL:
82 return "QQ_CMD_GET_LEVEL";
83 case QQ_CMD_REQUEST_LOGIN_TOKEN:
84 return "QQ_CMD_REQUEST_LOGIN_TOKEN";
85 case QQ_CMD_RECV_MSG_SYS:
86 return "QQ_CMD_RECV_MSG_SYS";
87 case QQ_CMD_RECV_MSG_FRIEND_CHANGE_STATUS:
88 return "QQ_CMD_RECV_MSG_FRIEND_CHANGE_STATUS";
89 default:
90 return "UNKNOWN_TYPE";
91 }
92 }
93
94 /* given source tag, return its description accordingly */
95 const gchar *qq_get_source_str(gint source)
96 {
97 switch (source) {
98 case QQ_CLIENT_062E:
99 return "GB QQ2000c build 0630";
100 case QQ_CLIENT_072E:
101 return "En QQ2000c build 0305";
102 case QQ_CLIENT_0801:
103 return "En QQ2000c build 0630";
104 case QQ_CLIENT_0A1D:
105 return "GB QQ2003ii build 0808";
106 case QQ_CLIENT_0B07:
107 return "GB QQ2003ii build 0925";
108 case QQ_CLIENT_0B2F:
109 return "GB QQ2003iii build 0117";
110 case QQ_CLIENT_0B35:
111 return "GB QQ2003iii build 0304";
112 case QQ_CLIENT_0B37:
113 return "GB QQ2003iii build 0304 (April 5 update)";
114 case QQ_CLIENT_0E1B:
115 return "QQ2005 or QQ2006";
116 case QQ_CLIENT_0F15:
117 return "QQ2006 Spring Festival build";
118 case QQ_CLIENT_0F5F:
119 return "QQ2006 final build";
120 case QQ_SERVER_0100:
121 return "QQ Server 0100";
122 default:
123 return "QQ unknown version";
124 }
125 }