Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
Executable
+54
@@ -0,0 +1,54 @@
|
||||
/**
|
||||
* @RDE_HEADER@
|
||||
* $Id$
|
||||
* $HeadURL$
|
||||
* $Author$
|
||||
* Created by Hannes Fritsche, SLSE, 2017-09-06
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <nglwidgets/nglmainwindow.h>
|
||||
#include <QJsonObject>
|
||||
#include <QUuid>
|
||||
#include <QtNetwork/QAbstractSocket>
|
||||
|
||||
namespace Ui
|
||||
{
|
||||
class MainWindow;
|
||||
}
|
||||
|
||||
class QWebSocket;
|
||||
class MessageModel;
|
||||
|
||||
class MainWindow
|
||||
: public NGLMainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit MainWindow(QWidget *parent = nullptr);
|
||||
~MainWindow();
|
||||
|
||||
private Q_SLOTS:
|
||||
void onSendGetEssentialsClicked();
|
||||
void onSendGetConfigCnrClicked();
|
||||
void onSendGetPositionsCnrClicked();
|
||||
void onSendErrorClicked();
|
||||
void onConnectClicked();
|
||||
void onDisconnectClicked();
|
||||
void onNewSocketState(QAbstractSocket::SocketState state);
|
||||
void onNewTextMessageFromSocket(const QString &message);
|
||||
|
||||
void setVersionView() override final;
|
||||
|
||||
|
||||
private: // methods
|
||||
void newMessageToServer(const QString &type, const QString &uuid = QUuid::createUuid().toString(), const QJsonObject &data = QJsonObject());
|
||||
|
||||
private: // attributes
|
||||
Ui::MainWindow *m_ui;
|
||||
QWebSocket *m_socket;
|
||||
MessageModel *m_messageModel;
|
||||
|
||||
};
|
||||
Reference in new issue
Block a user