|
Packit |
79f644 |
/*
|
|
Packit |
79f644 |
* Copyright (C) 2007-2008 Guillaume Desmottes
|
|
Packit |
79f644 |
*
|
|
Packit |
79f644 |
* This library is free software; you can redistribute it and/or
|
|
Packit |
79f644 |
* modify it under the terms of the GNU Lesser General Public
|
|
Packit |
79f644 |
* License as published by the Free Software Foundation; either
|
|
Packit |
79f644 |
* version 2.1 of the License, or (at your option) any later version.
|
|
Packit |
79f644 |
*
|
|
Packit |
79f644 |
* This library is distributed in the hope that it will be useful,
|
|
Packit |
79f644 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
79f644 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
79f644 |
* Lesser General Public License for more details.
|
|
Packit |
79f644 |
*
|
|
Packit |
79f644 |
* You should have received a copy of the GNU Lesser General Public
|
|
Packit |
79f644 |
* License along with this library; if not, write to the Free Software
|
|
Packit |
79f644 |
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
Packit |
79f644 |
*
|
|
Packit |
79f644 |
* Authors: Guillaume Desmottes <gdesmott@gnome.org>
|
|
Packit |
79f644 |
*/
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
#ifndef __TPAW_IRC_NETWORK_MANAGER_H__
|
|
Packit |
79f644 |
#define __TPAW_IRC_NETWORK_MANAGER_H__
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
#include <glib-object.h>
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
#include "tpaw-irc-network.h"
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
G_BEGIN_DECLS
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
typedef struct _TpawIrcNetworkManager TpawIrcNetworkManager;
|
|
Packit |
79f644 |
typedef struct _TpawIrcNetworkManagerPriv TpawIrcNetworkManagerPriv;
|
|
Packit |
79f644 |
typedef struct _TpawIrcNetworkManagerClass TpawIrcNetworkManagerClass;
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
struct _TpawIrcNetworkManager
|
|
Packit |
79f644 |
{
|
|
Packit |
79f644 |
GObject parent;
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
/*<private>*/
|
|
Packit |
79f644 |
TpawIrcNetworkManagerPriv *priv;
|
|
Packit |
79f644 |
};
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
struct _TpawIrcNetworkManagerClass
|
|
Packit |
79f644 |
{
|
|
Packit |
79f644 |
GObjectClass parent_class;
|
|
Packit |
79f644 |
};
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
GType tpaw_irc_network_manager_get_type (void);
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
/* TYPE MACROS */
|
|
Packit |
79f644 |
#define TPAW_TYPE_IRC_NETWORK_MANAGER \
|
|
Packit |
79f644 |
(tpaw_irc_network_manager_get_type ())
|
|
Packit |
79f644 |
#define TPAW_IRC_NETWORK_MANAGER(o) \
|
|
Packit |
79f644 |
(G_TYPE_CHECK_INSTANCE_CAST ((o), TPAW_TYPE_IRC_NETWORK_MANAGER, \
|
|
Packit |
79f644 |
TpawIrcNetworkManager))
|
|
Packit |
79f644 |
#define TPAW_IRC_NETWORK_MANAGER_CLASS(k) \
|
|
Packit |
79f644 |
(G_TYPE_CHECK_CLASS_CAST ((k), TPAW_TYPE_IRC_NETWORK_MANAGER, \
|
|
Packit |
79f644 |
TpawIrcNetworkManagerClass))
|
|
Packit |
79f644 |
#define TPAW_IS_IRC_NETWORK_MANAGER(o) \
|
|
Packit |
79f644 |
(G_TYPE_CHECK_INSTANCE_TYPE ((o), TPAW_TYPE_IRC_NETWORK_MANAGER))
|
|
Packit |
79f644 |
#define TPAW_IS_IRC_NETWORK_MANAGER_CLASS(k) \
|
|
Packit |
79f644 |
(G_TYPE_CHECK_CLASS_TYPE ((k), TPAW_TYPE_IRC_NETWORK_MANAGER))
|
|
Packit |
79f644 |
#define TPAW_IRC_NETWORK_MANAGER_GET_CLASS(o) \
|
|
Packit |
79f644 |
(G_TYPE_INSTANCE_GET_CLASS ((o), TPAW_TYPE_IRC_NETWORK_MANAGER, \
|
|
Packit |
79f644 |
TpawIrcNetworkManagerClass))
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
TpawIrcNetworkManager * tpaw_irc_network_manager_new (
|
|
Packit |
79f644 |
const gchar *global_file, const gchar *user_file);
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
TpawIrcNetworkManager * tpaw_irc_network_manager_dup_default (void);
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
void tpaw_irc_network_manager_add (TpawIrcNetworkManager *manager,
|
|
Packit |
79f644 |
TpawIrcNetwork *network);
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
void tpaw_irc_network_manager_remove (TpawIrcNetworkManager *manager,
|
|
Packit |
79f644 |
TpawIrcNetwork *network);
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
GSList * tpaw_irc_network_manager_get_networks (
|
|
Packit |
79f644 |
TpawIrcNetworkManager *manager);
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
GSList * tpaw_irc_network_manager_get_dropped_networks (
|
|
Packit |
79f644 |
TpawIrcNetworkManager *manager);
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
TpawIrcNetwork * tpaw_irc_network_manager_find_network_by_address (
|
|
Packit |
79f644 |
TpawIrcNetworkManager *manager, const gchar *address);
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
G_END_DECLS
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
#endif /* __TPAW_IRC_NETWORK_MANAGER_H__ */
|