00001
00023
00024
00025 #ifndef _QQ_BUDDY_OPT_H_
00026 #define _QQ_BUDDY_OPT_H_
00027
00028 #include <glib.h>
00029 #include "connection.h"
00030
00031 #include "qq.h"
00032
00033 typedef struct _gc_and_uid gc_and_uid;
00034
00035 struct _gc_and_uid {
00036 guint32 uid;
00037 GaimConnection *gc;
00038 };
00039
00040 void qq_approve_add_request_with_gc_and_uid(gc_and_uid * g);
00041
00042 void qq_reject_add_request_with_gc_and_uid(gc_and_uid * g);
00043
00044 void qq_add_buddy_with_gc_and_uid(gc_and_uid * g);
00045
00046 void qq_block_buddy_with_gc_and_uid(gc_and_uid * g);
00047
00048 void qq_do_nothing_with_gc_and_uid(gc_and_uid * g, const gchar * msg);
00049
00050 void qq_process_remove_buddy_reply(guint8 * buf, gint buf_len, GaimConnection * gc);
00051 void qq_process_remove_self_reply(guint8 * buf, gint buf_len, GaimConnection * gc);
00052 void qq_process_add_buddy_reply(guint8 * buf, gint buf_len, guint16 seq, GaimConnection * gc);
00053 void qq_process_add_buddy_auth_reply(guint8 * buf, gint buf_len, GaimConnection * gc);
00054 GaimBuddy *qq_add_buddy_by_recv_packet(GaimConnection * gc, guint32 uid, gboolean is_known, gboolean create);
00055 void qq_add_buddy(GaimConnection * gc, GaimBuddy * buddy, GaimGroup * group);
00056 GaimGroup *qq_get_gaim_group(const gchar * group_name);
00057
00058 void qq_remove_buddy(GaimConnection * gc, GaimBuddy * buddy, GaimGroup * group);
00059 void qq_add_buddy_request_free(qq_data * qd);
00060
00061 void qq_buddies_list_free(qq_data * qd);
00062
00063 #endif
00064
00065