diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2014-07-01 09:36:47 +0000 |
---|---|---|
committer | CI bot <ps-jenkins@lists.canonical.com> | 2014-07-01 09:36:47 +0000 |
commit | 6880613bbc6535242e95e7f5c65d9a9140eaa28b (patch) | |
tree | a5302d6eaa5005ec44b6498566f00e4237e697d8 /include/datetime/snap.h | |
parent | f6778e1cc3e3881225e967c94de4685c732755db (diff) | |
parent | ea8bedf5ec63ca42de776de9f4c21343a8163578 (diff) | |
download | ayatana-indicator-datetime-6880613bbc6535242e95e7f5c65d9a9140eaa28b.tar.gz ayatana-indicator-datetime-6880613bbc6535242e95e7f5c65d9a9140eaa28b.tar.bz2 ayatana-indicator-datetime-6880613bbc6535242e95e7f5c65d9a9140eaa28b.zip |
Add the ability to have per-alarm custom sounds. Fixes: 1318997
Diffstat (limited to 'include/datetime/snap.h')
-rw-r--r-- | include/datetime/snap.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/datetime/snap.h b/include/datetime/snap.h index a493772..9b45b3f 100644 --- a/include/datetime/snap.h +++ b/include/datetime/snap.h @@ -21,6 +21,8 @@ #define INDICATOR_DATETIME_SNAP_H #include <datetime/appointment.h> +#include <datetime/clock.h> +#include <datetime/settings.h> #include <memory> #include <functional> @@ -35,13 +37,18 @@ namespace datetime { class Snap { public: - Snap(); + Snap(const std::shared_ptr<Clock>& clock, + 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<Clock> m_clock; + const std::shared_ptr<const Settings> m_settings; }; } // namespace datetime |