diff options
| author | Salanto <62221668+Salanto@users.noreply.github.com> | 2024-05-18 03:33:43 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-18 03:33:43 +0200 |
| commit | 51338e30e046f1a62c84049b34577f0f3b5db6e3 (patch) | |
| tree | 283c95f8f776ed852d03a816388695afd65c0f73 /src/discord_rich_presence.h | |
| parent | 469e293a1885e49f1d5994d41ac7cfc9f4666952 (diff) | |
| parent | f9c7205210fb9f768f583065971ece09e6b5eb03 (diff) | |
Merge pull request #957 from AttorneyOnline/kaleidoscope
The Kaleidoscope - Hell, it's about time.
Diffstat (limited to 'src/discord_rich_presence.h')
| -rw-r--r-- | src/discord_rich_presence.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/discord_rich_presence.h b/src/discord_rich_presence.h new file mode 100644 index 00000000..2945f292 --- /dev/null +++ b/src/discord_rich_presence.h @@ -0,0 +1,31 @@ +#pragma once + +#include <QCoreApplication> +#include <QDebug> + +#include <cstring> +#include <ctime> +#include <string> + +namespace AttorneyOnline +{ +class Discord +{ + Q_DECLARE_TR_FUNCTIONS(Discord) + +private: + const char *APPLICATION_ID = "399779271737868288"; + std::string server_name, server_id; + int64_t timestamp; + +public: + Discord(); + ~Discord(); + + void state_lobby(); + void state_server(std::string name, std::string server_id); + void state_character(std::string name); + void state_spectate(); +}; + +} // namespace AttorneyOnline |
