~charlesk/indicator-datetime/lp-1337348-use-gstreamer-api

« back to all changes in this revision

Viewing changes to include/datetime/snap.h

Add the ability to have per-alarm custom sounds. Fixes: 1318997

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#define INDICATOR_DATETIME_SNAP_H
22
22
 
23
23
#include <datetime/appointment.h>
 
24
#include <datetime/clock.h>
 
25
#include <datetime/settings.h>
24
26
 
25
27
#include <memory>
26
28
#include <functional>
35
37
class Snap
36
38
{
37
39
public:
38
 
    Snap();
 
40
    Snap(const std::shared_ptr<Clock>& clock,
 
41
         const std::shared_ptr<const Settings>& settings);
39
42
    virtual ~Snap();
40
43
 
41
44
    typedef std::function<void(const Appointment&)> appointment_func;
42
45
    void operator()(const Appointment& appointment,
43
46
                    appointment_func show,
44
47
                    appointment_func dismiss);
 
48
 
 
49
private:
 
50
    const std::shared_ptr<Clock> m_clock;
 
51
    const std::shared_ptr<const Settings> m_settings;
45
52
};
46
53
 
47
54
} // namespace datetime