You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#ifndef COMMANDWIDGET_H
|
|
|
|
#define COMMANDWIDGET_H
|
|
|
|
|
|
|
|
#include <QUdpSocket>
|
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
#include "global.h"
|
|
|
|
namespace Ui {
|
|
|
|
class CommandWidget;
|
|
|
|
}
|
|
|
|
|
|
|
|
class CommandWidget : public QWidget {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit CommandWidget(QWidget *parent = nullptr);
|
|
|
|
~CommandWidget();
|
|
|
|
|
|
|
|
QUdpSocket *udpSocket = nullptr;
|
|
|
|
signals:
|
|
|
|
void startConnectionSignal(QString ip, int port);
|
|
|
|
void stopConnectionSignal();
|
|
|
|
void sendErrorMessage(QString message, int type);
|
|
|
|
void changeVideoLayout(int index);
|
|
|
|
private slots:
|
|
|
|
|
|
|
|
void on_startConnectionToolBtn_clicked();
|
|
|
|
|
|
|
|
void receiveMessageSlots(QString message, int type);
|
|
|
|
|
|
|
|
void on_videoLayout1TBtn_clicked();
|
|
|
|
|
|
|
|
void on_videoLayout4TBtn_clicked();
|
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::CommandWidget *ui;
|
|
|
|
|
|
|
|
QString m_remoteIP;
|
|
|
|
int m_remotePort;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // COMMANDWIDGET_H
|