#ifndef DEVICEDIALOG_H #define DEVICEDIALOG_H #include #include #include #include namespace Ui { class DeviceDialog; } class DeviceDialog : public QDialog { Q_OBJECT public: DeviceDialog(QWidget *parent = 0); ~DeviceDialog(); void clearDeviceList(); void addDevice(QString device); void addDevices(QStringList devices); QString getSelectedDevice(); protected: void changeEvent(QEvent *e); private: Ui::DeviceDialog *m_ui; QString selectedDevice; private slots: void on_buttonBox_accepted(); }; #endif // DEVICEDIALOG_H