13870
|
1 /**
|
|
2 * The QQ2003C protocol plugin
|
|
3 *
|
|
4 * for gaim
|
|
5 *
|
|
6 * Copyright (C) 2004 Puzzlebird
|
|
7 *
|
|
8 * This program is free software; you can redistribute it and/or modify
|
|
9 * it under the terms of the GNU General Public License as published by
|
|
10 * the Free Software Foundation; either version 2 of the License, or
|
|
11 * (at your option) any later version.
|
|
12 *
|
|
13 * This program is distributed in the hope that it will be useful,
|
|
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16 * GNU General Public License for more details.
|
|
17 *
|
|
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
|
|
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
21 */
|
|
22
|
|
23 // START OF FILE
|
|
24 /*****************************************************************************/
|
|
25 #ifndef _QQ_GROUP_H_
|
|
26 #define _QQ_GROUP_H_
|
|
27
|
|
28 #include <glib.h>
|
|
29 #include "account.h"
|
|
30 #include "connection.h" // GaimConnection
|
|
31 #include "roomlist.h" // GaimRoomlist
|
|
32 #include "qq.h" // qq_data
|
|
33
|
|
34 #define GAIM_GROUP_QQ_QUN "QQ 群"
|
|
35
|
|
36 typedef enum {
|
|
37 QQ_GROUP_MEMBER_STATUS_NOT_MEMBER = 0x00, // default 0x00 means not member
|
|
38 QQ_GROUP_MEMBER_STATUS_IS_MEMBER,
|
|
39 QQ_GROUP_MEMBER_STATUS_APPLYING,
|
|
40 QQ_GROUP_MEMBER_STATUS_IS_ADMIN,
|
|
41 } qq_group_member_status;
|
|
42
|
|
43 typedef struct _qq_group {
|
|
44 // all these will be saved when exit GAIM
|
|
45 qq_group_member_status my_status; // my status for this group
|
|
46 gchar *my_status_desc; // my status description
|
|
47 guint32 internal_group_id;
|
|
48 guint32 external_group_id;
|
|
49 guint8 group_type; // permanent or temporory
|
|
50 guint32 creator_uid;
|
|
51 guint32 group_category;
|
|
52 guint8 auth_type;
|
|
53 gchar *group_name_utf8;
|
|
54 gchar *group_desc_utf8;
|
|
55 // all these will loaded from netowrk only
|
|
56 gchar *notice_utf8; // group notice by admin
|
|
57 GList *members; // those evert appear in the group
|
|
58 } qq_group;
|
|
59
|
|
60 GList *qq_chat_info(GaimConnection * gc);
|
|
61
|
|
62 void qq_group_init(GaimConnection * gc);
|
|
63
|
|
64 GaimRoomlist *qq_roomlist_get_list(GaimConnection * gc);
|
|
65
|
|
66 void qq_roomlist_cancel(GaimRoomlist * list);
|
|
67
|
|
68 #endif
|
|
69 /*****************************************************************************/
|
|
70 // END OF FILE
|