You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
648 B
39 lines
648 B
8 years ago
|
#ifndef CONNECTSERVERDIALOG_H
|
||
|
#define CONNECTSERVERDIALOG_H
|
||
|
|
||
|
#include <QDialog>
|
||
|
#include <QList>
|
||
|
#include "ui_connect.h"
|
||
|
|
||
|
namespace PCManFM {
|
||
|
|
||
|
class ConnectServerDialog : public QDialog {
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
ConnectServerDialog(QWidget* parent=nullptr);
|
||
|
virtual ~ConnectServerDialog();
|
||
|
|
||
|
QString uriText();
|
||
|
|
||
|
private:
|
||
|
struct ServerType {
|
||
|
QString name;
|
||
|
const char* scheme;
|
||
|
int defaultPort;
|
||
|
bool canAnonymous;
|
||
|
};
|
||
|
|
||
|
private Q_SLOTS:
|
||
|
void onCurrentIndexChanged(int index);
|
||
|
void checkInput();
|
||
|
|
||
|
private:
|
||
|
Ui::ConnectServerDialog ui;
|
||
|
QList<ServerType> serverTypes;
|
||
|
};
|
||
|
|
||
|
} // namespace PCManFM
|
||
|
|
||
|
#endif // CONNECTSERVERDIALOG_H
|