]> git.0d.be Git - empathy.git/blob - libempathy-gtk/empathy-geoclue-helper.h
remove released flag
[empathy.git] / libempathy-gtk / empathy-geoclue-helper.h
1 /*
2  * empathy-geoclue-helper.h
3  *
4  * Copyright (C) 2013 Collabora Ltd. <http://www.collabora.co.uk/>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19  */
20
21 #ifndef __EMPATHY_GEOCLUE_HELPER_H__
22 #define __EMPATHY_GEOCLUE_HELPER_H__
23
24 #include <glib-object.h>
25
26 G_BEGIN_DECLS
27
28 #include "geoclue-interface.h"
29
30 typedef struct _EmpathyGeoclueHelper EmpathyGeoclueHelper;
31 typedef struct _EmpathyGeoclueHelperClass EmpathyGeoclueHelperClass;
32 typedef struct _EmpathyGeoclueHelperPriv EmpathyGeoclueHelperPriv;
33
34 struct _EmpathyGeoclueHelperClass
35 {
36   /*<private>*/
37   GObjectClass parent_class;
38 };
39
40 struct _EmpathyGeoclueHelper
41 {
42   /*<private>*/
43   GObject parent;
44   EmpathyGeoclueHelperPriv *priv;
45 };
46
47 GType empathy_geoclue_helper_get_type (void);
48
49 /* TYPE MACROS */
50 #define EMPATHY_TYPE_GEOCLUE_HELPER \
51   (empathy_geoclue_helper_get_type ())
52 #define EMPATHY_GEOCLUE_HELPER(obj) \
53   (G_TYPE_CHECK_INSTANCE_CAST((obj), \
54     EMPATHY_TYPE_GEOCLUE_HELPER, \
55     EmpathyGeoclueHelper))
56 #define EMPATHY_GEOCLUE_HELPER_CLASS(klass) \
57   (G_TYPE_CHECK_CLASS_CAST((klass), \
58     EMPATHY_TYPE_GEOCLUE_HELPER, \
59     EmpathyGeoclueHelperClass))
60 #define EMPATHY_IS_GEOCLUE_HELPER(obj) \
61   (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
62     EMPATHY_TYPE_GEOCLUE_HELPER))
63 #define EMPATHY_IS_GEOCLUE_HELPER_CLASS(klass) \
64   (G_TYPE_CHECK_CLASS_TYPE((klass), \
65     EMPATHY_TYPE_GEOCLUE_HELPER))
66 #define EMPATHY_GEOCLUE_HELPER_GET_CLASS(obj) \
67   (G_TYPE_INSTANCE_GET_CLASS ((obj), \
68     EMPATHY_TYPE_GEOCLUE_HELPER, \
69     EmpathyGeoclueHelperClass))
70
71 void empathy_geoclue_helper_new_async (guint distance_threshold,
72     GAsyncReadyCallback callback,
73     gpointer user_data);
74
75 EmpathyGeoclueHelper * empathy_geoclue_helper_new_finish (GAsyncResult *result,
76     GError **error);
77
78 void empathy_geoclue_helper_new_started_async (guint distance_threshold,
79     GAsyncReadyCallback callback,
80     gpointer user_data);
81
82 EmpathyGeoclueHelper * empathy_geoclue_helper_new_started_finish (
83     GAsyncResult *result,
84     GError **error);
85
86 void empathy_geoclue_helper_start_async (EmpathyGeoclueHelper *self,
87     GAsyncReadyCallback callback,
88     gpointer user_data);
89
90 gboolean empathy_geoclue_helper_start_finish (EmpathyGeoclueHelper *self,
91     GAsyncResult *result,
92     GError **error);
93
94 GClueLocation * empathy_geoclue_helper_get_location (
95     EmpathyGeoclueHelper *self);
96
97 G_END_DECLS
98
99 #endif /* #ifndef __EMPATHY_GEOCLUE_HELPER_H__*/