~charlesk/indicator-datetime/lp-1591246-fix-message-icons

« back to all changes in this revision

Viewing changes to include/notifications/sound.h

Use a different default sound for alarms and calendar events. Fixes: #1505688
Approved by: Antti Kaijanmäki, Rodney Dawes, PS Jenkins bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
****
54
54
***/
55
55
 
 
56
class SoundBuilder
 
57
{
 
58
public:
 
59
    SoundBuilder() =default;
 
60
    virtual ~SoundBuilder() =default;
 
61
    virtual std::shared_ptr<Sound> create(const std::string& role, const std::string& uri, unsigned int volume, bool loop) =0;
 
62
};
 
63
 
 
64
class DefaultSoundBuilder: public SoundBuilder
 
65
{
 
66
public:
 
67
    DefaultSoundBuilder() =default;
 
68
    ~DefaultSoundBuilder() =default;
 
69
    virtual std::shared_ptr<Sound> create(const std::string& role, const std::string& uri, unsigned int volume, bool loop) override {
 
70
        return std::make_shared<Sound>(role, uri, volume, loop);
 
71
    }
 
72
};
 
73
 
 
74
/***
 
75
****
 
76
***/
 
77
 
56
78
} // namespace notifications
57
79
} // namespace indicator
58
80
} // namespace unity