mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Websocket auto serverinfo responder (#443)
* serverinfo cb * remove webui cron * missing header file * tcp connection should trigger to
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
// Qt includes
|
||||
#include <QTcpServer>
|
||||
#include <QSet>
|
||||
#include <QTimer>
|
||||
|
||||
// Hyperion includes
|
||||
#include <hyperion/Hyperion.h>
|
||||
@@ -41,6 +42,10 @@ private slots:
|
||||
/// Slot which is called when a client tries to create a new connection
|
||||
///
|
||||
void newConnection();
|
||||
///
|
||||
/// Slot which is called when a new forced serverinfo should be pushed
|
||||
///
|
||||
void pushReq();
|
||||
|
||||
///
|
||||
/// Slot which is called when a client closes a connection
|
||||
@@ -52,9 +57,15 @@ private:
|
||||
/// The TCP server object
|
||||
QTcpServer _server;
|
||||
|
||||
/// Link to Hyperion to get hyperion state emiter
|
||||
Hyperion * _hyperion;
|
||||
|
||||
/// List with open connections
|
||||
QSet<JsonClientConnection *> _openConnections;
|
||||
|
||||
/// the logger instance
|
||||
Logger * _log;
|
||||
|
||||
QTimer _timer;
|
||||
QTimer _blockTimer;
|
||||
};
|
||||
|
Reference in New Issue
Block a user