summaryrefslogtreecommitdiff
path: root/src/notifications/notifier.hpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2023-04-11 04:36:27 +0000
committerGitHub <noreply@github.com>2023-04-11 04:36:27 +0000
commit44ab35dfd591c4c357673cc2ce3cb3a6964a1fff (patch)
tree91a60f1dfdd9d5a7e1c88b0eef0990981a307ada /src/notifications/notifier.hpp
parent0b663246809519487c155c51ccebb8df0e14a227 (diff)
parentf5228d91d28e39d56c7245ecf0128895273c9ec0 (diff)
downloadabaddon-portaudio-44ab35dfd591c4c357673cc2ce3cb3a6964a1fff.tar.gz
abaddon-portaudio-44ab35dfd591c4c357673cc2ce3cb3a6964a1fff.zip
Merge pull request #145 from uowuo/notifications
Notifications
Diffstat (limited to 'src/notifications/notifier.hpp')
-rw-r--r--src/notifications/notifier.hpp21
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
+};