gntblist.h
Go to the documentation of this file.
/* finch
*
* Finch is the legal property of its developers, whose names are too numerous
* to list here. Please refer to the COPYRIGHT file distributed with this
* source distribution.
*
* 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., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
*/
#ifndef _GNT_BLIST_H
#define _GNT_BLIST_H
#include "blist.h"
#include "gnttree.h"
/**********************************************************************
* @name GNT BuddyList API
**********************************************************************/
typedef struct
{
const char *id;
const char *name;
gboolean (*init)(void);
gboolean (*uninit)(void);
gboolean (*can_add_node)(PurpleBlistNode *node);
gpointer (*find_parent)(PurpleBlistNode *node);
gboolean (*create_tooltip)(gpointer selected_row, GString **body, char **title);
gpointer reserved[4];
} FinchBlistManager;
PurpleBlistUiOps * finch_blist_get_ui_ops(void);
void finch_blist_init(void);
void finch_blist_uninit(void);
void finch_blist_show(void);
gboolean finch_blist_get_position(int *x, int *y);
void finch_blist_set_position(int x, int y);
gboolean finch_blist_get_size(int *width, int *height);
void finch_blist_set_size(int width, int height);
gpointer finch_retrieve_user_info(PurpleConnection *conn, const char *name);
GntTree * finch_blist_get_tree(void);
void finch_blist_install_manager(const FinchBlistManager *manager);
void finch_blist_uninstall_manager(const FinchBlistManager *manager);
FinchBlistManager * finch_blist_manager_find(const char *id);
void finch_blist_manager_add_node(PurpleBlistNode *node);
#endif
blist.h
Buddy List API.
finch_blist_init
void finch_blist_init(void)
Perform necessary initializations.
finch_blist_set_position
void finch_blist_set_position(int x, int y)
Set the position of the buddy list.
finch_retrieve_user_info
gpointer finch_retrieve_user_info(PurpleConnection *conn, const char *name)
Get information about a user.
finch_blist_get_ui_ops
PurpleBlistUiOps * finch_blist_get_ui_ops(void)
Get the ui-functions.
finch_blist_uninit
void finch_blist_uninit(void)
Perform necessary uninitializations.
finch_blist_set_size
void finch_blist_set_size(int width, int height)
Set the size of the buddy list.
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_get_tree
GntTree * finch_blist_get_tree(void)
Get the tree list of the buddy list.
finch_blist_install_manager
void finch_blist_install_manager(const FinchBlistManager *manager)
Add an alternate buddy list manager.
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.
finch_blist_manager_add_node
void finch_blist_manager_add_node(PurpleBlistNode *node)
Request the active buddy list manager to add a node.
FinchBlistManager
Buddylist manager for finch.
Definition: gntblist.h:42
FinchBlistManager::name
const char * name
Displayable name for the manager.
Definition: gntblist.h:44
FinchBlistManager::id
const char * id
An identifier for the manager.
Definition: gntblist.h:43
_PurpleBlistNode
A Buddy list node.
Definition: blist.h:126
_PurpleBlistUiOps
Buddy list UI operations.
Definition: blist.h:206
_PurpleConnection
Definition: connection.h:246