diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2014-09-13 17:11:20 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2014-09-13 17:11:20 -0500 |
commit | b20b22f6b7e76f87ccea0bf24bf082a4187c3175 (patch) | |
tree | cd67e472c2a12bde928809a7407873799a3190e5 /include | |
parent | f337a0fd3b8040d83b2433a8076f70fea345edad (diff) | |
parent | 187b660a2a80f4aabf0b87c3fae02cb0841dd2e0 (diff) | |
download | ayatana-indicator-datetime-b20b22f6b7e76f87ccea0bf24bf082a4187c3175.tar.gz ayatana-indicator-datetime-b20b22f6b7e76f87ccea0bf24bf082a4187c3175.tar.bz2 ayatana-indicator-datetime-b20b22f6b7e76f87ccea0bf24bf082a4187c3175.zip |
foo
Diffstat (limited to 'include')
-rw-r--r-- | include/datetime/clock.h | 9 | ||||
-rw-r--r-- | include/datetime/dbus-shared.h | 5 |
2 files changed, 8 insertions, 6 deletions
diff --git a/include/datetime/clock.h b/include/datetime/clock.h index 1d488d1..0b2a543 100644 --- a/include/datetime/clock.h +++ b/include/datetime/clock.h @@ -55,12 +55,9 @@ protected: void maybe_emit (const DateTime& a, const DateTime& b); private: - static void on_system_bus_ready(GObject*, GAsyncResult*, gpointer); - static void on_prepare_for_sleep(GDBusConnection*, const gchar*, const gchar*, const gchar*, const gchar*, GVariant*, gpointer); - - GCancellable * m_cancellable = nullptr; - GDBusConnection * m_system_bus = nullptr; - unsigned int m_sleep_subscription_id = 0; + class Impl; + friend class Impl; + std::unique_ptr<Impl> m_impl; // we've got raw pointers and GSignal tags in here, so disable copying Clock(const Clock&) =delete; diff --git a/include/datetime/dbus-shared.h b/include/datetime/dbus-shared.h index db10c1d..c09caa2 100644 --- a/include/datetime/dbus-shared.h +++ b/include/datetime/dbus-shared.h @@ -24,4 +24,9 @@ #define BUS_DATETIME_NAME "com.canonical.indicator.datetime" #define BUS_DATETIME_PATH "/com/canonical/indicator/datetime" +#define BUS_POWERD_NAME "com.canonical.powerd" +#define BUS_POWERD_PATH "/com/canonical/powerd" +#define BUS_POWERD_INTERFACE "com.canonical.powerd" + + #endif /* _INDICATOR_DATETIME_DBUS_SHARED_H_ */ |