Mercurial > pidgin
annotate libpurple/protocols/qq/qq_define.c @ 24633:2df8b8f3c3f6
Clean debug info
author | Hu Yong <ccpaging@gmail.com> |
---|---|
date | Wed, 12 Nov 2008 08:29:59 +0000 |
parents | 2a19984c0005 |
children | 0906e529330e |
rev | line source |
---|---|
24133
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
1 /** |
24134
bdfcfd71449c
patch 20080922 from ccpaging <ccpaging(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
24133
diff
changeset
|
2 * @file qq_define.c |
24133
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
3 * |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
4 * purple |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
5 * |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
6 * Purple is the legal property of its developers, whose names are too numerous |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
7 * to list here. Please refer to the COPYRIGHT file distributed with this |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
8 * source distribution. |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
9 * |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
10 * This program is free software; you can redistribute it and/or modify |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
11 * it under the terms of the GNU General Public License as published by |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
12 * the Free Software Foundation; either version 2 of the License, or |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
13 * (at your option) any later version. |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
14 * |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
15 * This program is distributed in the hope that it will be useful, |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
18 * GNU General Public License for more details. |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
19 * |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
20 * You should have received a copy of the GNU General Public License |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
21 * along with this program; if not, write to the Free Software |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
23 */ |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
24 |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
25 #include "internal.h" |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
26 |
24134
bdfcfd71449c
patch 20080922 from ccpaging <ccpaging(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
24133
diff
changeset
|
27 #include "qq_define.h" |
24133
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
28 |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
29 #define QQ_CLIENT_062E 0x062e /* GB QQ2000c build 0630 */ |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
30 #define QQ_CLIENT_072E 0x072e /* EN QQ2000c build 0305 */ |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
31 #define QQ_CLIENT_0801 0x0801 /* EN QQ2000c build 0630 */ |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
32 #define QQ_CLIENT_0A1D 0x0a1d /* GB QQ2003c build 0808 */ |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
33 #define QQ_CLIENT_0B07 0x0b07 /* GB QQ2003c build 0925 */ |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
34 #define QQ_CLIENT_0B2F 0x0b2f /* GB QQ2003iii build 0117 */ |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
35 #define QQ_CLIENT_0B35 0x0b35 /* GB QQ2003iii build 0304 (offical release) */ |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
36 #define QQ_CLIENT_0B37 0x0b37 /* GB QQ2003iii build 0304 (April 05 updates) */ |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
37 #define QQ_CLIENT_0E1B 0x0e1b /* QQ2005 ? */ |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
38 #define QQ_CLIENT_0E35 0x0e35 /* EN QQ2005 V05.0.200.020 */ |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
39 #define QQ_CLIENT_0F15 0x0f15 /* QQ2006 Spring Festival build */ |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
40 #define QQ_CLIENT_0F5F 0x0f5f /* QQ2006 final build */ |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
41 |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
42 #define QQ_CLIENT_0C0B 0x0C0B /* QQ2004 */ |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
43 #define QQ_CLIENT_0C0D 0x0C0D /* QQ2004 preview*/ |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
44 #define QQ_CLIENT_0C21 0x0C21 /* QQ2004 */ |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
45 #define QQ_CLIENT_0C49 0x0C49 /* QQ2004II */ |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
46 #define QQ_CLIENT_0D05 0x0D05 /* QQ2005 beta1 */ |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
47 #define QQ_CLIENT_0D51 0x0D51 /* QQ2005 beta2 */ |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
48 #define QQ_CLIENT_0D61 0x0D61 /* QQ2005 */ |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
49 #define QQ_CLIENT_05A5 0x05A5 /* ? */ |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
50 #define QQ_CLIENT_05F1 0x0F15 /* QQ2006 Spring Festival */ |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
51 #define QQ_CLIENT_0F4B 0x0F4B /* QQ2006 Beta 3 */ |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
52 |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
53 #define QQ_CLIENT_1105 0x1105 /* QQ2007 beta4*/ |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
54 #define QQ_CLIENT_1203 0x1203 /* QQ2008 */ |
24135
dbc7a9742f8d
2008.09.26 - ccpaging <ccpaging(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
24134
diff
changeset
|
55 #define QQ_CLIENT_1205 0x1205 /* QQ2008 Qi Fu */ |
24133
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
56 #define QQ_CLIENT_120B 0x120B /* QQ2008 July 8.0.978.400 */ |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
57 #define QQ_CLIENT_1412 0x1412 /* QQMac 1.0 preview1 build 670 */ |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
58 #define QQ_CLIENT_1441 0x1441 /* QQ2009 preview2 */ |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
59 |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
60 #define QQ_SERVER_0100 0x0100 /* server */ |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
61 |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
62 |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
63 /* given source tag, return its description accordingly */ |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
64 const gchar *qq_get_ver_desc(gint source) |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
65 { |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
66 switch (source) { |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
67 case QQ_CLIENT_062E: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
68 return "GB QQ2000c build 0630"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
69 case QQ_CLIENT_072E: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
70 return "En QQ2000c build 0305"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
71 case QQ_CLIENT_0801: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
72 return "En QQ2000c build 0630"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
73 case QQ_CLIENT_0A1D: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
74 return "GB QQ2003ii build 0808"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
75 case QQ_CLIENT_0B07: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
76 return "GB QQ2003ii build 0925"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
77 case QQ_CLIENT_0B2F: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
78 return "GB QQ2003iii build 0117"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
79 case QQ_CLIENT_0B35: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
80 return "GB QQ2003iii build 0304"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
81 case QQ_CLIENT_0B37: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
82 return "GB QQ2003iii build 0304 (April 5 update)"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
83 case QQ_CLIENT_0C0B: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
84 return "QQ2004"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
85 case QQ_CLIENT_0C0D: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
86 return "QQ2004 preview"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
87 case QQ_CLIENT_0C21: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
88 return "QQ2004"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
89 case QQ_CLIENT_0C49: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
90 return "QQ2004II"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
91 case QQ_CLIENT_0D05: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
92 return "QQ2005 beta1"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
93 case QQ_CLIENT_0D51: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
94 return "QQ2005 beta2"; |
24134
bdfcfd71449c
patch 20080922 from ccpaging <ccpaging(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
24133
diff
changeset
|
95 case QQ_CLIENT_0D55: |
24133
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
96 case QQ_CLIENT_0D61: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
97 return "QQ2005"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
98 case QQ_CLIENT_0E1B: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
99 return "QQ2005 or QQ2006"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
100 case QQ_CLIENT_0E35: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
101 return "En QQ2005 V05.0.200.020"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
102 case QQ_CLIENT_0F15: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
103 return "QQ2006 Spring Festival"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
104 case QQ_CLIENT_0F4B: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
105 return "QQ2006 beta3"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
106 case QQ_CLIENT_0F5F: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
107 return "QQ2006 final build"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
108 case QQ_CLIENT_1105: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
109 return "QQ2007 beta4"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
110 case QQ_CLIENT_111D: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
111 return "QQ2007"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
112 case QQ_CLIENT_115B: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
113 case QQ_CLIENT_1203: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
114 case QQ_CLIENT_1205: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
115 case QQ_CLIENT_120B: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
116 return "QQ2008"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
117 case QQ_CLIENT_1412: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
118 return "QQMac 1.0 preview1 build 670"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
119 case QQ_CLIENT_1441: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
120 return "QQ2009 preview2"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
121 case QQ_SERVER_0100: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
122 return "QQ Server 0100"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
123 default: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
124 return "Unknown Version"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
125 } |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
126 } |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
127 |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
128 /* given command alias, return the command name accordingly */ |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
129 const gchar *qq_get_cmd_desc(gint cmd) |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
130 { |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
131 switch (cmd) { |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
132 case QQ_CMD_LOGOUT: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
133 return "QQ_CMD_LOGOUT"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
134 case QQ_CMD_KEEP_ALIVE: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
135 return "QQ_CMD_KEEP_ALIVE"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
136 case QQ_CMD_UPDATE_INFO: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
137 return "QQ_CMD_UPDATE_INFO"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
138 case QQ_CMD_SEARCH_USER: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
139 return "QQ_CMD_SEARCH_USER"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
140 case QQ_CMD_GET_BUDDY_INFO: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
141 return "QQ_CMD_GET_BUDDY_INFO"; |
24163
7f5433ffbf8d
2008.10.22 - ccpaging <ccpaging(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
24162
diff
changeset
|
142 case QQ_CMD_ADD_BUDDY_NO_AUTH: |
7f5433ffbf8d
2008.10.22 - ccpaging <ccpaging(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
24162
diff
changeset
|
143 return "QQ_CMD_ADD_BUDDY_NO_AUTH"; |
7f5433ffbf8d
2008.10.22 - ccpaging <ccpaging(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
24162
diff
changeset
|
144 case QQ_CMD_REMOVE_BUDDY: |
7f5433ffbf8d
2008.10.22 - ccpaging <ccpaging(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
24162
diff
changeset
|
145 return "QQ_CMD_REMOVE_BUDDY"; |
7f5433ffbf8d
2008.10.22 - ccpaging <ccpaging(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
24162
diff
changeset
|
146 case QQ_CMD_ADD_BUDDY_AUTH: |
7f5433ffbf8d
2008.10.22 - ccpaging <ccpaging(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
24162
diff
changeset
|
147 return "QQ_CMD_ADD_BUDDY_AUTH"; |
24133
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
148 case QQ_CMD_CHANGE_STATUS: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
149 return "QQ_CMD_CHANGE_STATUS"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
150 case QQ_CMD_ACK_SYS_MSG: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
151 return "QQ_CMD_ACK_SYS_MSG"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
152 case QQ_CMD_SEND_IM: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
153 return "QQ_CMD_SEND_IM"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
154 case QQ_CMD_RECV_IM: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
155 return "QQ_CMD_RECV_IM"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
156 case QQ_CMD_REMOVE_ME: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
157 return "QQ_CMD_REMOVE_ME"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
158 case QQ_CMD_LOGIN: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
159 return "QQ_CMD_LOGIN"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
160 case QQ_CMD_GET_BUDDIES_LIST: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
161 return "QQ_CMD_GET_BUDDIES_LIST"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
162 case QQ_CMD_GET_BUDDIES_ONLINE: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
163 return "QQ_CMD_GET_BUDDIES_ONLINE"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
164 case QQ_CMD_ROOM: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
165 return "QQ_CMD_ROOM"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
166 case QQ_CMD_GET_BUDDIES_AND_ROOMS: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
167 return "QQ_CMD_GET_BUDDIES_AND_ROOMS"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
168 case QQ_CMD_GET_LEVEL: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
169 return "QQ_CMD_GET_LEVEL"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
170 case QQ_CMD_TOKEN: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
171 return "QQ_CMD_TOKEN"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
172 case QQ_CMD_RECV_MSG_SYS: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
173 return "QQ_CMD_RECV_MSG_SYS"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
174 case QQ_CMD_BUDDY_CHANGE_STATUS: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
175 return "QQ_CMD_BUDDY_CHANGE_STATUS"; |
24135
dbc7a9742f8d
2008.09.26 - ccpaging <ccpaging(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
24134
diff
changeset
|
176 case QQ_CMD_GET_SERVER: |
dbc7a9742f8d
2008.09.26 - ccpaging <ccpaging(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
24134
diff
changeset
|
177 return "QQ_CMD_GET_SERVER"; |
dbc7a9742f8d
2008.09.26 - ccpaging <ccpaging(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
24134
diff
changeset
|
178 case QQ_CMD_TOKEN_EX: |
dbc7a9742f8d
2008.09.26 - ccpaging <ccpaging(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
24134
diff
changeset
|
179 return "QQ_CMD_TOKEN_EX"; |
dbc7a9742f8d
2008.09.26 - ccpaging <ccpaging(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
24134
diff
changeset
|
180 case QQ_CMD_CHECK_PWD: |
dbc7a9742f8d
2008.09.26 - ccpaging <ccpaging(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
24134
diff
changeset
|
181 return "QQ_CMD_CHECK_PWD"; |
24164
2a19984c0005
2008.10.27 - ccpaging <ccpaging(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
24163
diff
changeset
|
182 case QQ_CMD_AUTH_CODE: |
2a19984c0005
2008.10.27 - ccpaging <ccpaging(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
24163
diff
changeset
|
183 return "QQ_CMD_AUTH_CODE"; |
24163
7f5433ffbf8d
2008.10.22 - ccpaging <ccpaging(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
24162
diff
changeset
|
184 case QQ_CMD_ADD_BUDDY_NO_AUTH_EX: |
7f5433ffbf8d
2008.10.22 - ccpaging <ccpaging(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
24162
diff
changeset
|
185 return "QQ_CMD_ADD_BUDDY_NO_AUTH_EX"; |
7f5433ffbf8d
2008.10.22 - ccpaging <ccpaging(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
24162
diff
changeset
|
186 case QQ_CMD_ADD_BUDDY_AUTH_EX: |
24135
dbc7a9742f8d
2008.09.26 - ccpaging <ccpaging(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
24134
diff
changeset
|
187 return "QQ_CMD_BUDDY_ADD_AUTH_EX"; |
24162
f4f29fac96c6
2008.10.20 - ccpaging <ccpaging(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
24161
diff
changeset
|
188 case QQ_CMD_BUDDY_CHECK_CODE: |
f4f29fac96c6
2008.10.20 - ccpaging <ccpaging(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
24161
diff
changeset
|
189 return "QQ_CMD_BUDDY_CHECK_CODE"; |
f4f29fac96c6
2008.10.20 - ccpaging <ccpaging(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
24161
diff
changeset
|
190 case QQ_CMD_BUDDY_QUESTION: |
f4f29fac96c6
2008.10.20 - ccpaging <ccpaging(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
24161
diff
changeset
|
191 return "QQ_CMD_BUDDY_QUESTION"; |
24133
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
192 default: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
193 return "Unknown CMD"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
194 } |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
195 } |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
196 |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
197 const gchar *qq_get_room_cmd_desc(gint room_cmd) |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
198 { |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
199 switch (room_cmd) { |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
200 case QQ_ROOM_CMD_CREATE: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
201 return "QQ_ROOM_CMD_CREATE"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
202 case QQ_ROOM_CMD_MEMBER_OPT: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
203 return "QQ_ROOM_CMD_MEMBER_OPT"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
204 case QQ_ROOM_CMD_CHANGE_INFO: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
205 return "QQ_ROOM_CMD_CHANGE_INFO"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
206 case QQ_ROOM_CMD_GET_INFO: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
207 return "QQ_ROOM_CMD_GET_INFO"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
208 case QQ_ROOM_CMD_ACTIVATE: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
209 return "QQ_ROOM_CMD_ACTIVATE"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
210 case QQ_ROOM_CMD_SEARCH: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
211 return "QQ_ROOM_CMD_SEARCH"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
212 case QQ_ROOM_CMD_JOIN: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
213 return "QQ_ROOM_CMD_JOIN"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
214 case QQ_ROOM_CMD_AUTH: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
215 return "QQ_ROOM_CMD_AUTH"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
216 case QQ_ROOM_CMD_QUIT: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
217 return "QQ_ROOM_CMD_QUIT"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
218 case QQ_ROOM_CMD_SEND_MSG: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
219 return "QQ_ROOM_CMD_SEND_MSG"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
220 case QQ_ROOM_CMD_GET_ONLINES: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
221 return "QQ_ROOM_CMD_GET_ONLINES"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
222 case QQ_ROOM_CMD_GET_BUDDIES: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
223 return "QQ_ROOM_CMD_GET_BUDDIES"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
224 case QQ_ROOM_CMD_CHANGE_CARD: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
225 return "QQ_ROOM_CMD_CHANGE_CARD"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
226 case QQ_ROOM_CMD_GET_REALNAMES: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
227 return "QQ_ROOM_CMD_GET_REALNAMES"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
228 case QQ_ROOM_CMD_GET_CARD: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
229 return "QQ_ROOM_CMD_GET_CARD"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
230 case QQ_ROOM_CMD_SEND_IM_EX: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
231 return "QQ_ROOM_CMD_SEND_IM_EX"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
232 case QQ_ROOM_CMD_ADMIN: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
233 return "QQ_ROOM_CMD_ADMIN"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
234 case QQ_ROOM_CMD_TRANSFER: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
235 return "QQ_ROOM_CMD_TRANSFER"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
236 case QQ_ROOM_CMD_TEMP_CREATE: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
237 return "QQ_ROOM_CMD_TEMP_CREATE"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
238 case QQ_ROOM_CMD_TEMP_CHANGE_MEMBER: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
239 return "QQ_ROOM_CMD_TEMP_CHANGE_MEMBER"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
240 case QQ_ROOM_CMD_TEMP_QUIT: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
241 return "QQ_ROOM_CMD_TEMP_QUIT"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
242 case QQ_ROOM_CMD_TEMP_GET_INFO: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
243 return "QQ_ROOM_CMD_TEMP_GET_INFO"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
244 case QQ_ROOM_CMD_TEMP_SEND_IM: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
245 return "QQ_ROOM_CMD_TEMP_SEND_IM"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
246 case QQ_ROOM_CMD_TEMP_GET_MEMBERS: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
247 return "QQ_ROOM_CMD_TEMP_GET_MEMBERS"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
248 default: |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
249 return "Unknown Room Command"; |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
250 } |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
251 } |
24148
1bdf7b602684
2008.10.07 - ccpaging <ccpaging(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
24135
diff
changeset
|
252 |
1bdf7b602684
2008.10.07 - ccpaging <ccpaging(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
24135
diff
changeset
|
253 /* check if status means online or offline */ |
1bdf7b602684
2008.10.07 - ccpaging <ccpaging(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
24135
diff
changeset
|
254 gboolean is_online(guint8 status) |
1bdf7b602684
2008.10.07 - ccpaging <ccpaging(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
24135
diff
changeset
|
255 { |
1bdf7b602684
2008.10.07 - ccpaging <ccpaging(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
24135
diff
changeset
|
256 switch(status) { |
1bdf7b602684
2008.10.07 - ccpaging <ccpaging(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
24135
diff
changeset
|
257 case QQ_BUDDY_ONLINE_NORMAL: |
1bdf7b602684
2008.10.07 - ccpaging <ccpaging(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
24135
diff
changeset
|
258 case QQ_BUDDY_ONLINE_AWAY: |
1bdf7b602684
2008.10.07 - ccpaging <ccpaging(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
24135
diff
changeset
|
259 case QQ_BUDDY_ONLINE_INVISIBLE: |
1bdf7b602684
2008.10.07 - ccpaging <ccpaging(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
24135
diff
changeset
|
260 case QQ_BUDDY_ONLINE_BUSY: |
1bdf7b602684
2008.10.07 - ccpaging <ccpaging(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
24135
diff
changeset
|
261 return TRUE; |
1bdf7b602684
2008.10.07 - ccpaging <ccpaging(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
24135
diff
changeset
|
262 case QQ_BUDDY_CHANGE_TO_OFFLINE: |
1bdf7b602684
2008.10.07 - ccpaging <ccpaging(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
24135
diff
changeset
|
263 return FALSE; |
1bdf7b602684
2008.10.07 - ccpaging <ccpaging(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
24135
diff
changeset
|
264 } |
1bdf7b602684
2008.10.07 - ccpaging <ccpaging(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
24135
diff
changeset
|
265 return FALSE; |
1bdf7b602684
2008.10.07 - ccpaging <ccpaging(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
24135
diff
changeset
|
266 } |