comparison src/protocols/qq/buddy_info.h @ 13870:983fd420e86b

[gaim-migrate @ 16340] Performed minor cleanup of the OpenQ codebase and patched it into the Gaim trunk as a prpl, providing basic QQ functionality. committer: Tailor Script <tailor@pidgin.im>
author Mark Huetsch <markhuetsch>
date Mon, 26 Jun 2006 02:58:54 +0000
parents
children 16102b9c5c4a
comparison
equal deleted inserted replaced
13869:5642f4658b59 13870:983fd420e86b
1 /**
2 * The QQ2003C protocol plugin
3 *
4 * for gaim
5 *
6 * Copyright (C) 2004 Puzzlebird
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 */
22
23 // START OF FILE
24 /*****************************************************************************/
25 #ifndef _QQ_BUDDY_INFO_H_
26 #define _QQ_BUDDY_INFO_H_
27
28 #include <glib.h>
29 #include "connection.h" // GaimConnection
30 #include "buddy_opt.h" // gc_and_uid
31 #include "qq.h" // qq_data
32
33 #define QQ_COMM_FLAG_QQ_MEMBER 0x02
34 #define QQ_COMM_FLAG_TCP_MODE 0x10
35 #define QQ_COMM_FLAG_MOBILE 0x20
36 #define QQ_COMM_FLAG_BIND_MOBILE 0x40
37 #define QQ_COMM_FLAG_VIDEO 0x80
38
39 #define QQ_BUDDY_GENDER_GG 0x00
40 #define QQ_BUDDY_GENDER_MM 0x01
41 #define QQ_BUDDY_GENDER_UNKNOWN 0xff
42
43 typedef struct _contact_info contact_info;
44
45 struct _contact_info {
46 gchar *uid; //0
47 gchar *nick; //1
48 gchar *country; //2
49 gchar *province; //3
50 gchar *zipcode; //4
51 gchar *address; //5
52 gchar *tel; //6
53 gchar *age; //7
54 gchar *gender; //8
55 gchar *name; //9
56 gchar *email; //10
57 gchar *pager_sn; //11
58 gchar *pager_num; //12
59 gchar *pager_sp; //13
60 gchar *pager_base_num; //14
61 gchar *pager_type; //15
62 gchar *occupation; //16
63 gchar *homepage; //17
64 gchar *auth_type; //18
65 gchar *unknown1; //19
66 gchar *unknown2; //20
67 gchar *face; //21
68 gchar *hp_num; //22
69 gchar *hp_type; //23
70 gchar *intro; //24
71 gchar *city; //25
72 gchar *unknown3; //26
73 gchar *unknown4; //27
74 gchar *unknown5; //28
75 gchar *is_open_hp; //29
76 gchar *is_open_contact; //30
77 gchar *college; //31
78 gchar *horoscope; //32
79 gchar *zodiac; //33 sheng xiao
80 gchar *blood; //34
81 gchar *qq_show; //35
82 gchar *unknown6; //36, always 0x2D
83 };
84
85 void qq_refresh_buddy_and_myself(contact_info * info, GaimConnection * gc);
86 void qq_send_packet_get_info(GaimConnection * gc, guint32 uid, gboolean show_window);
87 void qq_send_packet_modify_info(GaimConnection * gc, contact_info * info, gchar * new_passwd);
88 void qq_process_modify_info_reply(guint8 * buf, gint buf_len, GaimConnection * gc);
89 void qq_process_get_info_reply(guint8 * buf, gint buf_len, GaimConnection * gc);
90 void qq_info_query_free(qq_data * qd);
91
92 #endif
93 /*****************************************************************************/
94 // END OF FILE