aboutsummaryrefslogtreecommitdiff
path: root/src/discord_rich_presence.h
blob: 4d390c06e4292e7e4999b7062ae59bb66c8ab1e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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