wfview/udpserversetup.h

53 wiersze
858 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;
quint16 controlPort;
quint16 civPort;
quint16 audioPort;
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