14192
|
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
|
|
24 #ifndef _QQ_BUDDY_STATUS_H_
|
|
25 #define _QQ_BUDDY_STATUS_H_
|
|
26
|
|
27 #include <glib.h>
|
|
28 #include "connection.h"
|
|
29 #include "qq.h"
|
|
30
|
|
31 typedef struct _qq_buddy_status {
|
|
32 guint32 uid;
|
|
33 guint8 unknown1;
|
|
34 guint8 *ip;
|
|
35 guint16 port;
|
|
36 guint8 unknown2;
|
|
37 guint8 status;
|
|
38 guint16 client_version;
|
|
39 guint8 *unknown_key;
|
|
40 } qq_buddy_status;
|
|
41
|
|
42 enum {
|
|
43 QQ_BUDDY_OFFLINE = 0x00,
|
|
44 QQ_BUDDY_ONLINE_NORMAL = 0x0a,
|
|
45 QQ_BUDDY_ONLINE_OFFLINE = 0x14,
|
|
46 QQ_BUDDY_ONLINE_AWAY = 0x1e,
|
|
47 QQ_BUDDY_ONLINE_INVISIBLE = 0x28
|
|
48 };
|
|
49
|
|
50 void qq_buddy_status_dump_unclear(qq_buddy_status *s);
|
|
51 gboolean is_online(guint8 status);
|
|
52
|
|
53 gint qq_buddy_status_read(guint8 *data, guint8 **cursor, gint len, qq_buddy_status *s);
|
14318
|
54 gint get_icon_offset(GaimConnection *gc);
|
14192
|
55
|
|
56 void qq_send_packet_change_status(GaimConnection *gc);
|
|
57
|
|
58 void qq_process_change_status_reply(guint8 *buf, gint buf_len, GaimConnection *gc);
|
|
59 void qq_process_friend_change_status(guint8 *buf, gint buf_len, GaimConnection *gc);
|
|
60 #endif
|