summaryrefslogtreecommitdiff
path: root/src/abaddon.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/abaddon.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/abaddon.hpp')
-rw-r--r--src/abaddon.hpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/abaddon.hpp b/src/abaddon.hpp
index 8b14699..2fbbcc0 100644
--- a/src/abaddon.hpp
+++ b/src/abaddon.hpp
@@ -3,11 +3,15 @@
#include <mutex>
#include <string>
#include <unordered_set>
+#include <gtkmm/application.h>
+#include <gtkmm/cssprovider.h>
+#include <gtkmm/statusicon.h>
#include "discord/discord.hpp"
#include "windows/mainwindow.hpp"
#include "settings.hpp"
#include "imgmanager.hpp"
#include "emojis.hpp"
+#include "notifications/notifications.hpp"
#define APP_TITLE "Abaddon"
@@ -92,6 +96,10 @@ public:
static std::string GetResPath(const std::string &path);
static std::string GetStateCachePath(const std::string &path);
+ [[nodiscard]] Glib::RefPtr<Gtk::Application> GetApp();
+ [[nodiscard]] bool IsMainWindowActive();
+ [[nodiscard]] Snowflake GetActiveChannelID() const noexcept;
+
protected:
void RunFirstTimeDiscordStartup();
@@ -149,4 +157,6 @@ private:
Glib::RefPtr<Gtk::CssProvider> m_css_low_provider; // registered with a lower priority to allow better customization
Glib::RefPtr<Gtk::StatusIcon> m_tray;
std::unique_ptr<MainWindow> m_main_window; // wah wah cant create a gtkstylecontext fuck you
+
+ Notifications m_notifications;
};