22#include <QtNetwork/QTcpSocket>
72 int timeoutTime,
int currentTime,
int seed,
const QString& initialMessage =
"Loading...");
bool myScreenReady
Flag indicating whether the loading screen is ready.
Definition vreExternalLoadingPageLogic.h:181
virtual void sendMaximumTime(int ms)
Sets the maximum expected loading time.
virtual bool isLoadingScreenReady()
Checks if the loading screen is ready.
quint16 myNextBlockSize
Size of the next block to read.
Definition vreExternalLoadingPageLogic.h:170
virtual void sendStatus(const QString &msg)
Sends a status message to the loading screen.
virtual void shutdown()
Shuts down the external process and TCP server.
virtual void sendData(const QString &msg)
Sends data to all connected clients.
virtual void newConnection()
Handles new client connections to the TCP server.
void readClient()
Processes data received from clients.
virtual ~DtVreExternalLoadingPageLogic() override
Destructor.
virtual void initializeProcess(int timeoutTime, int currentTime, int seed, const QString &initialMessage="Loading...")
Starts the external loading page process.
virtual void initializeServer(unsigned short int port=0)
Initializes the TCP server for loading screen communication.
QProcess myProcess
External process for the loading screen.
Definition vreExternalLoadingPageLogic.h:175
DtVreExternalLoadingPageLogic()
Constructor.
virtual void sendCurrentTime(int ms)
Updates the current progress time.
void gotDisconnection()
Handles client disconnections.
QList< QTcpSocket * > myClients
List of connected client sockets.
Definition vreExternalLoadingPageLogic.h:158
void smbDisconnected()
Signal emitted when a client disconnects.
std::shared_ptr< QTcpServer > myTCPServer
TCP server for communicating with the loading screen.
Definition vreExternalLoadingPageLogic.h:164
Defines export macros for the VR-Engage Player Station library.
#define PLAYERSTATION_DLL
Definition export.h:24
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
Defines the base class for all VREngage messages.