mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2024-11-10 13:44:17 +00:00
26 lines
540 B
C++
26 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;
|
|
};
|
|
|