From 8ca77cf41948373987dc93446ede7afd50103cae Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Tue, 31 Aug 2021 21:16:06 +0200 Subject: 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 --- include/notifications/sound.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'include/notifications') 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 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 create(const std::string& role, const std::string& uri, unsigned int volume, bool loop) override { + return std::make_shared(role, uri, volume, loop); + } +}; + +/*** +**** +***/ + } // namespace notifications } // namespace indicator } // namespace ayatana -- cgit v1.2.3