pcmanfm-qt-packaging/pcmanfm/connectserverdialog.h
Alf Gaida 3194275f96 Cherry-picking upstream release 0.11.2.
* Removed build dependencies:
  - libfm-dev
  - liblxqt0-dev
* Bumped minimum versions
  - libfm-qt-dev (>= 0.11.2)
  - lxqt-build-tools (>= 0.3.0)
  - libfm-qt3 (>= 0.11.2)
* Suggests: cdtool -> cdtool [linux-any]
2016-12-22 02:02:45 +01:00

39 lines
648 B
C++

#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