| 1 /** |
|
| 2 * @file group_network.h |
|
| 3 * |
|
| 4 * purple |
|
| 5 * |
|
| 6 * Purple 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., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
|
| 23 */ |
|
| 24 |
|
| 25 #ifndef _QQ_GROUP_NETWORK_H_ |
|
| 26 #define _QQ_GROUP_NETWORK_H_ |
|
| 27 |
|
| 28 #include <glib.h> |
|
| 29 #include "connection.h" |
|
| 30 #include "group.h" |
|
| 31 #include "packet_parse.h" |
|
| 32 |
|
| 33 typedef enum { |
|
| 34 QQ_GROUP_CMD_CREATE_GROUP = 0x01, |
|
| 35 QQ_GROUP_CMD_MEMBER_OPT = 0x02, |
|
| 36 QQ_GROUP_CMD_MODIFY_GROUP_INFO = 0x03, |
|
| 37 QQ_GROUP_CMD_GET_GROUP_INFO = 0x04, |
|
| 38 QQ_GROUP_CMD_ACTIVATE_GROUP = 0x05, |
|
| 39 QQ_GROUP_CMD_SEARCH_GROUP = 0x06, |
|
| 40 QQ_GROUP_CMD_JOIN_GROUP = 0x07, |
|
| 41 QQ_GROUP_CMD_JOIN_GROUP_AUTH = 0x08, |
|
| 42 QQ_GROUP_CMD_EXIT_GROUP = 0x09, |
|
| 43 QQ_GROUP_CMD_SEND_MSG = 0x0a, |
|
| 44 QQ_GROUP_CMD_GET_ONLINE_MEMBER = 0x0b, |
|
| 45 QQ_GROUP_CMD_GET_MEMBER_INFO = 0x0c, |
|
| 46 |
|
| 47 QQ_GROUP_CMD_MODIFY_CARD = 0x0E, |
|
| 48 QQ_GROUP_CMD_REQUEST_ALL_REALNAMES = 0x0F, |
|
| 49 QQ_GROUP_CMD_REQUEST_CARD = 0x10, |
|
| 50 QQ_GROUP_CMD_SEND_IM_EX = 0x1A, |
|
| 51 QQ_GROUP_CMD_ADMIN = 0x1B, |
|
| 52 QQ_GROUP_CMD_TRANSFER = 0x1C, |
|
| 53 QQ_GROUP_CMD_CREATE_TEMP_QUN = 0x30, |
|
| 54 QQ_GROUP_CMD_MODIFY_TEMP_QUN_MEMBER = 0x31, |
|
| 55 QQ_GROUP_CMD_EXIT_TEMP_QUN = 0x32, |
|
| 56 QQ_GROUP_CMD_GET_TEMP_QUN_INFO = 0x33, |
|
| 57 QQ_GROUP_CMD_SEND_TEMP_QUN_IM = 0x35, |
|
| 58 QQ_GROUP_CMD_GET_TEMP_QUN_MEMBERS = 0x37, |
|
| 59 } qq_group_cmd; |
|
| 60 |
|
| 61 typedef struct _group_packet { |
|
| 62 guint16 send_seq; |
|
| 63 guint32 internal_group_id; |
|
| 64 } group_packet; |
|
| 65 |
|
| 66 const gchar *qq_group_cmd_get_desc(qq_group_cmd cmd); |
|
| 67 |
|
| 68 void qq_send_group_cmd(PurpleConnection *gc, qq_group *group, guint8 *raw_data, gint data_len); |
|
| 69 void qq_process_group_cmd_reply(guint8 *buf, gint buf_len, guint16 seq, PurpleConnection *gc); |
|
| 70 |
|
| 71 #endif |
|