1 /* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2; -*- */
3 * Copyright (C) 2009 Collabora Ltd.
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 * Authors: Jonny Lamb <jonny.lamb@collabora.co.uk>
22 #ifndef __EMPATHY_CONNECTIVITY_H__
23 #define __EMPATHY_CONNECTIVITY_H__
25 #include <glib-object.h>
29 #define EMPATHY_TYPE_CONNECTIVITY (empathy_connectivity_get_type ())
30 #define EMPATHY_CONNECTIVITY(o) \
31 (G_TYPE_CHECK_INSTANCE_CAST ((o), EMPATHY_TYPE_CONNECTIVITY, \
33 #define EMPATHY_CONNECTIVITY_CLASS(k) \
34 (G_TYPE_CHECK_CLASS_CAST ((k), EMPATHY_TYPE_CONNECTIVITY, \
35 EmpathyConnectivityClass))
36 #define EMPATHY_IS_CONNECTIVITY(o) \
37 (G_TYPE_CHECK_INSTANCE_TYPE ((o), EMPATHY_TYPE_CONNECTIVITY))
38 #define EMPATHY_IS_CONNECTIVITY_CLASS(k) \
39 (G_TYPE_CHECK_CLASS_TYPE ((k), EMPATHY_TYPE_CONNECTIVITY))
40 #define EMPATHY_CONNECTIVITY_GET_CLASS(o) \
41 (G_TYPE_INSTANCE_GET_CLASS ((o), EMPATHY_TYPE_CONNECTIVITY, \
42 EmpathyConnectivityClass))
44 typedef struct _EmpathyConnectivity EmpathyConnectivity
;
45 typedef struct _EmpathyConnectivityClass EmpathyConnectivityClass
;
47 struct _EmpathyConnectivity
{
52 struct _EmpathyConnectivityClass
{
53 GObjectClass parent_class
;
56 GType
empathy_connectivity_get_type (void);
60 EmpathyConnectivity
* empathy_connectivity_dup_singleton (void);
62 gboolean
empathy_connectivity_is_online (EmpathyConnectivity
*connectivity
);
64 gboolean
empathy_connectivity_get_use_conn (EmpathyConnectivity
*connectivity
);
65 void empathy_connectivity_set_use_conn (EmpathyConnectivity
*connectivity
,
70 #endif /* __EMPATHY_CONNECTIVITY_H__ */