Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
|
Keeps a connection with the Jellyfin server to receive real time updates. More...
#include <websocket.h>
Public Types | |
enum | MessageType { ForceKeepAlive , KeepAlive , UserDataChanged , SessionsStart , SessionsStop , Sessions } |
Public Slots | |
void | open () |
void | subscribeToSessionInfo () |
void | unsubscribeToSessionInfo () |
Signals | |
void | commandReceived (QString command, QVariantMap args) |
void | stateChanged (QAbstractSocket::SocketState newState) |
Public Member Functions | |
WebSocket (ApiClient *client) | |
WebSocket creates a webSocket for a Jellyfin server to handle real time updates. | |
QAbstractSocket::SocketState | state () const |
Protected Member Functions | |
void | setupKeepAlive (int data) |
void | sendMessage (MessageType type, QJsonValue data=QJsonValue()) |
QString | generateMessageId () |
Protected Attributes | |
ApiClient * | m_apiClient |
QWebSocket | m_webSocket |
QTimer | m_keepAliveTimer |
QTimer | m_retryTimer |
int | m_reconnectAttempt = 0 |
int | m_sessionInfoSubscribeCount = 0 |
Properties | |
QAbstractSocket::SocketState | state |
Keeps a connection with the Jellyfin server to receive real time updates.
This class will parse these messages and send them to ApiClient, which will emit signals for the interested classes.
|
explicit |
|
signal |
|
protected |
|
slot |
|
protected |
|
protected |
|
inline |
|
signal |
|
slot |
|
slot |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
read |