mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2024-11-16 08:17:58 +00:00
27 lines
540 B
C
27 lines
540 B
C
|
#pragma once
|
||
|
|
||
|
#include "settings/streamingpreferences.h"
|
||
|
|
||
|
#ifdef HAVE_DISCORD
|
||
|
#include <discord_rpc.h>
|
||
|
#endif
|
||
|
|
||
|
class RichPresenceManager
|
||
|
{
|
||
|
public:
|
||
|
RichPresenceManager(StreamingPreferences& prefs, QString gameName);
|
||
|
~RichPresenceManager();
|
||
|
|
||
|
void runCallbacks();
|
||
|
|
||
|
private:
|
||
|
#ifdef HAVE_DISCORD
|
||
|
static void discordReady(const DiscordUser* request);
|
||
|
static void discordDisconnected(int errorCode, const char* message);
|
||
|
static void discordErrored(int errorCode, const char* message);
|
||
|
#endif
|
||
|
|
||
|
bool m_DiscordActive;
|
||
|
};
|
||
|
|