]> git.0d.be Git - empathy.git/blob - libempathy/empathy-connectivity.h
Updated Basque language
[empathy.git] / libempathy / empathy-connectivity.h
1 /* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2; -*- */
2 /*
3  * Copyright (C) 2009 Collabora Ltd.
4  *
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.
9  *
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.
14  *
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
18  *
19  * Authors: Jonny Lamb <jonny.lamb@collabora.co.uk>
20  */
21
22 #ifndef __EMPATHY_CONNECTIVITY_H__
23 #define __EMPATHY_CONNECTIVITY_H__
24
25 #include <glib-object.h>
26
27 G_BEGIN_DECLS
28
29 #define EMPATHY_TYPE_CONNECTIVITY (empathy_connectivity_get_type ())
30 #define EMPATHY_CONNECTIVITY(o) \
31   (G_TYPE_CHECK_INSTANCE_CAST ((o), EMPATHY_TYPE_CONNECTIVITY, \
32       EmpathyConnectivity))
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))
43
44 typedef struct _EmpathyConnectivity EmpathyConnectivity;
45 typedef struct _EmpathyConnectivityClass EmpathyConnectivityClass;
46
47 struct _EmpathyConnectivity {
48   GObject parent;
49   gpointer priv;
50 };
51
52 struct _EmpathyConnectivityClass {
53   GObjectClass parent_class;
54 };
55
56 GType empathy_connectivity_get_type (void);
57
58 /* public methods */
59
60 EmpathyConnectivity * empathy_connectivity_dup_singleton (void);
61
62 gboolean empathy_connectivity_is_online (EmpathyConnectivity *connectivity);
63
64 gboolean empathy_connectivity_get_use_conn (EmpathyConnectivity *connectivity);
65 void empathy_connectivity_set_use_conn (EmpathyConnectivity *connectivity,
66     gboolean use_conn);
67
68 G_END_DECLS
69
70 #endif /* __EMPATHY_CONNECTIVITY_H__ */
71