#ifndef UDPSERVERSETUP_H #define UDPSERVERSETUP_H #include #include #include #include struct SERVERUSER { QString username; QString password; quint8 userType; }; struct SERVERCONFIG { bool enabled; bool lan; quint16 controlPort; quint16 civPort; quint16 audioPort; QString audioOutput; QString audioInput; int audioInputDevice; int audioOutputDevice; quint8 resampleQuality; QList users; }; namespace Ui { class udpServerSetup; } class udpServerSetup : public QDialog { Q_OBJECT public: explicit udpServerSetup(QWidget* parent = 0); ~udpServerSetup(); private slots: void on_usersTable_cellClicked(int row, int col); public slots: void receiveServerConfig(SERVERCONFIG conf); signals: void serverConfig(SERVERCONFIG conf, bool store); private: Ui::udpServerSetup* ui; void accept(); QList userTypes; }; #endif // UDPSERVER_H