stec-platform
peerconfigdialog.h
1 #ifndef PEERCONFIGDIALOG_H
2 #define PEERCONFIGDIALOG_H
3 
4 #include <QDialog>
5 #include <QListWidgetItem>
6 #include <QStringList>
7 #include "platformg_global.h"
8 
9 namespace Ui {
10 class PeerConfigDialog;
11 }
12 
13 
19 class PLATFORMGSHARED_EXPORT PeerConfigDialog : public QDialog
20 {
21  Q_OBJECT
22 
23 private :
24  bool tok;
25  bool netmask;
26 public:
27 
37  explicit PeerConfigDialog(QString &ipAddress, QString &port, QString &netmask, QStringList &lst, QWidget *parent = nullptr, bool dimNetmask = false);
38 
40  virtual ~PeerConfigDialog();
41 
42  Ui::PeerConfigDialog *ui;
43 
48  bool Ok() { return tok; }
49 
54  QStringList getConnections();
55 
66  static bool GetInformation( QString &ipAddress, QString &port, QString &netmask, QStringList &lst,
67  QWidget *parent = nullptr, bool dimNetmask = false );
68 
69 public slots :
70  void slot_ok();
71 
72 
73 private slots:
74  void on_pushButtonAdd_clicked();
75  void on_pushButtonDelete_clicked();
76  void on_listWidgetConnections_itemClicked(QListWidgetItem *item);
77 };
78 
79 #endif // PEERCONFIGDIALOG_H
The PeerConfigDialog class Configures the peer connection.
Definition: peerconfigdialog.h:20
bool Ok()
Ok.
Definition: peerconfigdialog.h:48