libpurple/protocols/qq/group.h

branch
cpw.masca.webkit
changeset 32503
ab886d3a38ae
parent 32502
e64e49502c79
parent 31944
77d17906f1c3
child 32504
8243b910ed4c
equal deleted inserted replaced
32502:e64e49502c79 32503:ab886d3a38ae
1 /**
2 * @file group.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_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 PURPLE_GROUP_QQ_QUN "QQ 群"
35
36 typedef enum {
37 QQ_ROOM_ROLE_NO = 0x00, /* default 0x00 means not member */
38 QQ_ROOM_ROLE_YES,
39 QQ_ROOM_ROLE_REQUESTING,
40 QQ_ROOM_ROLE_ADMIN
41 } qq_room_role;
42
43 typedef struct _qq_room_data qq_room_data;
44 struct _qq_room_data {
45 /* all these will be saved when we exit Purple */
46 qq_room_role my_role; /* my role for this room */
47 guint32 id;
48 guint32 ext_id;
49 guint8 type8; /* permanent or temporory */
50 guint32 creator_uid;
51 guint32 category;
52 guint8 auth_type;
53 gchar *title_utf8;
54 gchar *desc_utf8;
55 /* all these will be loaded from the network */
56 gchar *notice_utf8; /* group notice by admin */
57
58 gboolean is_got_buddies;
59 GList *members;
60 };
61
62 GList *qq_chat_info(PurpleConnection *gc);
63 GHashTable *qq_chat_info_defaults(PurpleConnection *gc, const gchar *chat_name);
64
65 PurpleRoomlist *qq_roomlist_get_list(PurpleConnection *gc);
66
67 void qq_roomlist_cancel(PurpleRoomlist *list);
68
69 #endif

mercurial