首页 | 数据结构 | 文件列表 | 数据字段 | 全局定义

utils.c文件参考

#include "stdlib.h"
#include "limits.h"
#include "string.h"
#include "debug.h"
#include "utils.h"
#include "char_conv.h"
#include "prefs.h"

utils.c包含/依赖关系图:

浏览该文件的源代码。

宏定义

#define QQ_NAME_FORMAT   "qq-%d"

函数

gint g_str_has_prefix (const gchar *str, const gchar *prefix)
gchar * get_name_by_index_str (gchar **array, const gchar *index_str, gint amount)
gchar * get_index_str_by_name (gchar **array, const gchar *name, gint amount)
gint qq_string_to_dec_value (const gchar *str)
gchar ** split_data (guint8 *data, gint len, const gchar *delimit, gint expected_fields)
gchar * gen_ip_str (guint8 *ip)
gchar * get_icon_name (gint set, gint suffix)
gchar * uid_to_gaim_name (guint32 uid)
guint32 gaim_name_to_uid (const gchar *name)
GdkPixbuf * get_face_gdkpixbuf (guint8 index)
void try_dump_as_gbk (guint8 *data, gint len)
gchar * hex_dump_to_str (const guint8 *buffer, gint bytes)


宏定义文档

#define QQ_NAME_FORMAT   "qq-%d"
 

The QQ2003C protocol plugin

for gaim

Copyright (C) 2004 Puzzlebird

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

在文件utils.c38行定义。

参考自 uid_to_gaim_name().


函数文档

gint g_str_has_prefix const gchar *  str,
const gchar *  prefix
 

在文件utils.c41行定义。

参考自 gaim_name_to_uid()qq_group_find_member_by_channel_and_nickname().

guint32 gaim_name_to_uid const gchar *  name  ) 
 

在文件utils.c146行定义。

参考 g_str_has_prefix()QQ_NAME_PREFIX.

参考自 _qq_get_info()_qq_group_member_list_drag_data_rcv_cb()_qq_menu_block_buddy()_qq_send_im()_qq_xfer_cancel()_qq_xfer_init()_qq_xfer_recv_init()qq_add_buddy()qq_group_find_member_by_channel_and_nickname()qq_remove_buddy().

函数调用图:

gchar* gen_ip_str guint8 *  ip  ) 
 

在文件utils.c123行定义。

参考自 _qq_process_login_ok()_qq_process_login_redirect()_qq_tooltip_text()qq_show_conn_info().

GdkPixbuf* get_face_gdkpixbuf guint8  index  ) 
 

在文件utils.c160行定义。

参考 get_icon_name().

参考自 _create_page_basic()_info_window_change_face()_qq_set_image().

函数调用图:

gchar* get_icon_name gint  set,
gint  suffix
 

在文件utils.c131行定义。

参考自 _qq_list_icon()get_face_gdkpixbuf().

gchar* get_index_str_by_name gchar **  array,
const gchar *  name,
gint  amount
 

在文件utils.c60行定义。

参考自 _info_window_change().

gchar* get_name_by_index_str gchar **  array,
const gchar *  index_str,
gint  amount
 

在文件utils.c49行定义。

参考自 _create_page_details()qq_refresh_contact_info_dialog().

gchar* hex_dump_to_str const guint8 *  buffer,
gint  bytes
 

The QQ2003C protocol plugin

for gaim

Author: Henry Ou <henry@linux.net>

Copyright (C) 2004 Puzzlebird

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

在文件utils.c217行定义。

gint qq_string_to_dec_value const gchar *  str  ) 
 

在文件utils.c73行定义。

参考自 _qq_group_search_callback()qq_group_from_hashtable().

gchar** split_data guint8 *  data,
gint  len,
const gchar *  delimit,
gint  expected_fields
 

在文件utils.c83行定义。

参考自 _qq_menu_any_cmd_send_cb()_qq_process_recv_sys_im()qq_process_add_buddy_auth_reply()qq_process_add_buddy_reply()qq_process_get_info_reply()qq_process_keep_alive_reply()qq_process_msg_sys()qq_smiley_to_gaim().

void try_dump_as_gbk guint8 *  data,
gint  len
 

在文件utils.c189行定义。

参考 QQ_CHARSET_DEFAULTqq_to_utf8().

参考自 _qq_process_packet_default().

函数调用图:

gchar* uid_to_gaim_name guint32  uid  ) 
 

在文件utils.c139行定义。

参考 QQ_NAME_FORMAT.

参考自 _qq_menu_get_my_info()_qq_process_msg_sys_add_contact_request()_qq_process_msg_sys_being_added()_qq_process_recv_normal_im_text()qq_add_buddy_by_recv_packet()qq_block_buddy_with_gc_and_uid()qq_group_conv_refresh_online_member()qq_group_find_member_by_channel_and_nickname()qq_group_find_or_add_member()qq_process_add_buddy_reply()qq_process_friend_change_status()qq_process_get_buddies_list_reply()qq_process_get_buddies_online_reply()qq_process_recv_file_request()qq_process_recv_group_im()qq_refresh_buddy_and_myself()qq_update_buddy_contact().


Generated at Mon May 8 15:46:32 2006 for OpenQ by  doxygen 1.4.4