Adds latest migration results
This commit is contained in:
829 files changed
+35074
-70886
No files matched your search
@@ -12,6 +12,7 @@
|
||||
|
||||
class QTimer;
|
||||
|
||||
#ifdef QT6_WEBSOCKETS_AVAILABLE
|
||||
namespace LtsWebSocket
|
||||
{
|
||||
class ConnectionHandler;
|
||||
@@ -62,3 +63,35 @@ class LTSWEBSOCKETSERVER_EXPORT LtsWebSocketServer : public QObject
|
||||
LOGGER_T m_logger;
|
||||
};
|
||||
} // namespace LtsWebSocket
|
||||
#else
|
||||
#include <QtCore/QTimer>
|
||||
|
||||
namespace LtsWebSocket
|
||||
{
|
||||
class LTSWEBSOCKETSERVER_EXPORT LtsWebSocketServer : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit LtsWebSocketServer(AbstractClientMessageFactory* /*messageFactory*/, QObject* parent = nullptr);
|
||||
virtual ~LtsWebSocketServer();
|
||||
|
||||
bool init(const QString& /*serviceName*/, const unsigned short /*port*/ = 0) { return false; }
|
||||
bool init(const QString& /*serviceName*/, const QPair<quint16, quint16>& /*portRange*/) { return false; }
|
||||
void sendToAllClients(ReplyMessage* /*message*/) {}
|
||||
unsigned short webSocketPort() const { return 0; }
|
||||
void setMessageDelay(qint32 /*delay*/) {}
|
||||
|
||||
signals:
|
||||
void clientDisconnected(void* /*client*/);
|
||||
void clientConnected(void* /*client*/);
|
||||
|
||||
private slots:
|
||||
void onNewTextMessage(void* /*client*/, const QString& /*message*/) {}
|
||||
void onQueueTimerTimeout() {}
|
||||
|
||||
private:
|
||||
QTimer* m_queueTimer{nullptr};
|
||||
LOGGER_T m_logger;
|
||||
};
|
||||
} // namespace LtsWebSocket
|
||||
#endif
|
||||
Reference in new issue
Block a user