Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
Jellyfin::Model::ControllableSession Class Referenceabstract

Abstract class for describing a playback session that can be controlled. More...

#include <controllablesession.h>

Inheritance diagram for Jellyfin::Model::ControllableSession:
Jellyfin::Model::ControllableJellyfinSession Jellyfin::Model::LocalSession

Public Member Functions

 ControllableSession (QObject *parent=nullptr)
 
virtual QString id () const =0
 An unique id for this session.
 
virtual QString name () const =0
 An human-readable name for this session.
 
virtual QString appName () const =0
 The app for this session.
 
virtual DeviceType deviceType () const =0
 
virtual QString userName () const =0
 user The username of who started this session
 
virtual PlaybackManagercreatePlaybackManager () const =0
 Creates a playbackManager for this device. This PlaybackManager has no QObject parent and must be cleaned up by the caller.
 

Detailed Description

Abstract class for describing a playback session that can be controlled.

Main purpose for this class is to hold information for displaying it in a UI for an user to select and to create an implementation of a PlaybackManager instance to control this session.

Constructor & Destructor Documentation

◆ ControllableSession()

Jellyfin::Model::ControllableSession::ControllableSession ( QObject * parent = nullptr)
explicit

Member Function Documentation

◆ appName()

virtual QString Jellyfin::Model::ControllableSession::appName ( ) const
pure virtual

The app for this session.

Implemented in Jellyfin::Model::ControllableJellyfinSession, and Jellyfin::Model::LocalSession.

◆ createPlaybackManager()

virtual PlaybackManager * Jellyfin::Model::ControllableSession::createPlaybackManager ( ) const
pure virtual

Creates a playbackManager for this device. This PlaybackManager has no QObject parent and must be cleaned up by the caller.

Implemented in Jellyfin::Model::ControllableJellyfinSession, and Jellyfin::Model::LocalSession.

◆ deviceType()

virtual DeviceType Jellyfin::Model::ControllableSession::deviceType ( ) const
pure virtual

◆ id()

virtual QString Jellyfin::Model::ControllableSession::id ( ) const
pure virtual

An unique id for this session.

Implemented in Jellyfin::Model::ControllableJellyfinSession, and Jellyfin::Model::LocalSession.

◆ name()

virtual QString Jellyfin::Model::ControllableSession::name ( ) const
pure virtual

An human-readable name for this session.

Implemented in Jellyfin::Model::ControllableJellyfinSession, and Jellyfin::Model::LocalSession.

◆ userName()

virtual QString Jellyfin::Model::ControllableSession::userName ( ) const
pure virtual

user The username of who started this session

Implemented in Jellyfin::Model::ControllableJellyfinSession, and Jellyfin::Model::LocalSession.


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