comparison libgaim/protocols/qq/group.h @ 14192:60b1bc8dbf37

[gaim-migrate @ 16863] Renamed 'core' to 'libgaim' committer: Tailor Script <tailor@pidgin.im>
author Evan Schoenberg <evan.s@dreskin.net>
date Sat, 19 Aug 2006 01:50:10 +0000
parents
children 8ff8f1c897b5
comparison
equal deleted inserted replaced
14191:009db0b357b5 14192:60b1bc8dbf37
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"
28 #include "connection.h"
29 #include "roomlist.h"
30 #include "qq.h"
31
32 #define GAIM_GROUP_QQ_QUN "QQ 群"
33
34 typedef enum {
35 QQ_GROUP_MEMBER_STATUS_NOT_MEMBER = 0x00, /* default 0x00 means not member */
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 {
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 */
45 guint32 internal_group_id;
46 guint32 external_group_id;
47 guint8 group_type; /* permanent or temporory */
48 guint32 creator_uid;
49 guint32 group_category;
50 guint8 auth_type;
51 gchar *group_name_utf8;
52 gchar *group_desc_utf8;
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 */
56 } qq_group;
57
58 GList *qq_chat_info(GaimConnection *gc);
59
60 void qq_group_init(GaimConnection *gc);
61
62 GaimRoomlist *qq_roomlist_get_list(GaimConnection *gc);
63
64 void qq_roomlist_cancel(GaimRoomlist *list);
65
66 #endif