diff options
Diffstat (limited to 'src/notifications/notifier.hpp')
-rw-r--r-- | src/notifications/notifier.hpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/notifications/notifier.hpp b/src/notifications/notifier.hpp new file mode 100644 index 0000000..cd3eb71 --- /dev/null +++ b/src/notifications/notifier.hpp @@ -0,0 +1,21 @@ +#pragma once +#include <glibmm/ustring.h> +#include <gdkmm/pixbuf.h> + +#ifdef ENABLE_NOTIFICATION_SOUNDS + #include <miniaudio.h> +#endif + +class Notifier { +public: + Notifier(); + ~Notifier(); + + void Notify(const Glib::ustring &id, const Glib::ustring &title, const Glib::ustring &text, const Glib::ustring &default_action, const std::string &icon_path); + void Withdraw(const Glib::ustring &id); + +private: +#ifdef ENABLE_NOTIFICATION_SOUNDS + ma_engine m_engine; +#endif +}; |