Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
+56
@@ -0,0 +1,56 @@
|
||||
/**
|
||||
* @RDE_HEADER@
|
||||
* Main ADLER WebsocketSimulator Widget
|
||||
* $Id$
|
||||
* $HeadURL$
|
||||
* $Author$
|
||||
* Created by Patric Karwat, ESZS, 2025-03-03
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <QMainWindow>
|
||||
|
||||
#include "logger.h"
|
||||
|
||||
namespace Ui {
|
||||
class BaseLayout;
|
||||
}
|
||||
|
||||
namespace AdlerWebSocketSimulator {
|
||||
// Casses
|
||||
class Login;
|
||||
class ExerciseChooser;
|
||||
class WebSocketInterface;
|
||||
class ICDTest;
|
||||
|
||||
class BaseLayout : public QMainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit BaseLayout(QWidget *parent = nullptr);
|
||||
~BaseLayout();
|
||||
|
||||
private:
|
||||
//void connectToServer(const QString &servername, int port);
|
||||
|
||||
private slots:
|
||||
void onConnectedToServer(const QString &message);
|
||||
void onConnectedToExerciseManagement(const QString &message);
|
||||
void onExerciseChoosen(const QString &message);
|
||||
void onPartyAccepted(int partyId, const QString &partyName, int saaId);
|
||||
void onStatusMessage(const QString &message);
|
||||
void onRestart();
|
||||
|
||||
private:
|
||||
Ui::BaseLayout *m_ui;
|
||||
Login *m_login {nullptr};
|
||||
ExerciseChooser *m_exerciseChooser {nullptr};
|
||||
ICDTest *m_icdTest{nullptr};
|
||||
WebSocketInterface *m_websocketInterface {nullptr};
|
||||
LOGGER_T m_logger;
|
||||
|
||||
};
|
||||
|
||||
|
||||
} // #namespace AdlerWebSocketSimulator
|
||||
Reference in new issue
Block a user