PCManFM-Qt
Loading...
Searching...
No Matches
connectserverdialog.h
1#ifndef CONNECTSERVERDIALOG_H
2#define CONNECTSERVERDIALOG_H
3
4#include <QDialog>
5#include <QList>
6#include "ui_connect.h"
7
8namespace PCManFM {
9
10class ConnectServerDialog : public QDialog {
11 Q_OBJECT
12
13public:
14 ConnectServerDialog(QWidget* parent=nullptr);
15 virtual ~ConnectServerDialog();
16
17 QString uriText();
18
19private:
20 struct ServerType {
21 QString name;
22 const char* scheme;
23 int defaultPort;
24 bool canAnonymous;
25 };
26
27private Q_SLOTS:
28 void onCurrentIndexChanged(int index);
29 void checkInput();
30
31private:
32 Ui::ConnectServerDialog ui;
33 QList<ServerType> serverTypes;
34};
35
36} // namespace PCManFM
37
38#endif // CONNECTSERVERDIALOG_H
Definition: connectserverdialog.h:10