#ifndef NEWCONNECTIONDIALOG_H #define NEWCONNECTIONDIALOG_H #include #include #include #include #include #include "canconnectionmodel.h" #include "connections/canconnection.h" namespace Ui { class NewConnectionDialog; } class NewConnectionDialog : public QDialog { Q_OBJECT public: explicit NewConnectionDialog(QVector* gvretips, QVector* kayakips, QWidget *parent = nullptr); ~NewConnectionDialog(); CANCon::type getConnectionType(); QString getPortName(); QString getDriverName(); int getSerialSpeed(); int getBusSpeed(); public slots: void handleConnTypeChanged(); void handleDeviceTypeChanged(); void handleCreateButton(); private: Ui::NewConnectionDialog *ui; QList ports; QList canDevices; QVector* remoteDeviceIPGVRET; QVector* remoteBusKayak; void selectSerial(); void selectKvaser(); void selectSocketCan(); void selectRemote(); void selectKayak(); void selectMQTT(); void selectLawicel(); void selectCANserver(); bool isSerialBusAvailable(); void setPortName(CANCon::type pType, QString pPortName, QString pDriver); }; #endif // NEWCONNECTIONDIALOG_H