aboutsummaryrefslogtreecommitdiff
path: root/include/datetime/timezone-geoclue.h
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-09-13 15:45:23 -0500
committerCharles Kerr <charles.kerr@canonical.com>2014-09-13 15:45:23 -0500
commit13d371f6c4974baad92574f5e287a72313080432 (patch)
tree70bdc7add46bc4ab55cbce4846e1909431434f1d /include/datetime/timezone-geoclue.h
parent187b660a2a80f4aabf0b87c3fae02cb0841dd2e0 (diff)
downloadayatana-indicator-datetime-13d371f6c4974baad92574f5e287a72313080432.tar.gz
ayatana-indicator-datetime-13d371f6c4974baad92574f5e287a72313080432.tar.bz2
ayatana-indicator-datetime-13d371f6c4974baad92574f5e287a72313080432.zip
hide the implementation detials of FileTimezone and GeoclueTimezone behind Impl classes
Diffstat (limited to 'include/datetime/timezone-geoclue.h')
-rw-r--r--include/datetime/timezone-geoclue.h22
1 files changed, 3 insertions, 19 deletions
diff --git a/include/datetime/timezone-geoclue.h b/include/datetime/timezone-geoclue.h
index 4a5b726..ab6b815 100644
--- a/include/datetime/timezone-geoclue.h
+++ b/include/datetime/timezone-geoclue.h
@@ -22,11 +22,6 @@
#include <datetime/timezone.h> // base class
-#include <string>
-
-#include <glib.h>
-#include <gio/gio.h>
-
namespace unity {
namespace indicator {
namespace datetime {
@@ -41,21 +36,10 @@ public:
~GeoclueTimezone();
private:
- static void on_bus_got (GObject*, GAsyncResult*, gpointer);
- static void on_client_created (GObject*, GAsyncResult*, gpointer);
- static void on_address_changed (GDBusConnection*, const gchar*, const gchar*, const gchar*, const gchar*, GVariant*, gpointer);
- static void on_requirements_set (GObject*, GAsyncResult*, gpointer);
- static void on_address_started (GObject*, GAsyncResult*, gpointer);
- static void on_address_got (GObject*, GAsyncResult*, gpointer);
- void setTimezoneFromAddressVariant (GVariant*);
- static GVariant * call_finish (GObject*, GAsyncResult*);
-
- GCancellable * m_cancellable = nullptr;
- GDBusConnection * m_connection = nullptr;
- std::string m_client_object_path;
- guint m_signal_subscription = 0;
+ struct Impl;
+ std::unique_ptr<Impl> impl;
- // we've got pointers and gsignal tags in here, so don't allow copying
+ // we've got pointers in here, so don't allow copying
GeoclueTimezone(const GeoclueTimezone&) =delete;
GeoclueTimezone& operator=(const GeoclueTimezone&) =delete;
};