Citra-qt: Add multiplayer ui
This commit is contained in:
parent
bba2a60b22
commit
871196bc10
34 changed files with 2653 additions and 46 deletions
39
src/citra_qt/multiplayer/direct_connect.h
Normal file
39
src/citra_qt/multiplayer/direct_connect.h
Normal file
|
@ -0,0 +1,39 @@
|
|||
// Copyright 2017 Citra Emulator Project
|
||||
// Licensed under GPLv2 or any later version
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
#include <QDialog>
|
||||
#include <QFutureWatcher>
|
||||
|
||||
namespace Ui {
|
||||
class DirectConnect;
|
||||
}
|
||||
|
||||
class DirectConnectWindow : public QDialog {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit DirectConnectWindow(QWidget* parent = nullptr);
|
||||
|
||||
signals:
|
||||
/**
|
||||
* Signalled by this widget when it is closing itself and destroying any state such as
|
||||
* connections that it might have.
|
||||
*/
|
||||
void Closed();
|
||||
|
||||
private slots:
|
||||
void OnConnection();
|
||||
|
||||
private:
|
||||
void Connect();
|
||||
void ClearAllError();
|
||||
void BeginConnecting();
|
||||
void EndConnecting();
|
||||
|
||||
QFutureWatcher<void>* watcher;
|
||||
Ui::DirectConnect* ui;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue