feather/src/wizard/PageNetwork.h
2022-02-10 11:26:41 +01:00

38 lines
726 B
C++

// SPDX-License-Identifier: BSD-3-Clause
// SPDX-FileCopyrightText: 2020-2022 The Monero Project
#ifndef FEATHER_WIZARDNETWORK_H
#define FEATHER_WIZARDNETWORK_H
#include <QLabel>
#include <QWizardPage>
#include <QWidget>
#include "appcontext.h"
#include "utils/nodes.h"
namespace Ui {
class PageNetwork;
}
class PageNetwork : public QWizardPage
{
Q_OBJECT
public:
explicit PageNetwork(QWidget *parent = nullptr);
bool validatePage() override;
int nextId() const override;
bool isComplete() const override;
private:
enum Button {
AUTO=0,
CUSTOM
};
Ui::PageNetwork *ui;
QFutureWatcher<QPair<bool, QString>> *m_portOpenWatcher;
};
#endif //FEATHER_WIZARDNETWORK_H