Files
qt5-legatus-legacy/Lts/Tools/Adler/WebSocketSimulator/awss_base_layout.h
T
2026-08-13 18:33:10 +02:00

57 lines
1.1 KiB
C++
Executable File

/**
* @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