-
Notifications
You must be signed in to change notification settings - Fork 7
/
newentry.h
48 lines (39 loc) · 1.25 KB
/
newentry.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*****************************************************************************
* tunnelmanager - Simple GUI for SSH Tunnels
*
* Copyright (C) 2017-2020 Syping
* Copyright (C) 2017 Soner Sayakci
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*
*****************************************************************************/
#ifndef NEWENTRY_H
#define NEWENTRY_H
#include <QDialog>
#include <QStringList>
#include <QTreeWidgetItem>
namespace Ui {
class NewEntry;
}
class NewEntry : public QDialog
{
Q_OBJECT
public:
explicit NewEntry(QWidget *parent = 0);
void fillForm(QStringList data, QTreeWidgetItem *item);
void entryFailed(QString text);
void entrySuccess();
void adaptSize();
~NewEntry();
private slots:
void on_buttonOk_clicked();
void on_buttonCancel_clicked();
signals:
void newEntryAdded(QString name, QString host, QString sshPort, QString user, QString locPort, QString extIP, QString extPort, bool startup);
void itemModified(QTreeWidgetItem *item, QString name, QString host, QString sshPort, QString user, QString locPort, QString extIP, QString extPort);
private:
Ui::NewEntry *ui;
QTreeWidgetItem *item;
};
#endif // NEWENTRY_H