summaryrefslogtreecommitdiff
path: root/abaddon.hpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2020-08-19 01:07:55 -0400
committerouwou <26526779+ouwou@users.noreply.github.com>2020-08-19 01:07:55 -0400
commit3c3fe3b9f727c1e398760b139a2ef2da41d3cbda (patch)
treecc25fe85a659c043440f5ec98f8b97a17ef10e52 /abaddon.hpp
parent18af78e6af49821f8c7adb5b4325d75c8bf4fd03 (diff)
downloadabaddon-portaudio-3c3fe3b9f727c1e398760b139a2ef2da41d3cbda.tar.gz
abaddon-portaudio-3c3fe3b9f727c1e398760b139a2ef2da41d3cbda.zip
settings, token entry, receive READY
Diffstat (limited to 'abaddon.hpp')
-rw-r--r--abaddon.hpp23
1 files changed, 21 insertions, 2 deletions
diff --git a/abaddon.hpp b/abaddon.hpp
index 6842d20..e7977cc 100644
--- a/abaddon.hpp
+++ b/abaddon.hpp
@@ -1,14 +1,33 @@
#include <gtkmm.h>
+#include <memory>
+#include <string>
#include "discord/discord.hpp"
+#include "windows/mainwindow.hpp"
+#include "settings.hpp"
class Abaddon {
public:
- int DoMainLoop();
- void StartDiscordThread();
+ Abaddon();
+ ~Abaddon();
+
+ int StartGTK();
+ void StartDiscord();
+ void StopDiscord();
+
+ void LoadFromSettings();
void ActionConnect();
+ void ActionDisconnect();
+ void ActionSetToken();
+
+ std::string GetDiscordToken() const;
+ bool IsDiscordActive() const;
private:
+ std::string m_discord_token;
+
Glib::RefPtr<Gtk::Application> m_gtk_app;
DiscordClient m_discord;
+ SettingsManager m_settings;
+ std::unique_ptr<MainWindow> m_main_window; // wah wah cant create a gtkstylecontext fuck you
}; \ No newline at end of file