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.

43 lines
949 B

#ifndef NETWORKSELECTOR_H
#define NETWORKSELECTOR_H
#include <NetworkManagerQt/Connection>
#include <QList>
#include <QMainWindow>
#include <QStandardItem>
class QStandardItemModel;
QT_BEGIN_NAMESPACE
namespace Ui { class NetworkSelector; }
QT_END_NAMESPACE
class NetworkSelector : public QMainWindow
{
Q_OBJECT
public:
NetworkSelector(QWidget *parent = nullptr);
~NetworkSelector();
private slots:
void onTreeSingleClicked(QModelIndex index);
void onTreeDoubleClicked(QModelIndex index);
void onCreateClicked();
void onDeleteClicked();
void onModifyClicked();
private:
QStandardItem *connGroupItem(QString itemName);
void regenConnTree();
void modifyConnection(QModelIndex index);
Ui::NetworkSelector *ui;
QStandardItemModel *connTreeModel;
QList<QStandardItem *> connTreeList;
NetworkManager::Connection::List connList;
QDialog *dialogWindow;
};
#endif // NETWORKSELECTOR_H