mirror of
https://github.com/uowuo/abaddon.git
synced 2026-01-12 12:10:06 +00:00
27 lines
567 B
C++
27 lines
567 B
C++
#pragma once
|
|
|
|
#include <optional>
|
|
|
|
#include <glibmm/dispatcher.h>
|
|
#include <gtkmm/messagedialog.h>
|
|
|
|
// fetch cookies, build number async
|
|
|
|
class DiscordStartupDialog : public Gtk::MessageDialog {
|
|
public:
|
|
DiscordStartupDialog(Gtk::Window &window);
|
|
|
|
[[nodiscard]] std::optional<std::string> GetCookie() const;
|
|
[[nodiscard]] std::optional<uint32_t> GetBuildNumber() const;
|
|
|
|
private:
|
|
void RunAsync();
|
|
|
|
void DispatchCallback();
|
|
|
|
Glib::Dispatcher m_dispatcher;
|
|
|
|
std::optional<std::string> m_cookie;
|
|
std::optional<uint32_t> m_build_number;
|
|
};
|