atrooney-online-2/include/discord_rich_presence.h
oldmud0 13942345c6 Run clang-format on entire project
Indentation fixed to 2 spaces per tab. Braces set to Stroustrup style.
Lines reflow at 80 characters. One-line method bodies are on the same
line as the signature. Space always after `//`. No indentation
on preprocessor macros. Includes are sorted lexicographically.

If you don't want to see this commit on blames, use the hidden
whitespace option on GitHub, or use `-w` in git-blame.
2020-04-17 21:57:16 -05:00

39 lines
704 B
C++

#ifndef DISCORD_RICH_PRESENCE_H
#define DISCORD_RICH_PRESENCE_H
#include <QCoreApplication>
#include <QDebug>
#include <cstring>
#include <ctime>
#include <string>
#include <discord-rpc.h>
#include <cstring>
#include <ctime>
#include <QDebug>
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
#endif // DISCORD_RICH_PRESENCE_H