aboutsummaryrefslogtreecommitdiff
path: root/include/datetime
diff options
context:
space:
mode:
Diffstat (limited to 'include/datetime')
-rw-r--r--include/datetime/dbus-shared.h8
-rw-r--r--include/datetime/snap.h11
2 files changed, 11 insertions, 8 deletions
diff --git a/include/datetime/dbus-shared.h b/include/datetime/dbus-shared.h
index c5ff6ab..db10c1d 100644
--- a/include/datetime/dbus-shared.h
+++ b/include/datetime/dbus-shared.h
@@ -18,8 +18,10 @@
* Charles Kerr <charles.kerr@canonical.com>
*/
+#ifndef _INDICATOR_DATETIME_DBUS_SHARED_H_
+#define _INDICATOR_DATETIME_DBUS_SHARED_H_
-#define BUS_NAME "com.canonical.indicator.datetime"
-
-#define BUS_PATH "/com/canonical/indicator/datetime"
+#define BUS_DATETIME_NAME "com.canonical.indicator.datetime"
+#define BUS_DATETIME_PATH "/com/canonical/indicator/datetime"
+#endif /* _INDICATOR_DATETIME_DBUS_SHARED_H_ */
diff --git a/include/datetime/snap.h b/include/datetime/snap.h
index 9b45b3f..ef5c868 100644
--- a/include/datetime/snap.h
+++ b/include/datetime/snap.h
@@ -21,11 +21,12 @@
#define INDICATOR_DATETIME_SNAP_H
#include <datetime/appointment.h>
-#include <datetime/clock.h>
#include <datetime/settings.h>
-#include <memory>
+#include <notifications/notifications.h>
+
#include <functional>
+#include <memory>
namespace unity {
namespace indicator {
@@ -37,7 +38,7 @@ namespace datetime {
class Snap
{
public:
- Snap(const std::shared_ptr<Clock>& clock,
+ Snap(const std::shared_ptr<unity::indicator::notifications::Engine>& engine,
const std::shared_ptr<const Settings>& settings);
virtual ~Snap();
@@ -47,8 +48,8 @@ public:
appointment_func dismiss);
private:
- const std::shared_ptr<Clock> m_clock;
- const std::shared_ptr<const Settings> m_settings;
+ class Impl;
+ std::unique_ptr<Impl> impl;
};
} // namespace datetime