mirror of
https://git.suyu.dev/suyu/suyu
synced 2025-09-09 07:46:32 -05:00
Revert "Merge branch 'master' into 'dev'"
This reverts merge request !17
This commit is contained in:
49
src/yuzu/multiplayer/direct_connect.h
Normal file
49
src/yuzu/multiplayer/direct_connect.h
Normal file
@@ -0,0 +1,49 @@
|
||||
// SPDX-FileCopyrightText: Copyright 2017 Citra Emulator Project
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
#include <QDialog>
|
||||
#include <QFutureWatcher>
|
||||
#include "yuzu/multiplayer/validation.h"
|
||||
|
||||
namespace Ui {
|
||||
class DirectConnect;
|
||||
}
|
||||
|
||||
namespace Core {
|
||||
class System;
|
||||
}
|
||||
|
||||
class DirectConnectWindow : public QDialog {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit DirectConnectWindow(Core::System& system_, QWidget* parent = nullptr);
|
||||
~DirectConnectWindow();
|
||||
|
||||
void RetranslateUi();
|
||||
|
||||
signals:
|
||||
/**
|
||||
* Signalled by this widget when it is closing itself and destroying any state such as
|
||||
* connections that it might have.
|
||||
*/
|
||||
void Closed();
|
||||
void SaveConfig();
|
||||
|
||||
private slots:
|
||||
void OnConnection();
|
||||
|
||||
private:
|
||||
void Connect();
|
||||
void BeginConnecting();
|
||||
void EndConnecting();
|
||||
|
||||
QFutureWatcher<void>* watcher;
|
||||
std::unique_ptr<Ui::DirectConnect> ui;
|
||||
Validation validation;
|
||||
Core::System& system;
|
||||
Network::RoomNetwork& room_network;
|
||||
};
|
Reference in New Issue
Block a user