From 3c3fe3b9f727c1e398760b139a2ef2da41d3cbda Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Wed, 19 Aug 2020 01:07:55 -0400 Subject: settings, token entry, receive READY --- abaddon.hpp | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) (limited to 'abaddon.hpp') diff --git a/abaddon.hpp b/abaddon.hpp index 6842d20..e7977cc 100644 --- a/abaddon.hpp +++ b/abaddon.hpp @@ -1,14 +1,33 @@ #include +#include +#include #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 m_gtk_app; DiscordClient m_discord; + SettingsManager m_settings; + std::unique_ptr m_main_window; // wah wah cant create a gtkstylecontext fuck you }; \ No newline at end of file -- cgit v1.2.3