diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2013-09-02 20:21:12 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2013-09-03 18:11:42 +0800 |
commit | dcb5ddc560b51cc5eb59a2ef27d91cf279271f36 (patch) | |
tree | 814d910bda10984a99afcde2ea1bf6558bac9fd0 /libempathy-gtk/empathy-geoclue-helper.h | |
parent | 28be7462f56d5ab80c360d3090de6298a96a3e01 (diff) | |
download | gsoc2013-empathy-dcb5ddc560b51cc5eb59a2ef27d91cf279271f36.tar gsoc2013-empathy-dcb5ddc560b51cc5eb59a2ef27d91cf279271f36.tar.gz gsoc2013-empathy-dcb5ddc560b51cc5eb59a2ef27d91cf279271f36.tar.bz2 gsoc2013-empathy-dcb5ddc560b51cc5eb59a2ef27d91cf279271f36.tar.lz gsoc2013-empathy-dcb5ddc560b51cc5eb59a2ef27d91cf279271f36.tar.xz gsoc2013-empathy-dcb5ddc560b51cc5eb59a2ef27d91cf279271f36.tar.zst gsoc2013-empathy-dcb5ddc560b51cc5eb59a2ef27d91cf279271f36.zip |
add empathy-geoclue-helper
Based on a proposed API on fdo#68658. May end up in geoclue at some point.
https://bugzilla.gnome.org/show_bug.cgi?id=706627
Diffstat (limited to 'libempathy-gtk/empathy-geoclue-helper.h')
-rw-r--r-- | libempathy-gtk/empathy-geoclue-helper.h | 99 |
1 files changed, 99 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-geoclue-helper.h b/libempathy-gtk/empathy-geoclue-helper.h new file mode 100644 index 000000000..16a6b620a --- /dev/null +++ b/libempathy-gtk/empathy-geoclue-helper.h @@ -0,0 +1,99 @@ +/* + * empathy-geoclue-helper.h + * + * Copyright (C) 2013 Collabora Ltd. <http://www.collabora.co.uk/> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#ifndef __EMPATHY_GEOCLUE_HELPER_H__ +#define __EMPATHY_GEOCLUE_HELPER_H__ + +#include <glib-object.h> + +G_BEGIN_DECLS + +#include "geoclue-interface.h" + +typedef struct _EmpathyGeoclueHelper EmpathyGeoclueHelper; +typedef struct _EmpathyGeoclueHelperClass EmpathyGeoclueHelperClass; +typedef struct _EmpathyGeoclueHelperPriv EmpathyGeoclueHelperPriv; + +struct _EmpathyGeoclueHelperClass +{ + /*<private>*/ + GObjectClass parent_class; +}; + +struct _EmpathyGeoclueHelper +{ + /*<private>*/ + GObject parent; + EmpathyGeoclueHelperPriv *priv; +}; + +GType empathy_geoclue_helper_get_type (void); + +/* TYPE MACROS */ +#define EMPATHY_TYPE_GEOCLUE_HELPER \ + (empathy_geoclue_helper_get_type ()) +#define EMPATHY_GEOCLUE_HELPER(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST((obj), \ + EMPATHY_TYPE_GEOCLUE_HELPER, \ + EmpathyGeoclueHelper)) +#define EMPATHY_GEOCLUE_HELPER_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST((klass), \ + EMPATHY_TYPE_GEOCLUE_HELPER, \ + EmpathyGeoclueHelperClass)) +#define EMPATHY_IS_GEOCLUE_HELPER(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ + EMPATHY_TYPE_GEOCLUE_HELPER)) +#define EMPATHY_IS_GEOCLUE_HELPER_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_TYPE((klass), \ + EMPATHY_TYPE_GEOCLUE_HELPER)) +#define EMPATHY_GEOCLUE_HELPER_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS ((obj), \ + EMPATHY_TYPE_GEOCLUE_HELPER, \ + EmpathyGeoclueHelperClass)) + +void empathy_geoclue_helper_new_async (guint distance_threshold, + GAsyncReadyCallback callback, + gpointer user_data); + +EmpathyGeoclueHelper * empathy_geoclue_helper_new_finish (GAsyncResult *result, + GError **error); + +void empathy_geoclue_helper_new_started_async (guint distance_threshold, + GAsyncReadyCallback callback, + gpointer user_data); + +EmpathyGeoclueHelper * empathy_geoclue_helper_new_started_finish ( + GAsyncResult *result, + GError **error); + +void empathy_geoclue_helper_start_async (EmpathyGeoclueHelper *self, + GAsyncReadyCallback callback, + gpointer user_data); + +gboolean empathy_geoclue_helper_start_finish (EmpathyGeoclueHelper *self, + GAsyncResult *result, + GError **error); + +GClueLocation * empathy_geoclue_helper_get_location ( + EmpathyGeoclueHelper *self); + +G_END_DECLS + +#endif /* #ifndef __EMPATHY_GEOCLUE_HELPER_H__*/ |