call-window: properly remove the fs element notifiers
[empathy-mirror.git] / libempathy-gtk / empathy-geoclue-helper.h
blob16a6b620a17fa6534177aa49819a5d268e749216
1 /*
2 * empathy-geoclue-helper.h
4 * Copyright (C) 2013 Collabora Ltd. <http://www.collabora.co.uk/>
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.
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.
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
21 #ifndef __EMPATHY_GEOCLUE_HELPER_H__
22 #define __EMPATHY_GEOCLUE_HELPER_H__
24 #include <glib-object.h>
26 G_BEGIN_DECLS
28 #include "geoclue-interface.h"
30 typedef struct _EmpathyGeoclueHelper EmpathyGeoclueHelper;
31 typedef struct _EmpathyGeoclueHelperClass EmpathyGeoclueHelperClass;
32 typedef struct _EmpathyGeoclueHelperPriv EmpathyGeoclueHelperPriv;
34 struct _EmpathyGeoclueHelperClass
36 /*<private>*/
37 GObjectClass parent_class;
40 struct _EmpathyGeoclueHelper
42 /*<private>*/
43 GObject parent;
44 EmpathyGeoclueHelperPriv *priv;
47 GType empathy_geoclue_helper_get_type (void);
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))
71 void empathy_geoclue_helper_new_async (guint distance_threshold,
72 GAsyncReadyCallback callback,
73 gpointer user_data);
75 EmpathyGeoclueHelper * empathy_geoclue_helper_new_finish (GAsyncResult *result,
76 GError **error);
78 void empathy_geoclue_helper_new_started_async (guint distance_threshold,
79 GAsyncReadyCallback callback,
80 gpointer user_data);
82 EmpathyGeoclueHelper * empathy_geoclue_helper_new_started_finish (
83 GAsyncResult *result,
84 GError **error);
86 void empathy_geoclue_helper_start_async (EmpathyGeoclueHelper *self,
87 GAsyncReadyCallback callback,
88 gpointer user_data);
90 gboolean empathy_geoclue_helper_start_finish (EmpathyGeoclueHelper *self,
91 GAsyncResult *result,
92 GError **error);
94 GClueLocation * empathy_geoclue_helper_get_location (
95 EmpathyGeoclueHelper *self);
97 G_END_DECLS
99 #endif /* #ifndef __EMPATHY_GEOCLUE_HELPER_H__*/