dolphin/Source/Core/DolphinQt2/DiscordHandler.h

31 lines
462 B
C
Raw Normal View History

2018-07-03 17:50:08 -04:00
// Copyright 2018 Dolphin Emulator Project
// Licensed under GPLv2+
// Refer to the license.txt file included.
#pragma once
#include <thread>
#include <QObject>
#include "Common/Flag.h"
class DiscordHandler : public QObject
{
Q_OBJECT
public:
explicit DiscordHandler();
~DiscordHandler();
void Start();
void Stop();
void DiscordJoin();
signals:
void Join();
private:
void Run();
Common::Flag m_stop_requested;
std::thread m_thread;
};