aboutsummaryrefslogtreecommitdiff
path: root/src/discord_rich_presence.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/discord_rich_presence.h')
-rw-r--r--src/discord_rich_presence.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/discord_rich_presence.h b/src/discord_rich_presence.h
new file mode 100644
index 00000000..4d390c06
--- /dev/null
+++ b/src/discord_rich_presence.h
@@ -0,0 +1,34 @@
+#pragma once
+
+#include <QCoreApplication>
+#include <QDebug>
+
+#include <discord_rpc.h>
+
+#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