Mercurial > pidgin
annotate libpurple/protocols/qq/qq_define.c @ 26198:e1b91b7b5f69
merge of '7829ec76bdb008583f8da54e238c2265a1140db2'
and 'e10c42213b8452c2fd4906e4ca501ef3eb83bd69'
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Fri, 20 Mar 2009 05:46:04 +0000 |
parents | 7f903e67a995 |
children | 4deef745de87 |
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: |
24637 | 135 return "CMD_KEEP_ALIVE"; |
24133
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
136 case QQ_CMD_UPDATE_INFO: |
24637 | 137 return "CMD_UPDATE_INFO"; |
24133
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
138 case QQ_CMD_SEARCH_USER: |
24637 | 139 return "CMD_SEARCH_USER"; |
24133
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: |
24637 | 141 return "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: |
24637 | 143 return "CMD_ADD_BUDDY_NO_AUTH"; |
24163
7f5433ffbf8d
2008.10.22 - ccpaging <ccpaging(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
24162
diff
changeset
|
144 case QQ_CMD_REMOVE_BUDDY: |
24637 | 145 return "CMD_REMOVE_BUDDY"; |
24163
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: |
24637 | 147 return "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: |
24637 | 149 return "CMD_CHANGE_STATUS"; |
24133
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: |
24637 | 151 return "CMD_ACK_SYS_MSG"; |
24133
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
152 case QQ_CMD_SEND_IM: |
24637 | 153 return "CMD_SEND_IM"; |
24133
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
154 case QQ_CMD_RECV_IM: |
24637 | 155 return "CMD_RECV_IM"; |
24133
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
156 case QQ_CMD_REMOVE_ME: |
24637 | 157 return "CMD_REMOVE_ME"; |
24133
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
158 case QQ_CMD_LOGIN: |
24637 | 159 return "CMD_LOGIN"; |
24133
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: |
24637 | 161 return "CMD_GET_BUDDIES_LIST"; |
24133
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: |
24637 | 163 return "CMD_GET_BUDDIES_ONLINE"; |
24133
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
164 case QQ_CMD_ROOM: |
24637 | 165 return "CMD_ROOM"; |
24133
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: |
24637 | 167 return "CMD_GET_BUDDIES_AND_ROOMS"; |
24133
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
168 case QQ_CMD_GET_LEVEL: |
24637 | 169 return "CMD_GET_LEVEL"; |
24133
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
170 case QQ_CMD_TOKEN: |
24637 | 171 return "CMD_TOKEN"; |
24133
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: |
24637 | 173 return "CMD_RECV_MSG_SYS"; |
24133
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: |
24637 | 175 return "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: |
24637 | 177 return "CMD_GET_SERVER"; |
24135
dbc7a9742f8d
2008.09.26 - ccpaging <ccpaging(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
24134
diff
changeset
|
178 case QQ_CMD_TOKEN_EX: |
24637 | 179 return "CMD_TOKEN_EX"; |
24135
dbc7a9742f8d
2008.09.26 - ccpaging <ccpaging(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
24134
diff
changeset
|
180 case QQ_CMD_CHECK_PWD: |
24637 | 181 return "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: |
24637 | 183 return "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: |
24637 | 185 return "CMD_ADD_BUDDY_NO_AUTH_EX"; |
24163
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: |
24637 | 187 return "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: |
24637 | 189 return "CMD_BUDDY_CHECK_CODE"; |
24162
f4f29fac96c6
2008.10.20 - ccpaging <ccpaging(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
24161
diff
changeset
|
190 case QQ_CMD_BUDDY_QUESTION: |
24637 | 191 return "CMD_BUDDY_QUESTION"; |
25515
7f903e67a995
2009.02.09 - Chengming Wang <tiger2007532246(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
24645
diff
changeset
|
192 case QQ_CMD_BUDDY_MEMO: |
7f903e67a995
2009.02.09 - Chengming Wang <tiger2007532246(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
24645
diff
changeset
|
193 return "CMD_BUDDY_MEMO"; |
24133
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
194 default: |
24637 | 195 return "CMD_UNKNOW"; |
24133
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 } |
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 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
|
200 { |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
201 switch (room_cmd) { |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
202 case QQ_ROOM_CMD_CREATE: |
24637 | 203 return "ROOM_CMD_CREATE"; |
24133
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
204 case QQ_ROOM_CMD_MEMBER_OPT: |
24637 | 205 return "ROOM_CMD_MEMBER_OPT"; |
24133
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
206 case QQ_ROOM_CMD_CHANGE_INFO: |
24637 | 207 return "ROOM_CMD_CHANGE_INFO"; |
24133
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
208 case QQ_ROOM_CMD_GET_INFO: |
24637 | 209 return "ROOM_CMD_GET_INFO"; |
24133
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
210 case QQ_ROOM_CMD_ACTIVATE: |
24637 | 211 return "ROOM_CMD_ACTIVATE"; |
24133
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
212 case QQ_ROOM_CMD_SEARCH: |
24637 | 213 return "ROOM_CMD_SEARCH"; |
24133
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
214 case QQ_ROOM_CMD_JOIN: |
24637 | 215 return "ROOM_CMD_JOIN"; |
24133
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
216 case QQ_ROOM_CMD_AUTH: |
24637 | 217 return "ROOM_CMD_AUTH"; |
24133
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
218 case QQ_ROOM_CMD_QUIT: |
24637 | 219 return "ROOM_CMD_QUIT"; |
24645 | 220 case QQ_ROOM_CMD_SEND_IM: |
221 return "ROOM_CMD_SEND_IM"; | |
24133
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
222 case QQ_ROOM_CMD_GET_ONLINES: |
24637 | 223 return "ROOM_CMD_GET_ONLINES"; |
24133
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
224 case QQ_ROOM_CMD_GET_BUDDIES: |
24637 | 225 return "ROOM_CMD_GET_BUDDIES"; |
24133
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
226 case QQ_ROOM_CMD_CHANGE_CARD: |
24637 | 227 return "ROOM_CMD_CHANGE_CARD"; |
24133
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
228 case QQ_ROOM_CMD_GET_REALNAMES: |
24637 | 229 return "ROOM_CMD_GET_REALNAMES"; |
24133
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
230 case QQ_ROOM_CMD_GET_CARD: |
24637 | 231 return "ROOM_CMD_GET_CARD"; |
24133
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
232 case QQ_ROOM_CMD_SEND_IM_EX: |
24637 | 233 return "ROOM_CMD_SEND_IM_EX"; |
24133
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
234 case QQ_ROOM_CMD_ADMIN: |
24637 | 235 return "ROOM_CMD_ADMIN"; |
24133
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
236 case QQ_ROOM_CMD_TRANSFER: |
24637 | 237 return "ROOM_CMD_TRANSFER"; |
24133
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
238 case QQ_ROOM_CMD_TEMP_CREATE: |
24637 | 239 return "ROOM_CMD_TEMP_CREATE"; |
24133
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
240 case QQ_ROOM_CMD_TEMP_CHANGE_MEMBER: |
24637 | 241 return "ROOM_CMD_TEMP_CHANGE_MEMBER"; |
24133
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
242 case QQ_ROOM_CMD_TEMP_QUIT: |
24637 | 243 return "ROOM_CMD_TEMP_QUIT"; |
24133
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
244 case QQ_ROOM_CMD_TEMP_GET_INFO: |
24637 | 245 return "ROOM_CMD_TEMP_GET_INFO"; |
24133
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
246 case QQ_ROOM_CMD_TEMP_SEND_IM: |
24637 | 247 return "ROOM_CMD_TEMP_SEND_IM"; |
24133
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
248 case QQ_ROOM_CMD_TEMP_GET_MEMBERS: |
24637 | 249 return "ROOM_CMD_TEMP_GET_MEMBERS"; |
24133
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
250 default: |
24637 | 251 return "ROOM_CMD_UNKNOW"; |
24133
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
252 } |
a3cd7c3d9da1
2008.10.03 - Flos Loniceare<lonicerae(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
diff
changeset
|
253 } |
24148
1bdf7b602684
2008.10.07 - ccpaging <ccpaging(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
24135
diff
changeset
|
254 |
1bdf7b602684
2008.10.07 - ccpaging <ccpaging(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
24135
diff
changeset
|
255 /* 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
|
256 gboolean is_online(guint8 status) |
1bdf7b602684
2008.10.07 - ccpaging <ccpaging(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
24135
diff
changeset
|
257 { |
1bdf7b602684
2008.10.07 - ccpaging <ccpaging(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
24135
diff
changeset
|
258 switch(status) { |
1bdf7b602684
2008.10.07 - ccpaging <ccpaging(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
24135
diff
changeset
|
259 case QQ_BUDDY_ONLINE_NORMAL: |
1bdf7b602684
2008.10.07 - ccpaging <ccpaging(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
24135
diff
changeset
|
260 case QQ_BUDDY_ONLINE_AWAY: |
1bdf7b602684
2008.10.07 - ccpaging <ccpaging(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
24135
diff
changeset
|
261 case QQ_BUDDY_ONLINE_INVISIBLE: |
1bdf7b602684
2008.10.07 - ccpaging <ccpaging(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
24135
diff
changeset
|
262 case QQ_BUDDY_ONLINE_BUSY: |
1bdf7b602684
2008.10.07 - ccpaging <ccpaging(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
24135
diff
changeset
|
263 return TRUE; |
1bdf7b602684
2008.10.07 - ccpaging <ccpaging(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
24135
diff
changeset
|
264 case QQ_BUDDY_CHANGE_TO_OFFLINE: |
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 } |
1bdf7b602684
2008.10.07 - ccpaging <ccpaging(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
24135
diff
changeset
|
267 return FALSE; |
1bdf7b602684
2008.10.07 - ccpaging <ccpaging(at)gmail.com>
SHiNE CsyFeK <csyfek@gmail.com>
parents:
24135
diff
changeset
|
268 } |