Mercurial > pidgin
comparison libpurple/protocols/qq/group.h @ 24088:147ada94a1d8
2008.08.16 - ccpaging <ecc_hy(at)hotmail.com>
* Rename group to room. If you used pidginqq before, this may create a new room with same title, you may
delete old one
* Replace purple_debug with purple_debug_info, purple_debug_warning, purple_debug_error
* Add server notice and server new, and two options to turn on/off
* Minor modify for reducing transaction's debug infor
* Minor modifies for system notice and QQ news.
* Add 4 new strings need translate compare with p10.
author | SHiNE CsyFeK <csyfek@gmail.com> |
---|---|
date | Thu, 11 Sep 2008 13:25:07 +0000 |
parents | 5f454b975a99 |
children | 69c218fd5d54 25f62d21b3f8 |
comparison
equal
deleted
inserted
replaced
24087:40a4e02027f4 | 24088:147ada94a1d8 |
---|---|
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_GROUP_MEMBER_STATUS_NOT_MEMBER = 0x00, /* default 0x00 means not member */ | 37 QQ_ROOM_ROLE_NO = 0x00, /* default 0x00 means not member */ |
38 QQ_GROUP_MEMBER_STATUS_IS_MEMBER, | 38 QQ_ROOM_ROLE_YES, |
39 QQ_GROUP_MEMBER_STATUS_APPLYING, | 39 QQ_ROOM_ROLE_REQUESTING, |
40 QQ_GROUP_MEMBER_STATUS_IS_ADMIN, | 40 QQ_ROOM_ROLE_ADMIN, |
41 } qq_group_member_status; | 41 } qq_room_role; |
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_group_member_status my_status; /* my status for this group */ | 45 qq_room_role my_role; /* my role for this room */ |
46 gchar *my_status_desc; /* my status description */ | 46 gchar *my_role_desc; /* my role 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 group_category; | 51 guint32 category; |
52 guint8 auth_type; | 52 guint8 auth_type; |
53 gchar *group_name_utf8; | 53 gchar *title_utf8; |
54 gchar *group_desc_utf8; | 54 gchar *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 |