14192
|
1 /**
|
15025
|
2 * @file group.h
|
14192
|
3 *
|
15025
|
4 * gaim
|
14192
|
5 *
|
15025
|
6 * Gaim 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.
|
14192
|
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
23 */
|
|
24
|
|
25 #ifndef _QQ_GROUP_H_
|
|
26 #define _QQ_GROUP_H_
|
|
27
|
|
28 #include <glib.h>
|
|
29 #include "account.h"
|
|
30 #include "connection.h"
|
|
31 #include "roomlist.h"
|
|
32 #include "qq.h"
|
|
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 {
|
14404
|
44 /* all these will be saved when we exit Gaim */
|
14192
|
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;
|
14404
|
55 /* all these will be loaded from the network */
|
14192
|
56 gchar *notice_utf8; /* group notice by admin */
|
14404
|
57 GList *members;
|
14192
|
58 } qq_group;
|
|
59
|
|
60 GList *qq_chat_info(GaimConnection *gc);
|
14404
|
61 GHashTable *qq_chat_info_defaults(GaimConnection *gc, const gchar *chat_name);
|
14192
|
62
|
|
63 void qq_group_init(GaimConnection *gc);
|
|
64
|
|
65 GaimRoomlist *qq_roomlist_get_list(GaimConnection *gc);
|
|
66
|
|
67 void qq_roomlist_cancel(GaimRoomlist *list);
|
|
68
|
|
69 #endif
|