mirror of
https://github.com/celisej567/abaddon.git
synced 2026-09-19 20:11:59 +03:00
settings, token entry, receive READY
This commit is contained in:
23
abaddon.hpp
23
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
|
||||
};
|
||||
Reference in New Issue
Block a user