pidgin 2.14.14dev
Loading...
Searching...
No Matches
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 **********************************************************************/
41typedef 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
64
69
74
83gboolean finch_blist_get_position(int *x, int *y);
84
91void finch_blist_set_position(int x, int y);
92
101gboolean finch_blist_get_size(int *width, int *height);
102
109void finch_blist_set_size(int width, int height);
110
121gpointer finch_retrieve_user_info(PurpleConnection *conn, const char *name);
122
128GntTree * finch_blist_get_tree(void);
129
137
145
155
163
166#endif
Buddy List API.
void finch_blist_init(void)
Perform necessary initializations.
void finch_blist_set_position(int x, int y)
Set the position of the buddy list.
gpointer finch_retrieve_user_info(PurpleConnection *conn, const char *name)
Get information about a user.
PurpleBlistUiOps * finch_blist_get_ui_ops(void)
Get the ui-functions.
void finch_blist_uninit(void)
Perform necessary uninitializations.
void finch_blist_set_size(int width, int height)
Set the size of the buddy list.
void finch_blist_uninstall_manager(const FinchBlistManager *manager)
Remove an alternate buddy list manager.
FinchBlistManager * finch_blist_manager_find(const char *id)
Find a buddy list manager.
gboolean finch_blist_get_size(int *width, int *height)
Get the size of the buddy list.
void finch_blist_install_manager(const FinchBlistManager *manager)
Add an alternate buddy list manager.
GntTree * finch_blist_get_tree(void)
Get the tree list of the buddy list.
gboolean finch_blist_get_position(int *x, int *y)
Get the position of the buddy list.
void finch_blist_show(void)
Show the buddy list.
void finch_blist_manager_add_node(PurpleBlistNode *node)
Request the active buddy list manager to add a node.
Buddylist manager for finch.
Definition gntblist.h:42
const char * name
Displayable name for the manager.
Definition gntblist.h:44
const char * id
An identifier for the manager.
Definition gntblist.h:43
A Buddy list node.
Definition blist.h:126
Buddy list UI operations.
Definition blist.h:206