mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 22:29:39 -06:00
Force IPv4 on external IP addresses
This commit is contained in:
@ -4,22 +4,22 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
// Note using a ifdef around this class causes link issues with qt
|
||||
|
||||
#include <list>
|
||||
#include <mutex>
|
||||
#include <thread>
|
||||
|
||||
#include <QObject>
|
||||
|
||||
#include "Common/Flag.h"
|
||||
|
||||
#include "DolphinQt/DiscordJoinRequestDialog.h"
|
||||
|
||||
#include "UICommon/DiscordPresence.h"
|
||||
|
||||
class DiscordJoinRequestDialog;
|
||||
|
||||
class DiscordHandler : public QObject, public Discord::Handler
|
||||
{
|
||||
Q_OBJECT
|
||||
#ifdef USE_DISCORD_PRESENCE
|
||||
public:
|
||||
explicit DiscordHandler(QWidget* parent);
|
||||
~DiscordHandler();
|
||||
@ -29,15 +29,21 @@ public:
|
||||
void DiscordJoin() override;
|
||||
void DiscordJoinRequest(const char* id, const std::string& discord_tag,
|
||||
const char* avatar) override;
|
||||
void ShowNewJoinRequest();
|
||||
void ShowNewJoinRequest(const std::string& id, const std::string& discord_tag,
|
||||
const std::string& avatar);
|
||||
#endif
|
||||
|
||||
signals:
|
||||
void Join();
|
||||
void JoinRequest();
|
||||
void JoinRequest(const std::string id, const std::string discord_tag, const std::string avatar);
|
||||
|
||||
#ifdef USE_DISCORD_PRESENCE
|
||||
private:
|
||||
void Run();
|
||||
QWidget* m_parent;
|
||||
Common::Flag m_stop_requested;
|
||||
std::thread m_thread;
|
||||
std::list<DiscordJoinRequestDialog> m_request_dialogs;
|
||||
std::mutex m_request_dialogs_mutex;
|
||||
#endif
|
||||
};
|
||||
|
Reference in New Issue
Block a user