File indexing completed on 2024-04-28 17:05:54

0001 /*
0002     SPDX-FileCopyrightText: 2002 Shie Erlich <erlich@users.sourceforge.net>
0003     SPDX-FileCopyrightText: 2002 Rafi Yanai <yanai@users.sourceforge.net>
0004     SPDX-FileCopyrightText: 2009 Fathi Boudra <fboudra@gmail.com>
0005     SPDX-FileCopyrightText: 2004-2022 Krusader Krew <https://krusader.org>
0006 
0007     SPDX-License-Identifier: GPL-2.0-or-later
0008 */
0009 
0010 #ifndef NEWFTPGUI_H
0011 #define NEWFTPGUI_H
0012 
0013 // QtWidgets
0014 #include <QDialog>
0015 #include <QLabel>
0016 #include <QSpinBox>
0017 
0018 #include <KCompletion/KComboBox>
0019 #include <KCompletion/KLineEdit>
0020 
0021 #include "../GUI/krhistorycombobox.h"
0022 
0023 /**
0024  * The "New Network Connection" dialog
0025  */
0026 class newFTPGUI : public QDialog
0027 {
0028     Q_OBJECT
0029 
0030 public:
0031     explicit newFTPGUI(QWidget *parent = nullptr);
0032     ~newFTPGUI() override;
0033 
0034     KComboBox *prefix;
0035     KrHistoryComboBox *url;
0036     QSpinBox *port;
0037     KLineEdit *username;
0038     KLineEdit *password;
0039 
0040 protected:
0041     bool event(QEvent *) override;
0042 
0043 private slots:
0044     void slotTextChanged(const QString &);
0045 
0046 private:
0047     QLabel *iconLabel;
0048     QLabel *aboutLabel;
0049     QLabel *protocolLabel;
0050     QLabel *passwordLabel;
0051     QLabel *hostLabel;
0052     QLabel *usernameLabel;
0053     QLabel *portLabel;
0054 };
0055 
0056 #endif