comparison src/protocols/qq/im.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 983fd420e86b
children 3cefea0bf4a2
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_IM_H_ 23 #ifndef _QQ_IM_H_
26 #define _QQ_IM_H_ 24 #define _QQ_IM_H_
27 25
28 #include <glib.h> 26 #include <glib.h>
29 #include "connection.h" // GaimConnection 27 #include "connection.h"
30 #include "group.h" // qq_group 28 #include "group.h"
31 29
32 #define QQ_MSG_IM_MAX 500 // max length of IM 30 #define QQ_MSG_IM_MAX 500 /* max length of IM */
33 #define QQ_SEND_IM_BEFORE_MSG_LEN 53 31 #define QQ_SEND_IM_BEFORE_MSG_LEN 53
34 #define QQ_SEND_IM_AFTER_MSG_LEN 13 // there is one 0x00 at the end 32 #define QQ_SEND_IM_AFTER_MSG_LEN 13 /* there is one 0x00 at the end */
35 33
36 enum { 34 enum {
37 QQ_IM_TEXT = 0x01, 35 QQ_IM_TEXT = 0x01,
38 QQ_IM_AUTO_REPLY = 0x02, 36 QQ_IM_AUTO_REPLY = 0x02
39 }; 37 };
40
41 38
42 enum { 39 enum {
43 QQ_RECV_IM_TO_BUDDY = 0x0009, 40 QQ_RECV_IM_TO_BUDDY = 0x0009,
44 QQ_RECV_IM_TO_UNKNOWN = 0x000a, 41 QQ_RECV_IM_TO_UNKNOWN = 0x000a,
45 QQ_RECV_IM_UNKNOWN_QUN_IM = 0x0020, //gfhuang 42 QQ_RECV_IM_UNKNOWN_QUN_IM = 0x0020,
46 QQ_RECV_IM_ADD_TO_QUN = 0x0021, 43 QQ_RECV_IM_ADD_TO_QUN = 0x0021,
47 QQ_RECV_IM_DEL_FROM_QUN = 0x0022, 44 QQ_RECV_IM_DEL_FROM_QUN = 0x0022,
48 QQ_RECV_IM_APPLY_ADD_TO_QUN = 0x0023, 45 QQ_RECV_IM_APPLY_ADD_TO_QUN = 0x0023,
49 QQ_RECV_IM_APPROVE_APPLY_ADD_TO_QUN = 0x0024, 46 QQ_RECV_IM_APPROVE_APPLY_ADD_TO_QUN = 0x0024,
50 QQ_RECV_IM_REJCT_APPLY_ADD_TO_QUN = 0x0025, 47 QQ_RECV_IM_REJCT_APPLY_ADD_TO_QUN = 0x0025,
51 QQ_RECV_IM_CREATE_QUN = 0x0026, 48 QQ_RECV_IM_CREATE_QUN = 0x0026,
52 QQ_RECV_IM_TEMP_QUN_IM = 0x002A, //gfhuang 49 QQ_RECV_IM_TEMP_QUN_IM = 0x002A,
53 QQ_RECV_IM_QUN_IM = 0x002B, //gfhuang 50 QQ_RECV_IM_QUN_IM = 0x002B,
54 QQ_RECV_IM_SYS_NOTIFICATION = 0x0030, 51 QQ_RECV_IM_SYS_NOTIFICATION = 0x0030
55 }; 52 };
56 53
57 guint8 *qq_get_send_im_tail(const gchar * font_color, 54 guint8 *qq_get_send_im_tail(const gchar *font_color,
58 const gchar * font_size, 55 const gchar *font_size,
59 const gchar * font_name, 56 const gchar *font_name,
60 gboolean is_bold, gboolean is_italic, gboolean is_underline, guint len); 57 gboolean is_bold, gboolean is_italic, gboolean is_underline, guint len);
61 58
62 void qq_send_packet_im(GaimConnection * gc, guint32 to_uid, gchar * msg, gint type); 59 void qq_send_packet_im(GaimConnection *gc, guint32 to_uid, gchar *msg, gint type);
63 void qq_process_recv_im(guint8 * buf, gint buf_len, guint16 seq, GaimConnection * gc); 60 void qq_process_recv_im(guint8 *buf, gint buf_len, guint16 seq, GaimConnection *gc);
64 void qq_process_send_im_reply(guint8 * buf, gint buf_len, GaimConnection * gc); 61 void qq_process_send_im_reply(guint8 *buf, gint buf_len, GaimConnection *gc);
65 62
66 #endif 63 #endif
67 /*****************************************************************************/
68 // END OF FILE