aboutsummaryrefslogtreecommitdiff
path: root/include/notifications
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2021-08-31 21:16:06 +0200
committerRobert Tari <robert@tari.in>2021-08-31 21:25:26 +0200
commit8ca77cf41948373987dc93446ede7afd50103cae (patch)
tree9f9f90b761bc9acbd520b092d29b61c89ac23c60 /include/notifications
parent9d95a062904cf8f421680d844ea656316c3c9a74 (diff)
downloadayatana-indicator-datetime-8ca77cf41948373987dc93446ede7afd50103cae.tar.gz
ayatana-indicator-datetime-8ca77cf41948373987dc93446ede7afd50103cae.tar.bz2
ayatana-indicator-datetime-8ca77cf41948373987dc93446ede7afd50103cae.zip
Fix build failure on Ubuntu 20.04
- include/notifications/sound.h: Add SoundBuilder class - src/snap.cpp: Add m_sound_builder variable - src/main.cpp: Fix uin -> ain typo - CMakeLists.txt: Add uuid dependency
Diffstat (limited to 'include/notifications')
-rw-r--r--include/notifications/sound.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/notifications/sound.h b/include/notifications/sound.h
index 8bd3e33..1bff0b0 100644
--- a/include/notifications/sound.h
+++ b/include/notifications/sound.h
@@ -53,6 +53,28 @@ private:
****
***/
+class SoundBuilder
+{
+public:
+ SoundBuilder() =default;
+ virtual ~SoundBuilder() =default;
+ virtual std::shared_ptr<Sound> create(const std::string& role, const std::string& uri, unsigned int volume, bool loop) =0;
+};
+
+class DefaultSoundBuilder: public SoundBuilder
+{
+public:
+ DefaultSoundBuilder() =default;
+ ~DefaultSoundBuilder() =default;
+ virtual std::shared_ptr<Sound> create(const std::string& role, const std::string& uri, unsigned int volume, bool loop) override {
+ return std::make_shared<Sound>(role, uri, volume, loop);
+ }
+};
+
+/***
+****
+***/
+
} // namespace notifications
} // namespace indicator
} // namespace ayatana