comparison src/protocols/qq/buddy_info.h @ 14021:ef8490f9e823

[gaim-migrate @ 16618] Replaced all C++-style comments with C-style ones. Cleaned up some comments and implemented a more consistent formatting scheme. committer: Tailor Script <tailor@pidgin.im>
author Mark Huetsch <markhuetsch>
date Wed, 02 Aug 2006 15:35:36 +0000
parents 9c5790820ac6
children
comparison
equal deleted inserted replaced
14020:13e7ba964993 14021:ef8490f9e823
18 * You should have received a copy of the GNU General Public License 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 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 20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 */ 21 */
22 22
23 // START OF FILE
24 /*****************************************************************************/
25 #ifndef _QQ_BUDDY_INFO_H_ 23 #ifndef _QQ_BUDDY_INFO_H_
26 #define _QQ_BUDDY_INFO_H_ 24 #define _QQ_BUDDY_INFO_H_
27 25
28 #include <glib.h> 26 #include <glib.h>
29 #include "connection.h" // GaimConnection 27 #include "connection.h"
30 #include "buddy_opt.h" // gc_and_uid 28 #include "buddy_opt.h"
31 #include "qq.h" // qq_data 29 #include "qq.h"
32 30
33 #define QQ_COMM_FLAG_QQ_MEMBER 0x02 31 #define QQ_COMM_FLAG_QQ_MEMBER 0x02
34 #define QQ_COMM_FLAG_TCP_MODE 0x10 32 #define QQ_COMM_FLAG_TCP_MODE 0x10
35 #define QQ_COMM_FLAG_MOBILE 0x20 33 #define QQ_COMM_FLAG_MOBILE 0x20
36 #define QQ_COMM_FLAG_BIND_MOBILE 0x40 34 #define QQ_COMM_FLAG_BIND_MOBILE 0x40
39 #define QQ_BUDDY_GENDER_GG 0x00 37 #define QQ_BUDDY_GENDER_GG 0x00
40 #define QQ_BUDDY_GENDER_MM 0x01 38 #define QQ_BUDDY_GENDER_MM 0x01
41 #define QQ_BUDDY_GENDER_UNKNOWN 0xff 39 #define QQ_BUDDY_GENDER_UNKNOWN 0xff
42 40
43 typedef struct _contact_info { 41 typedef struct _contact_info {
44 gchar *uid; //0 42 gchar *uid;
45 gchar *nick; //1 43 gchar *nick;
46 gchar *country; //2 44 gchar *country;
47 gchar *province; //3 45 gchar *province;
48 gchar *zipcode; //4 46 gchar *zipcode;
49 gchar *address; //5 47 gchar *address;
50 gchar *tel; //6 48 gchar *tel;
51 gchar *age; //7 49 gchar *age;
52 gchar *gender; //8 50 gchar *gender;
53 gchar *name; //9 51 gchar *name;
54 gchar *email; //10 52 gchar *email;
55 gchar *pager_sn; //11 53 gchar *pager_sn;
56 gchar *pager_num; //12 54 gchar *pager_num;
57 gchar *pager_sp; //13 55 gchar *pager_sp;
58 gchar *pager_base_num; //14 56 gchar *pager_base_num;
59 gchar *pager_type; //15 57 gchar *pager_type;
60 gchar *occupation; //16 58 gchar *occupation;
61 gchar *homepage; //17 59 gchar *homepage;
62 gchar *auth_type; //18 60 gchar *auth_type;
63 gchar *unknown1; //19 61 gchar *unknown1;
64 gchar *unknown2; //20 62 gchar *unknown2;
65 gchar *face; //21 63 gchar *face;
66 gchar *hp_num; //22 64 gchar *hp_num;
67 gchar *hp_type; //23 65 gchar *hp_type;
68 gchar *intro; //24 66 gchar *intro;
69 gchar *city; //25 67 gchar *city;
70 gchar *unknown3; //26 68 gchar *unknown3;
71 gchar *unknown4; //27 69 gchar *unknown4;
72 gchar *unknown5; //28 70 gchar *unknown5;
73 gchar *is_open_hp; //29 71 gchar *is_open_hp;
74 gchar *is_open_contact; //30 72 gchar *is_open_contact;
75 gchar *college; //31 73 gchar *college;
76 gchar *horoscope; //32 74 gchar *horoscope;
77 gchar *zodiac; //33 sheng xiao 75 gchar *zodiac;
78 gchar *blood; //34 76 gchar *blood;
79 gchar *qq_show; //35 77 gchar *qq_show;
80 gchar *unknown6; //36, always 0x2D 78 gchar *unknown6; /* always 0x2D */
81 } contact_info; 79 } contact_info;
82 80
83 // There is no user id stored in the reply packet for information query 81 /* There is no user id stored in the reply packet for information query
84 // we have to manually store the query, so that we know the query source 82 * we have to manually store the query, so that we know the query source */
85 typedef struct _qq_info_query { 83 typedef struct _qq_info_query {
86 guint32 uid; 84 guint32 uid;
87 gboolean show_window; 85 gboolean show_window;
88 gboolean modify_info; 86 gboolean modify_info;
89 } qq_info_query; 87 } qq_info_query;
90 88
91 // We get an info packet on ourselves before we modify our information. 89 /* We get an info packet on ourselves before we modify our information.
92 // Even though not all of the information is currently modifiable, it still 90 * Even though not all of the information is currently modifiable, it still
93 // all needs to be there when we send out the modify info packet 91 * all needs to be there when we send out the modify info packet */
94 typedef struct _modify_info_data { 92 typedef struct _modify_info_data {
95 GaimConnection *gc; 93 GaimConnection *gc;
96 GList *misc, *node; 94 GList *misc, *node;
97 } modify_info_data; 95 } modify_info_data;
98 96