Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
Jellyfin::EventBus Class Reference

"EventBus" object through which "events" are sent. More...

#include <eventbus.h>

Inheritance diagram for Jellyfin::EventBus:

Signals

void itemUserDataUpdated (const QString &itemId, const DTO::UserItemDataDto &userData)
 The UserData of an Item has been updated.
 
void sessionInfoUpdated (const QString &sessionId, const DTO::SessionInfo &sessionInfo)
 The information about a session has been updated.
 
void displayMessage (const QString &header, const QString &message, int timeout=-1)
 The server has requested to display an message to the user.
 
void playstateCommandReceived (const Jellyfin::DTO::PlaystateRequest &request)
 

Public Member Functions

 EventBus (QObject *parent=nullptr)
 

Detailed Description

"EventBus" object through which "events" are sent.

Constructor & Destructor Documentation

◆ EventBus()

Jellyfin::EventBus::EventBus ( QObject * parent = nullptr)
explicit

Member Function Documentation

◆ displayMessage

void Jellyfin::EventBus::displayMessage ( const QString & header,
const QString & message,
int timeout = -1 )
signal

The server has requested to display an message to the user.

Parameters
headerThe header of the message.
messageThe message to show.
timeoutTimeout in MS to show the message. -1: no timeout supplied.

◆ itemUserDataUpdated

void Jellyfin::EventBus::itemUserDataUpdated ( const QString & itemId,
const DTO::UserItemDataDto & userData )
signal

The UserData of an Item has been updated.

Parameters
itemIdThe id of the item which was updated.
userDataThe new userData

◆ playstateCommandReceived

void Jellyfin::EventBus::playstateCommandReceived ( const Jellyfin::DTO::PlaystateRequest & request)
signal

◆ sessionInfoUpdated

void Jellyfin::EventBus::sessionInfoUpdated ( const QString & sessionId,
const DTO::SessionInfo & sessionInfo )
signal

The information about a session has been updated.

Parameters
sessionIdThe id of the session
sessionInfoThe associated information

The documentation for this class was generated from the following files: