aboutsummaryrefslogtreecommitdiff
path: root/include/datetime/snap.h
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-06-23 19:03:47 -0500
committerCharles Kerr <charles.kerr@canonical.com>2014-06-23 19:03:47 -0500
commit9c34627337380a3125ffc7173606d72a66feec2e (patch)
tree25943ac636603e73f54d4e2a1f441659e3e8de94 /include/datetime/snap.h
parenta85fd44e7b2dc67b3e0712e174e88d0eb6c467e7 (diff)
downloadayatana-indicator-datetime-9c34627337380a3125ffc7173606d72a66feec2e.tar.gz
ayatana-indicator-datetime-9c34627337380a3125ffc7173606d72a66feec2e.tar.bz2
ayatana-indicator-datetime-9c34627337380a3125ffc7173606d72a66feec2e.zip
in the snap decision code, handle custom sounds and volume levels.
Diffstat (limited to 'include/datetime/snap.h')
-rw-r--r--include/datetime/snap.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/datetime/snap.h b/include/datetime/snap.h
index a493772..ffd3aa0 100644
--- a/include/datetime/snap.h
+++ b/include/datetime/snap.h
@@ -21,6 +21,7 @@
#define INDICATOR_DATETIME_SNAP_H
#include <datetime/appointment.h>
+#include <datetime/settings.h>
#include <memory>
#include <functional>
@@ -35,13 +36,16 @@ namespace datetime {
class Snap
{
public:
- Snap();
+ Snap(const std::shared_ptr<const Settings>& settings);
virtual ~Snap();
typedef std::function<void(const Appointment&)> appointment_func;
void operator()(const Appointment& appointment,
appointment_func show,
appointment_func dismiss);
+
+private:
+ const std::shared_ptr<const Settings> m_settings;
};
} // namespace datetime