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

AbstractListModel of remotely controllable devices by JellyfinQt. More...

#include <remotedevice.h>

Inheritance diagram for Jellyfin::ViewModel::RemoteDeviceList:

Public Types

enum  RoleNames {
  jellyfinId = Qt::UserRole + 1 , name , deviceName , deviceType ,
  userName , session
}
 

Signals

void apiClientChanged ()
 
void scanningChanged ()
 

Public Member Functions

 RemoteDeviceList (QObject *parent=nullptr)
 
ApiClientapiClient () const
 
void setApiClient (ApiClient *apiClient)
 
bool scanning () const
 
void setScanning (bool scanning)
 
int rowCount (const QModelIndex &parent=QModelIndex()) const override
 
QVariant data (const QModelIndex &index, int role) const override
 
QHash< int, QByteArray > roleNames () const override
 
Q_INVOKABLE void activateSession (Jellyfin::ViewModel::PlaybackManager *manager, int index)
 Sets the PlaybackManager to control the session at the given index in this model.
 
void classBegin () override
 
void componentComplete () override
 

Properties

Jellyfin::ApiClientapiClient
 
bool scanning
 

Detailed Description

AbstractListModel of remotely controllable devices by JellyfinQt.

This class controls a set of RemoteSessionScanners and puts their found devices in this list.

Member Enumeration Documentation

◆ RoleNames

Enumerator
jellyfinId 
name 
deviceName 
deviceType 
userName 
session 

Constructor & Destructor Documentation

◆ RemoteDeviceList()

Jellyfin::ViewModel::RemoteDeviceList::RemoteDeviceList ( QObject * parent = nullptr)
explicit

Member Function Documentation

◆ activateSession()

void Jellyfin::ViewModel::RemoteDeviceList::activateSession ( Jellyfin::ViewModel::PlaybackManager * manager,
int index )

Sets the PlaybackManager to control the session at the given index in this model.

Parameters
managerThe PlaybackManager
indexThe index of the session that should be controlled

◆ apiClient()

ApiClient * Jellyfin::ViewModel::RemoteDeviceList::apiClient ( ) const
inline

◆ apiClientChanged

void Jellyfin::ViewModel::RemoteDeviceList::apiClientChanged ( )
signal

◆ classBegin()

void Jellyfin::ViewModel::RemoteDeviceList::classBegin ( )
override

◆ componentComplete()

void Jellyfin::ViewModel::RemoteDeviceList::componentComplete ( )
override

◆ data()

QVariant Jellyfin::ViewModel::RemoteDeviceList::data ( const QModelIndex & index,
int role ) const
override

◆ roleNames()

QHash< int, QByteArray > Jellyfin::ViewModel::RemoteDeviceList::roleNames ( ) const
inlineoverride

◆ rowCount()

int Jellyfin::ViewModel::RemoteDeviceList::rowCount ( const QModelIndex & parent = QModelIndex()) const
override

◆ scanning()

bool Jellyfin::ViewModel::RemoteDeviceList::scanning ( ) const
inline

◆ scanningChanged

void Jellyfin::ViewModel::RemoteDeviceList::scanningChanged ( )
signal

◆ setApiClient()

void Jellyfin::ViewModel::RemoteDeviceList::setApiClient ( ApiClient * apiClient)

◆ setScanning()

void Jellyfin::ViewModel::RemoteDeviceList::setScanning ( bool scanning)

Property Documentation

◆ apiClient

Jellyfin::ApiClient* Jellyfin::ViewModel::RemoteDeviceList::apiClient
readwrite

The ApiClient for interacting with the Jellyfin API.

◆ scanning

bool Jellyfin::ViewModel::RemoteDeviceList::scanning
readwrite

Gets/sets whether the model is scanning for other devices.


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