view pidgin/gtkdisco.h @ 26690:9fb8d8d9783a

Move the handling of chat rooms to jabber_disco_service_items_cb. This saves us from (needlessly) disco#info'ing the conference server once per chat, which adds up when you're testing against jabber.org.
author Paul Aurich <paul@darkrain42.org>
date Wed, 15 Apr 2009 04:38:28 +0000
parents a5010188c01e
children
line wrap: on
line source

/**
 * @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_ */