aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-09-01 07:33:29 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-09-01 07:33:29 +0200
commitf7c5127a29e29b79e5e90b548bde383f6d703bbc (patch)
tree7642705dff20a66913e2ff972fd1de8ff94783eb /include
parent9d95a062904cf8f421680d844ea656316c3c9a74 (diff)
parent87e47ca0ae6b0ec8281937cd62381e01cb8a2384 (diff)
downloadayatana-indicator-datetime-f7c5127a29e29b79e5e90b548bde383f6d703bbc.tar.gz
ayatana-indicator-datetime-f7c5127a29e29b79e5e90b548bde383f6d703bbc.tar.bz2
ayatana-indicator-datetime-f7c5127a29e29b79e5e90b548bde383f6d703bbc.zip
Merge branch 'tari01-pr/fix-build-error'
Attributes GH PR #52: https://github.com/AyatanaIndicators/ayatana-indicator-datetime/pull/52
Diffstat (limited to 'include')
-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