wfview/udpserversetup.h

61 wiersze
1.0 KiB
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-05-22 20:09:04 +00:00
int audioOutput;
int audioInput;
2021-03-22 09:10:03 +00:00
quint8 resampleQuality;
quint32 baudRate;
2021-03-22 09:10:03 +00:00
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);
2021-06-10 19:30:42 +00:00
void onPasswordChanged();
2021-02-16 20:55:30 +00:00
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-06-10 19:30:42 +00:00
void addUserLine(const QString &user, const QString &pass, const int &type);
2021-02-14 18:32:58 +00:00
};
#endif // UDPSERVER_H