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>
28 #include "geoclue-interface.h"
30 typedef struct _EmpathyGeoclueHelper EmpathyGeoclueHelper
;
31 typedef struct _EmpathyGeoclueHelperClass EmpathyGeoclueHelperClass
;
32 typedef struct _EmpathyGeoclueHelperPriv EmpathyGeoclueHelperPriv
;
34 struct _EmpathyGeoclueHelperClass
37 GObjectClass parent_class
;
40 struct _EmpathyGeoclueHelper
44 EmpathyGeoclueHelperPriv
*priv
;
47 GType
empathy_geoclue_helper_get_type (void);
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
,
75 EmpathyGeoclueHelper
* empathy_geoclue_helper_new_finish (GAsyncResult
*result
,
78 void empathy_geoclue_helper_new_started_async (guint distance_threshold
,
79 GAsyncReadyCallback callback
,
82 EmpathyGeoclueHelper
* empathy_geoclue_helper_new_started_finish (
86 void empathy_geoclue_helper_start_async (EmpathyGeoclueHelper
*self
,
87 GAsyncReadyCallback callback
,
90 gboolean
empathy_geoclue_helper_start_finish (EmpathyGeoclueHelper
*self
,
94 GClueLocation
* empathy_geoclue_helper_get_location (
95 EmpathyGeoclueHelper
*self
);
99 #endif /* #ifndef __EMPATHY_GEOCLUE_HELPER_H__*/