wfview/udpserversetup.h

60 wiersze
1003 B
C
Czysty Zwykły widok Historia

2021-02-14 18:32:58 +00:00
#ifndef UDPSERVERSETUP_H
#define UDPSERVERSETUP_H
#include <QDialog>
2021-02-22 00:24:48 +00:00
#include <QComboBox>
#include <QList>
2021-02-14 18:32:58 +00:00
#include <QDebug>
struct SERVERUSER {
QString username;
QString password;
quint8 userType;
};
struct SERVERCONFIG {
bool enabled;
2021-03-22 09:10:03 +00:00
bool lan;
quint16 controlPort;
quint16 civPort;
quint16 audioPort;
2021-03-22 09:10:03 +00:00
QString audioOutput;
QString audioInput;
2021-05-16 20:16:59 +00:00
int audioInputDevice;
int audioOutputDevice;
2021-03-22 09:10:03 +00:00
quint8 resampleQuality;
QList <SERVERUSER> users;
};
2021-02-14 18:32:58 +00:00
namespace Ui {
class udpServerSetup;
}
class udpServerSetup : public QDialog
{
Q_OBJECT
public:
explicit udpServerSetup(QWidget* parent = 0);
~udpServerSetup();
2021-02-16 20:55:30 +00:00
private slots:
void on_usersTable_cellClicked(int row, int col);
public slots:
void receiveServerConfig(SERVERCONFIG conf);
signals:
void serverConfig(SERVERCONFIG conf, bool store);
2021-02-14 18:32:58 +00:00
private:
Ui::udpServerSetup* ui;
void accept();
2021-02-22 00:24:48 +00:00
QList<QComboBox*> userTypes;
2021-02-14 18:32:58 +00:00
};
#endif // UDPSERVER_H