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