Mercurial > pidgin.yaz
diff pidgin/gtkdisco.h @ 26331:a5010188c01e
Add the files I forgot to `mtn add` earlier (also, alphabetized disco.h
enum a bit)
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Sun, 29 Mar 2009 19:43:32 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pidgin/gtkdisco.h Sun Mar 29 19:43:32 2009 +0000 @@ -0,0 +1,56 @@ +/** + * @file gtkdisco.c GTK+ Service Discovery UI + * @ingroup pidgin + */ + +/* pidgin + * + * Pidgin 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 _GTK_DISCO_H_ +#define _GTK_DISCO_H_ + + +/** + * Initializes the service discovery subsystem. + */ +void pidgin_disco_init(void); + +/** + * Determines if showing the service discovery dialog is a valid action. + * + * @return TRUE if there are accounts online that support service + * discovery. Otherwise return FALSE. + */ +gboolean pidgin_disco_is_showable(void); + +/** + * Shows a new service discovery dialog. + */ +void pidgin_disco_dialog_show(void); + +/** + * Shows a new service discovery dialog and fetches the list for the specified account. + * + * @param account The account to use. + */ +void pidgin_disco_dialog_show_with_account(PurpleAccount *account); + +#endif /* _GTK_DISCO_H_ */