Mercurial > pidgin
comparison libpurple/protocols/qq/buddy_memo.h @ 25517:59ed7712be5e
2009.02.21 - flos <lonicerae(at)gmail.com>
* Rewrite whole buddy memo part
* Remove 'qq_to_utf8_len' and 'utf8_to_qq_len' functions in char_conv.c
* Update ChangeLog, AUTHORS
author | SHiNE CsyFeK <csyfek@gmail.com> |
---|---|
date | Fri, 20 Feb 2009 18:00:32 +0000 |
parents | 7f903e67a995 |
children | 7da3cf2530b7 |
comparison
equal
deleted
inserted
replaced
25516:8bc9f89f305e | 25517:59ed7712be5e |
---|---|
1 | 1 #ifndef _QQ_BUDDY_MEMO_H_ |
2 #ifndef _BUDDY_MEMO_H | 2 #define _QQ_BUDDY_MEMO_H_ |
3 #define _BUDDY_MEMO_H | |
4 | 3 |
5 #include <glib.h> | 4 #include <glib.h> |
5 #include "connection.h" | |
6 #include "blist.h" | |
6 | 7 |
7 #include "connection.h" | 8 #define QQ_BUDDY_MEMO_REQUEST_SUCCESS 0x00 |
8 #include "buddy_opt.h" | |
9 #include "qq.h" | |
10 | 9 |
11 | 10 /* clan command for memo */ |
12 | 11 enum |
13 #include "internal.h" | 12 { |
14 #include "debug.h" | 13 QQ_BUDDY_MEMO_MODIFY = 0x01, /* upload memo */ |
15 #include "notify.h" | 14 QQ_BUDDY_MEMO_REMOVE, /* remove memo */ |
16 #include "request.h" | 15 QQ_BUDDY_MEMO_GET /* get memo */ |
17 #include "utils.h" | |
18 #include "packet_parse.h" | |
19 #include "buddy_list.h" | |
20 #include "buddy_info.h" | |
21 #include "char_conv.h" | |
22 #include "im.h" | |
23 #include "qq_define.h" | |
24 #include "qq_base.h" | |
25 #include "qq_network.h" | |
26 #include "../../blist.h" | |
27 | |
28 | |
29 | |
30 | |
31 | |
32 enum { | |
33 QQ_BUDDY_MEMO_NAME = 0, | |
34 QQ_BUDDY_MEMO_MOBILD, | |
35 QQ_BUDDY_MEMO_TELEPHONE, | |
36 QQ_BUDDY_MEMO_ADDRESS, | |
37 QQ_BUDDY_MEMO_EMAIL, | |
38 QQ_BUDDY_MEMO_ZIPCODE, | |
39 QQ_BUDDY_MEMO_NOTE, | |
40 QQ_BUDDY_MEMO_SIZE | |
41 }; | 16 }; |
42 | 17 |
43 | 18 |
19 void qq_process_get_buddy_memo(PurpleConnection *gc, guint8* data, gint data_len, guint32 action); | |
44 | 20 |
21 void qq_request_buddy_memo(PurpleConnection *gc, guint32 bd_uid, gint update_class, int action); | |
45 | 22 |
23 void qq_create_buddy_memo(PurpleConnection *gc, guint32 bd_uid, int action); | |
46 | 24 |
25 #endif | |
47 | 26 |
48 /** | |
49 * 向服务器发送下载好友备注信息的请求 | |
50 * | |
51 * @param gc | |
52 * @param uid 好友qq号码 | |
53 */ | |
54 void qq_request_buddy_memo_download(PurpleConnection *gc, guint32 uid); | |
55 | |
56 | |
57 | |
58 | |
59 | |
60 /** | |
61 * 处理服务器对好友备注信息的响应 | |
62 * | |
63 * @param gc | |
64 * @param data 解密后的数据 | |
65 * @param len data数据长度 | |
66 */ | |
67 void qq_process_get_buddy_memo( PurpleConnection *gc, guint8* data, gint len ); | |
68 | |
69 | |
70 /** | |
71 * 在好友列表项上右键菜单中显示好友信息的响应函数 | |
72 * | |
73 * @param node | |
74 * @param data | |
75 */ | |
76 void qq_on_show_memo(PurpleBlistNode *node, gpointer data); | |
77 | |
78 | |
79 #endif /* _BUDDY_MEMO_H */ | |
80 |