6
* Purple 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
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.
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.
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., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
25
#ifndef _QQ_BUDDY_INFO_H_
26
#define _QQ_BUDDY_INFO_H_
29
#include "connection.h"
31
#include "buddy_opt.h"
40
* bit5 => open mobile QQ
41
* bit6 => bind to mobile
42
* bit7 => whether having a video
43
#define QQ_COMM_FLAG_QQ_MEMBER 0x02
44
#define QQ_COMM_FLAG_TCP_MODE 0x10
45
#define QQ_COMM_FLAG_MOBILE 0x20
46
#define QQ_COMM_FLAG_BIND_MOBILE 0x40
47
#define QQ_COMM_FLAG_VIDEO 0x80
49
/* status in eva for qq2006
50
#define QQ_FRIEND_FLAG_QQ_MEMBER 0x01
51
#define QQ_FRIEND_FLAG_MOBILE 0x10
52
#define QQ_FRIEND_FLAG_BIND_MOBILE 0x20
54
#define QQ_COMM_FLAG_QQ_VIP 0x02
55
#define QQ_COMM_FLAG_QQ_MEMBER 0x04
56
#define QQ_COMM_FLAG_TCP_MODE 0x10
57
#define QQ_COMM_FLAG_MOBILE 0x20
58
#define QQ_COMM_FLAG_BIND_MOBILE 0x40
59
#define QQ_COMM_FLAG_VIDEO 0x80
61
#define QQ_EXT_FLAG_ZONE 0x02
63
#define QQ_BUDDY_GENDER_GG 0x00
64
#define QQ_BUDDY_GENDER_MM 0x01
65
#define QQ_BUDDY_GENDER_UNKNOWN 0xff
68
QQ_BUDDY_INFO_UPDATE_ONLY = 0,
69
QQ_BUDDY_INFO_DISPLAY,
70
QQ_BUDDY_INFO_SET_ICON,
71
QQ_BUDDY_INFO_MODIFY_BASE,
72
QQ_BUDDY_INFO_MODIFY_EXT,
73
QQ_BUDDY_INFO_MODIFY_ADDR,
74
QQ_BUDDY_INFO_MODIFY_CONTACT
77
gchar *qq_get_icon_name(gint face);
78
gchar *qq_get_icon_path(gchar *icon_name);
79
void qq_change_icon_cb(PurpleConnection *gc, const char *filepath);
81
void qq_request_buddy_info(PurpleConnection *gc, UID uid, UPDCLS update_class, int action);
82
void qq_set_custom_icon(PurpleConnection *gc, PurpleStoredImage *img);
83
void qq_process_change_info(PurpleConnection *gc, guint8 *data, gint data_len);
84
void qq_process_get_buddy_info(guint8 *data, gint data_len, guint32 action, PurpleConnection *gc);
86
void qq_request_get_level(PurpleConnection *gc, UID uid);
87
void qq_request_get_level_2007(PurpleConnection *gc, UID uid);
88
void qq_request_get_buddies_level(PurpleConnection *gc, UPDCLS update_class);
89
void qq_process_get_level_reply(guint8 *buf, gint buf_len, PurpleConnection *gc);
91
void qq_update_buddy_icon(PurpleAccount *account, const gchar *who, gint face);