comparison src/protocols/qq/header_info.c @ 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
comparison
equal deleted inserted replaced
14020:13e7ba964993 14021:ef8490f9e823
18 * You should have received a copy of the GNU General Public License 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 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 20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 */ 21 */
22 22
23 // START OF FILE
24 /*****************************************************************************/
25 #include "header_info.h" 23 #include "header_info.h"
26 24
27 #define QQ_CLIENT_062E 0x062e // GB QQ2000c build 0630 25 #define QQ_CLIENT_062E 0x062e /* GB QQ2000c build 0630 */
28 #define QQ_CLIENT_072E 0x072e // En QQ2000c build 0305 26 #define QQ_CLIENT_072E 0x072e /* EN QQ2000c build 0305 */
29 #define QQ_CLIENT_0801 0x0801 // En QQ2000c build 0630 27 #define QQ_CLIENT_0801 0x0801 /* EN QQ2000c build 0630 */
30 #define QQ_CLIENT_0A1D 0x0a1d // Gb QQ2003c build 0808 28 #define QQ_CLIENT_0A1D 0x0a1d /* GB QQ2003c build 0808 */
31 #define QQ_CLIENT_0B07 0x0b07 // Gb QQ2003c build 0925 29 #define QQ_CLIENT_0B07 0x0b07 /* GB QQ2003c build 0925 */
32 #define QQ_CLIENT_0B2F 0x0b2f // GB QQ2003iii build 0117 30 #define QQ_CLIENT_0B2F 0x0b2f /* GB QQ2003iii build 0117 */
33 #define QQ_CLIENT_0B35 0x0b35 // GB QQ2003iii build 0304 (offical release) 31 #define QQ_CLIENT_0B35 0x0b35 /* GB QQ2003iii build 0304 (offical release) */
34 #define QQ_CLIENT_0B37 0x0b37 // GB QQ2003iii build 0304 (April 05 updates) 32 #define QQ_CLIENT_0B37 0x0b37 /* GB QQ2003iii build 0304 (April 05 updates) */
35 #define QQ_SERVER_0100 0x0100 // server 33 #define QQ_SERVER_0100 0x0100 /* server */
36 34
37 /*****************************************************************************/ 35 /* given command alias, return the command name accordingly */
38 // given command alias, return the command name accordingly
39 const gchar *qq_get_cmd_desc(gint type) 36 const gchar *qq_get_cmd_desc(gint type)
40 { 37 {
41 switch (type) { 38 switch (type) {
42 case QQ_CMD_LOGOUT: 39 case QQ_CMD_LOGOUT:
43 return "QQ_CMD_LOGOUT"; 40 return "QQ_CMD_LOGOUT";
71 return "QQ_CMD_GET_FRIENDS_LIST"; 68 return "QQ_CMD_GET_FRIENDS_LIST";
72 case QQ_CMD_GET_FRIENDS_ONLINE: 69 case QQ_CMD_GET_FRIENDS_ONLINE:
73 return "QQ_CMD_GET_FRIENDS_ONLINE"; 70 return "QQ_CMD_GET_FRIENDS_ONLINE";
74 case QQ_CMD_GROUP_CMD: 71 case QQ_CMD_GROUP_CMD:
75 return "QQ_CMD_GROUP_CMD"; 72 return "QQ_CMD_GROUP_CMD";
76 case QQ_CMD_GET_ALL_LIST_WITH_GROUP: // by gfhuang 73 case QQ_CMD_GET_ALL_LIST_WITH_GROUP:
77 return "QQ_CMD_GET_ALL_LIST_WITH_GROUP"; 74 return "QQ_CMD_GET_ALL_LIST_WITH_GROUP";
78 case QQ_CMD_REQUEST_LOGIN_TOKEN: 75 case QQ_CMD_REQUEST_LOGIN_TOKEN:
79 return "QQ_CMD_REQUEST_LOGIN_TOKEN"; // by gfhuang 76 return "QQ_CMD_REQUEST_LOGIN_TOKEN";
80 case QQ_CMD_RECV_MSG_SYS: 77 case QQ_CMD_RECV_MSG_SYS:
81 return "QQ_CMD_RECV_MSG_SYS"; 78 return "QQ_CMD_RECV_MSG_SYS";
82 case QQ_CMD_RECV_MSG_FRIEND_CHANGE_STATUS: 79 case QQ_CMD_RECV_MSG_FRIEND_CHANGE_STATUS:
83 return "QQ_CMD_RECV_MSG_FRIEND_CHANGE_STATUS"; 80 return "QQ_CMD_RECV_MSG_FRIEND_CHANGE_STATUS";
84 default: 81 default:
85 return "UNKNOWN_TYPE"; 82 return "UNKNOWN_TYPE";
86 } // switch (type) 83 }
87 } // qq_get_cmd_desc 84 }
88 85
89 /*****************************************************************************/ 86 /* given source tag, return its description accordingly */
90 // given source tag, return its description accordingly
91 const gchar *qq_get_source_str(gint source) 87 const gchar *qq_get_source_str(gint source)
92 { 88 {
93 switch (source) { 89 switch (source) {
94 case QQ_CLIENT_062E: 90 case QQ_CLIENT_062E:
95 return "GB QQ2000c build 0630"; 91 return "GB QQ2000c build 0630";
110 case QQ_SERVER_0100: 106 case QQ_SERVER_0100:
111 return "QQ Server 0100"; 107 return "QQ Server 0100";
112 default: 108 default:
113 return "QQ unknown version"; 109 return "QQ unknown version";
114 } 110 }
115 } // qq_get_source_str 111 }
116
117 /*****************************************************************************/
118 // END OF FILE