11#include <QtWebSockets/QWebSocket>
13#include <QNetworkAccessManager>
15#include <QNetworkReply>
22class NodeManager :
public QObject
29 explicit NodeManager(uint32_t mask);
30 virtual ~NodeManager() =
default;
32 bool isConnected()
const;
41 void setURLs(
const QUrl &service,
const QUrl &websocket);
42 void setCredentials(
const QString &username,
const QString &password);
45 m_AuthResponse = response;
48 Node *message() {
return m_Nodes[Message];}
49 Node *media() {
return m_Nodes[Media];}
50 Node *cloud() {
return m_Nodes.
contains(Cloud) ? m_Nodes[Cloud] :
nullptr;}
55 void authenticationError(
QString);
59 void disconnectNodes();
62 void setDisconnected();
69 uint16_t m_ReconnectTries {0};
70 QUrl m_ServiceURL, m_WebsocketURL;
77 static const uint16_t RECONNECT_INTERVAL = 5000;
79 static const uint16_t RECONNECT_MAX_TRIES = 3;
81 static const uint16_t THROTTLE_INTERVAL = 1000;
Generic record interfaces and implementations.
bool contains(const Key &key) const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:38:42 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.