mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-03-01 15:25:33 +01:00
31 lines
462 B
C++
31 lines
462 B
C++
// 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;
|
|
};
|