mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-16 13:50:07 +00:00
39 lines
741 B
C
39 lines
741 B
C
|
// 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 BeginConnecting();
|
||
|
void EndConnecting();
|
||
|
|
||
|
QFutureWatcher<void>* watcher;
|
||
|
Ui::DirectConnect* ui;
|
||
|
};
|