Mercurial > pidgin
comparison src/protocols/qq/buddy_status.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 | 16102b9c5c4a |
children |
comparison
equal
deleted
inserted
replaced
14020:13e7ba964993 | 14021:ef8490f9e823 |
---|---|
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 | 23 |
24 // START OF FILE | |
25 /*****************************************************************************/ | |
26 #ifndef _QQ_BUDDY_STATUS_H_ | 24 #ifndef _QQ_BUDDY_STATUS_H_ |
27 #define _QQ_BUDDY_STATUS_H_ | 25 #define _QQ_BUDDY_STATUS_H_ |
28 | 26 |
29 #include <glib.h> | 27 #include <glib.h> |
30 #include "connection.h" // GaimConnection | 28 #include "connection.h" |
31 #include "qq.h" // QQ_KEY_LENGTH | 29 #include "qq.h" |
32 | 30 |
33 typedef struct _qq_buddy_status { | 31 typedef struct _qq_buddy_status { |
34 guint32 uid; | 32 guint32 uid; |
35 guint8 unknown1; | 33 guint8 unknown1; |
36 guint8 *ip; | 34 guint8 *ip; |
40 guint16 client_version; | 38 guint16 client_version; |
41 guint8 *unknown_key; | 39 guint8 *unknown_key; |
42 } qq_buddy_status; | 40 } qq_buddy_status; |
43 | 41 |
44 enum { | 42 enum { |
45 QQ_BUDDY_OFFLINE = 0x00, // by gfhuang | 43 QQ_BUDDY_OFFLINE = 0x00, |
46 QQ_BUDDY_ONLINE_NORMAL = 0x0a, //10 | 44 QQ_BUDDY_ONLINE_NORMAL = 0x0a, |
47 QQ_BUDDY_ONLINE_OFFLINE = 0x14, //20 | 45 QQ_BUDDY_ONLINE_OFFLINE = 0x14, |
48 QQ_BUDDY_ONLINE_AWAY = 0x1e, //30 | 46 QQ_BUDDY_ONLINE_AWAY = 0x1e, |
49 QQ_BUDDY_ONLINE_INVISIBLE = 0x28, // 40 not 0x40!, bug by gfhuang | 47 QQ_BUDDY_ONLINE_INVISIBLE = 0x28 |
50 }; | 48 }; |
51 | 49 |
52 enum { | 50 enum { |
53 QQ_SELF_STATUS_AVAILABLE = 0x11, // I determined value | 51 QQ_SELF_STATUS_AVAILABLE = 0x11, |
54 QQ_SELF_STATUS_AWAY = 0x12, | 52 QQ_SELF_STATUS_AWAY = 0x12, |
55 QQ_SELF_STATUS_INVISIBLE = 0x13, | 53 QQ_SELF_STATUS_INVISIBLE = 0x13, |
56 QQ_SELF_STATUS_CUSTOM = 0x14, | 54 QQ_SELF_STATUS_CUSTOM = 0x14, |
57 QQ_SELF_STATUS_IDLE = 0x15, | 55 QQ_SELF_STATUS_IDLE = 0x15 |
58 }; | 56 }; |
59 | 57 |
60 void qq_buddy_status_dump_unclear(qq_buddy_status * s); | 58 void qq_buddy_status_dump_unclear(qq_buddy_status *s); |
61 gboolean is_online(guint8 status); | 59 gboolean is_online(guint8 status); |
62 | 60 |
63 gint qq_buddy_status_read(guint8 * data, guint8 ** cursor, gint len, qq_buddy_status * s); | 61 gint qq_buddy_status_read(guint8 *data, guint8 **cursor, gint len, qq_buddy_status *s); |
64 gchar get_suffix_from_status(guint8 status); | 62 gchar get_suffix_from_status(guint8 status); |
65 | 63 |
66 void qq_send_packet_change_status(GaimConnection * gc); | 64 void qq_send_packet_change_status(GaimConnection *gc); |
67 | 65 |
68 void qq_process_change_status_reply(guint8 * buf, gint buf_len, GaimConnection * gc); | 66 void qq_process_change_status_reply(guint8 *buf, gint buf_len, GaimConnection *gc); |
69 void qq_process_friend_change_status(guint8 * buf, gint buf_len, GaimConnection * gc); | 67 void qq_process_friend_change_status(guint8 *buf, gint buf_len, GaimConnection *gc); |
70 #endif | 68 #endif |
71 /*****************************************************************************/ | |
72 // END OF FILE |