00001 00006 /* finch 00007 * 00008 * Finch is the legal property of its developers, whose names are too numerous 00009 * to list here. Please refer to the COPYRIGHT file distributed with this 00010 * source distribution. 00011 * 00012 * This program is free software; you can redistribute it and/or modify 00013 * it under the terms of the GNU General Public License as published by 00014 * the Free Software Foundation; either version 2 of the License, or 00015 * (at your option) any later version. 00016 * 00017 * This program is distributed in the hope that it will be useful, 00018 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00020 * GNU General Public License for more details. 00021 * 00022 * You should have received a copy of the GNU General Public License 00023 * along with this program; if not, write to the Free Software 00024 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA 00025 */ 00026 #ifndef _GNT_BLIST_H 00027 #define _GNT_BLIST_H 00028 00029 #include "blist.h" 00030 #include "gnttree.h" 00031 00032 /********************************************************************** 00033 * @name GNT BuddyList API 00034 **********************************************************************/ 00037 typedef struct 00038 { 00039 const char *id; 00040 const char *name; 00041 gboolean (*init)(void); 00042 gboolean (*uninit)(void); 00043 gboolean (*can_add_node)(PurpleBlistNode *node); 00044 gpointer (*find_parent)(PurpleBlistNode *node); 00045 gboolean (*create_tooltip)(gpointer selected_row, GString **body, char **title); 00046 gpointer reserved[4]; 00047 } FinchBlistManager; 00048 00054 PurpleBlistUiOps * finch_blist_get_ui_ops(void); 00055 00059 void finch_blist_init(void); 00060 00064 void finch_blist_uninit(void); 00065 00069 void finch_blist_show(void); 00070 00079 gboolean finch_blist_get_position(int *x, int *y); 00080 00087 void finch_blist_set_position(int x, int y); 00088 00097 gboolean finch_blist_get_size(int *width, int *height); 00098 00105 void finch_blist_set_size(int width, int height); 00106 00117 gpointer finch_retrieve_user_info(PurpleConnection *conn, const char *name); 00118 00124 GntTree * finch_blist_get_tree(void); 00125 00132 void finch_blist_install_manager(const FinchBlistManager *manager); 00133 00140 void finch_blist_uninstall_manager(const FinchBlistManager *manager); 00141 00150 FinchBlistManager * finch_blist_manager_find(const char *id); 00151 00158 void finch_blist_manager_add_node(PurpleBlistNode *node); 00159 00162 #endif