14192
|
1 /**
|
15025
|
2 * @file buddy_info.h
|
14192
|
3 *
|
15025
|
4 * gaim
|
14192
|
5 *
|
15025
|
6 * Gaim 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.
|
14192
|
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
23 */
|
|
24
|
|
25 #ifndef _QQ_BUDDY_INFO_H_
|
|
26 #define _QQ_BUDDY_INFO_H_
|
|
27
|
|
28 #include <glib.h>
|
|
29 #include "connection.h"
|
14611
|
30
|
14192
|
31 #include "buddy_opt.h"
|
|
32 #include "qq.h"
|
|
33
|
|
34 #define QQ_COMM_FLAG_QQ_MEMBER 0x02
|
|
35 #define QQ_COMM_FLAG_TCP_MODE 0x10
|
|
36 #define QQ_COMM_FLAG_MOBILE 0x20
|
|
37 #define QQ_COMM_FLAG_BIND_MOBILE 0x40
|
|
38 #define QQ_COMM_FLAG_VIDEO 0x80
|
|
39
|
|
40 #define QQ_BUDDY_GENDER_GG 0x00
|
|
41 #define QQ_BUDDY_GENDER_MM 0x01
|
|
42 #define QQ_BUDDY_GENDER_UNKNOWN 0xff
|
|
43
|
|
44 typedef struct _contact_info {
|
14611
|
45 gchar *uid;
|
|
46 gchar *nick;
|
|
47 gchar *country;
|
|
48 gchar *province;
|
|
49 gchar *zipcode;
|
|
50 gchar *address;
|
|
51 gchar *tel;
|
|
52 gchar *age;
|
|
53 gchar *gender;
|
|
54 gchar *name;
|
|
55 gchar *email;
|
|
56 gchar *pager_sn;
|
|
57 gchar *pager_num;
|
|
58 gchar *pager_sp;
|
|
59 gchar *pager_base_num;
|
|
60 gchar *pager_type;
|
|
61 gchar *occupation;
|
|
62 gchar *homepage;
|
|
63 gchar *auth_type;
|
|
64 gchar *unknown1;
|
|
65 gchar *unknown2;
|
|
66 gchar *face;
|
|
67 gchar *hp_num;
|
|
68 gchar *hp_type;
|
|
69 gchar *intro;
|
|
70 gchar *city;
|
|
71 gchar *unknown3;
|
|
72 gchar *unknown4;
|
|
73 gchar *unknown5;
|
|
74 gchar *is_open_hp;
|
|
75 gchar *is_open_contact;
|
|
76 gchar *college;
|
|
77 gchar *horoscope;
|
|
78 gchar *zodiac;
|
|
79 gchar *blood;
|
|
80 gchar *qq_show;
|
|
81 gchar *unknown6; /* always 0x2D */
|
14192
|
82 } contact_info;
|
|
83
|
|
84 void qq_refresh_buddy_and_myself(contact_info *info, GaimConnection *gc);
|
|
85 void qq_send_packet_get_info(GaimConnection *gc, guint32 uid, gboolean show_window);
|
|
86 void qq_prepare_modify_info(GaimConnection *gc);
|
|
87 void qq_process_modify_info_reply(guint8 *buf, gint buf_len, GaimConnection *gc);
|
|
88 void qq_process_get_info_reply(guint8 *buf, gint buf_len, GaimConnection *gc);
|
|
89 void qq_info_query_free(qq_data *qd);
|
|
90
|
|
91 #endif
|