gntblist.h
Go to the documentation of this file.
1
6 /* finch
7 *
8 * Finch is the legal property of its developers, whose names are too numerous
9 * to list here. Please refer to the COPYRIGHT file distributed with this
10 * source distribution.
11 *
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2 of the License, or
15 * (at your option) any later version.
16 *
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
25 */
26 #ifndef _GNT_BLIST_H
27 #define _GNT_BLIST_H
28
29 #include "blist.h"
30 #include "gnttree.h"
31
32 /**********************************************************************
33 * @name GNT BuddyList API
34 **********************************************************************/
41 typedef struct
42 {
43 const char *id;
44 const char *name;
45 gboolean (*init)(void);
46 gboolean (*uninit)(void);
47 gboolean (*can_add_node)(PurpleBlistNode *node);
48 gpointer (*find_parent)(PurpleBlistNode *node);
49 gboolean (*create_tooltip)(gpointer selected_row, GString **body, char **title);
50 gpointer reserved[4];
51 } FinchBlistManager;
52
58 PurpleBlistUiOps * finch_blist_get_ui_ops(void);
59
63 void finch_blist_init(void);
64
68 void finch_blist_uninit(void);
69
73 void finch_blist_show(void);
74
83 gboolean finch_blist_get_position(int *x, int *y);
84
91 void finch_blist_set_position(int x, int y);
92
101 gboolean finch_blist_get_size(int *width, int *height);
102
109 void finch_blist_set_size(int width, int height);
110
121 gpointer finch_retrieve_user_info(PurpleConnection *conn, const char *name);
122
128 GntTree * finch_blist_get_tree(void);
129
136 void finch_blist_install_manager(const FinchBlistManager *manager);
137
144 void finch_blist_uninstall_manager(const FinchBlistManager *manager);
145
154 FinchBlistManager * finch_blist_manager_find(const char *id);
155
162 void finch_blist_manager_add_node(PurpleBlistNode *node);
163
166 #endif
finch_blist_manager_add_node
void finch_blist_manager_add_node(PurpleBlistNode *node)
Request the active buddy list manager to add a node.
finch_blist_set_position
void finch_blist_set_position(int x, int y)
Set the position of the buddy list.
_PurpleBlistNode
A Buddy list node.
Definition: blist.h:124
FinchBlistManager
Buddylist manager for finch.
Definition: gntblist.h:41
finch_blist_install_manager
void finch_blist_install_manager(const FinchBlistManager *manager)
Add an alternate buddy list manager.
finch_blist_init
void finch_blist_init(void)
Perform necessary initializations.
finch_blist_uninit
void finch_blist_uninit(void)
Perform necessary uninitializations.
finch_blist_uninstall_manager
void finch_blist_uninstall_manager(const FinchBlistManager *manager)
Remove an alternate buddy list manager.
finch_blist_get_size
gboolean finch_blist_get_size(int *width, int *height)
Get the size of the buddy list.
finch_blist_set_size
void finch_blist_set_size(int width, int height)
Set the size of the buddy list.
blist.h
Buddy List API.
finch_blist_get_ui_ops
PurpleBlistUiOps * finch_blist_get_ui_ops(void)
Get the ui-functions.
FinchBlistManager::id
const char * id
An identifier for the manager.
Definition: gntblist.h:43
_GntTree
Definition: gnttree.h:57
gnttree.h
Tree API.
finch_retrieve_user_info
gpointer finch_retrieve_user_info(PurpleConnection *conn, const char *name)
Get information about a user.
_PurpleBlistUiOps
Buddy list UI operations.
Definition: blist.h:203
FinchBlistManager::name
const char * name
Displayable name for the manager.
Definition: gntblist.h:44
_PurpleConnection
Definition: connection.h:245
finch_blist_get_tree
GntTree * finch_blist_get_tree(void)
Get the tree list of the buddy list.
finch_blist_manager_find
FinchBlistManager * finch_blist_manager_find(const char *id)
Find a buddy list manager.
finch_blist_get_position
gboolean finch_blist_get_position(int *x, int *y)
Get the position of the buddy list.
finch_blist_show
void finch_blist_show(void)
Show the buddy list.