C
EventHandler Class
class SafeRenderer::EventHandlerEventHandler adaptation implementation for QtNetwork. More...
Header: | #include <EventHandler> |
Inherits: | QObject |
Public Functions
EventHandler(SafeRenderer::StateManager &stateManagerArg, SafeRenderer::SafeWindowInterface &windowArg) | |
EventHandler(SafeRenderer::StateManager &stateManagerArg, SafeRenderer::SafeWindowInterface &windowArg, SafeRenderer::OutputVerifierInterface &outputVerifierArg) | |
virtual | ~EventHandler() |
void | handleEvents() |
void | stop() |
Detailed Description
This EventHandler adaptation implements QSR event handling by using QtNetwork, sockets and QTimer for timers.
Member Function Documentation
[explicit]
EventHandler::EventHandler(SafeRenderer::StateManager &stateManagerArg, SafeRenderer::SafeWindowInterface &windowArg)
Constructs an instance of EventHandler class. stateManagerArg Reference to an instance of class implementing StateManager interface windowArg Reference to a class implementing SafeWindowInterface interface
Note: Instances referenced by stateManagerArg and windowArg must stay in scope until handleEvents() call returns to the user code.
[explicit]
EventHandler::EventHandler(SafeRenderer::StateManager &stateManagerArg, SafeRenderer::SafeWindowInterface &windowArg, SafeRenderer::OutputVerifierInterface &outputVerifierArg)
Constructs an instance of EventHandler class with an OutputVerifierInterface.
The reference to the OutputVerifierInterface instance is given to outputVerifierArg. stateManagerArg Reference to an instance of class implementing StateManager interface windowArg Reference to a class implementing SafeWindowInterface outputVerifierArg Reference to a class implementing OutputVerifierInterface
Note: Instances referenced by stateManagerArg, windowArg and outputVerifierArg must stay in scope until handleEvents() call returns to the user code.
[virtual]
EventHandler::~EventHandler()
Destructs the EventHandler instance. All client sockets are disconnected and deleted.
void EventHandler::handleEvents()
Starts the EventHandler. TCP server is initialized and started. QApplication event handling loop is started.
void EventHandler::stop()
Stops the EventHandler.
Available under certain Qt licenses.
Find out more.