~ubuntu-branches/ubuntu/quantal/pidgin/quantal

« back to all changes in this revision

Viewing changes to libpurple/protocols/qq/buddy_info.h

  • Committer: Bazaar Package Importer
  • Author(s): Ari Pollak
  • Date: 2011-06-13 21:17:20 UTC
  • mfrom: (1.3.19 upstream)
  • mto: This revision was merged to the branch mainline in revision 73.
  • Revision ID: james.westby@ubuntu.com-20110613211720-ke87vzmdcuaxams7
Tags: 2.8.0-1
* Imported Upstream version 2.8.0 (Closes: #630124)
* Remove SILC support since the library will be orphaned (Closes: #629222)
* Fix typo in libpurple-bin description (Closes: #625462)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/**
2
 
 * @file buddy_info.h
3
 
 *
4
 
 * purple
5
 
 *
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
8
 
 * source distribution.
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., 51 Franklin Street, Fifth Floor, Boston, MA  02111-1301  USA
23
 
 */
24
 
 
25
 
#ifndef _QQ_BUDDY_INFO_H_
26
 
#define _QQ_BUDDY_INFO_H_
27
 
 
28
 
#include <glib.h>
29
 
#include "connection.h"
30
 
 
31
 
#include "buddy_opt.h"
32
 
#include "qq.h"
33
 
 
34
 
/* use in qq2005
35
 
 * ext_flag: (0-7)
36
 
 *        bit1 => qq space
37
 
 * comm_flag: (0-7)
38
 
 *        bit1 => member
39
 
 *        bit4 => TCP mode
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
48
 
 */
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
53
 
*/
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
60
 
 
61
 
#define QQ_EXT_FLAG_ZONE                                0x02
62
 
 
63
 
#define QQ_BUDDY_GENDER_GG          0x00
64
 
#define QQ_BUDDY_GENDER_MM          0x01
65
 
#define QQ_BUDDY_GENDER_UNKNOWN     0xff
66
 
 
67
 
enum {
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
75
 
};
76
 
 
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);
80
 
 
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);
85
 
 
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);
90
 
 
91
 
void qq_update_buddy_icon(PurpleAccount *account, const gchar *who, gint face);
92
 
#endif