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];
52 
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 
129 
137 
145 
155 
163 
166 #endif