comparison libpurple/protocols/qq/group.h @ 24095:25f62d21b3f8

disapproval of revision '8cebefbc6cd5d84acb69c74e69e8821f11dd225d'
author Daniel Atallah <daniel.atallah@gmail.com>
date Mon, 15 Sep 2008 03:04:07 +0000
parents 147ada94a1d8
children 225e0e9e1055
comparison
equal deleted inserted replaced
24088:147ada94a1d8 24095:25f62d21b3f8
32 #include "qq.h" 32 #include "qq.h"
33 33
34 #define PURPLE_GROUP_QQ_QUN "QQ 群" 34 #define PURPLE_GROUP_QQ_QUN "QQ 群"
35 35
36 typedef enum { 36 typedef enum {
37 QQ_ROOM_ROLE_NO = 0x00, /* default 0x00 means not member */ 37 QQ_GROUP_MEMBER_STATUS_NOT_MEMBER = 0x00, /* default 0x00 means not member */
38 QQ_ROOM_ROLE_YES, 38 QQ_GROUP_MEMBER_STATUS_IS_MEMBER,
39 QQ_ROOM_ROLE_REQUESTING, 39 QQ_GROUP_MEMBER_STATUS_APPLYING,
40 QQ_ROOM_ROLE_ADMIN, 40 QQ_GROUP_MEMBER_STATUS_IS_ADMIN,
41 } qq_room_role; 41 } qq_group_member_status;
42 42
43 typedef struct _qq_group { 43 typedef struct _qq_group {
44 /* all these will be saved when we exit Purple */ 44 /* all these will be saved when we exit Purple */
45 qq_room_role my_role; /* my role for this room */ 45 qq_group_member_status my_status; /* my status for this group */
46 gchar *my_role_desc; /* my role description */ 46 gchar *my_status_desc; /* my status description */
47 guint32 id; 47 guint32 id;
48 guint32 ext_id; 48 guint32 ext_id;
49 guint8 type8; /* permanent or temporory */ 49 guint8 type8; /* permanent or temporory */
50 guint32 creator_uid; 50 guint32 creator_uid;
51 guint32 category; 51 guint32 group_category;
52 guint8 auth_type; 52 guint8 auth_type;
53 gchar *title_utf8; 53 gchar *group_name_utf8;
54 gchar *desc_utf8; 54 gchar *group_desc_utf8;
55 /* all these will be loaded from the network */ 55 /* all these will be loaded from the network */
56 gchar *notice_utf8; /* group notice by admin */ 56 gchar *notice_utf8; /* group notice by admin */
57 GList *members; 57 GList *members;
58 } qq_group; 58 } qq_group;
59 59
60 GList *qq_chat_info(PurpleConnection *gc); 60 GList *qq_chat_info(PurpleConnection *gc);
61 GHashTable *qq_chat_info_defaults(PurpleConnection *gc, const gchar *chat_name); 61 GHashTable *qq_chat_info_defaults(PurpleConnection *gc, const gchar *chat_name);
62 62