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 #ifndef _QQ_GROUP_H_
|
|
24 #define _QQ_GROUP_H_
|
|
25
|
|
26 #include <glib.h>
|
|
27 #include "account.h"
|
14021
|
28 #include "connection.h"
|
|
29 #include "roomlist.h"
|
|
30 #include "qq.h"
|
13870
|
31
|
|
32 #define GAIM_GROUP_QQ_QUN "QQ 群"
|
|
33
|
|
34 typedef enum {
|
14021
|
35 QQ_GROUP_MEMBER_STATUS_NOT_MEMBER = 0x00, /* default 0x00 means not member */
|
13870
|
36 QQ_GROUP_MEMBER_STATUS_IS_MEMBER,
|
|
37 QQ_GROUP_MEMBER_STATUS_APPLYING,
|
|
38 QQ_GROUP_MEMBER_STATUS_IS_ADMIN,
|
|
39 } qq_group_member_status;
|
|
40
|
|
41 typedef struct _qq_group {
|
14021
|
42 /* all these will be saved when exit GAIM */
|
|
43 qq_group_member_status my_status; /* my status for this group */
|
|
44 gchar *my_status_desc; /* my status description */
|
13870
|
45 guint32 internal_group_id;
|
|
46 guint32 external_group_id;
|
14021
|
47 guint8 group_type; /* permanent or temporory */
|
13870
|
48 guint32 creator_uid;
|
|
49 guint32 group_category;
|
|
50 guint8 auth_type;
|
|
51 gchar *group_name_utf8;
|
|
52 gchar *group_desc_utf8;
|
14021
|
53 /* all these will loaded from network only */
|
|
54 gchar *notice_utf8; /* group notice by admin */
|
|
55 GList *members; /* those evert appear in the group */
|
13870
|
56 } qq_group;
|
|
57
|
14021
|
58 GList *qq_chat_info(GaimConnection *gc);
|
13870
|
59
|
14021
|
60 void qq_group_init(GaimConnection *gc);
|
13870
|
61
|
14021
|
62 GaimRoomlist *qq_roomlist_get_list(GaimConnection *gc);
|
13870
|
63
|
14021
|
64 void qq_roomlist_cancel(GaimRoomlist *list);
|
13870
|
65
|
|
66 #endif
|