mirror of
https://github.com/celisej567/abaddon.git
synced 2026-09-06 20:15:19 +03:00
24 lines
532 B
C++
24 lines
532 B
C++
#pragma once
|
|
#include <glibmm/dispatcher.h>
|
|
#include <optional>
|
|
|
|
// 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;
|
|
};
|