mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 09:09:52 -06:00
Add Discord Join Net Play functionally
This commit is contained in:
30
Source/Core/DolphinQt2/DiscordHandler.h
Normal file
30
Source/Core/DolphinQt2/DiscordHandler.h
Normal file
@ -0,0 +1,30 @@
|
||||
// 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;
|
||||
};
|
Reference in New Issue
Block a user