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

Playlist/queue that can be exposed to QML. More...

#include <playlist.h>

Inheritance diagram for Jellyfin::ViewModel::Playlist:

Public Types

enum  RoleNames {
  name = Qt::UserRole + 1 , artists , artistItems , runTimeTicks ,
  playing , section
}
 

Public Member Functions

 Playlist (Model::Playlist *data, QObject *parent=nullptr)
 
QVariant data (const QModelIndex &parent, int role=Qt::DisplayRole) const override
 
int rowCount (const QModelIndex &parent) const override
 
QHash< int, QByteArray > roleNames () const override
 
void setPlaylistModel (Model::Playlist *data)
 

Friends

class ItemUrlFetcherThread
 

Detailed Description

Playlist/queue that can be exposed to QML.

Member Enumeration Documentation

◆ RoleNames

Enumerator
name 
artists 
artistItems 
runTimeTicks 
playing 
section 

Constructor & Destructor Documentation

◆ Playlist()

Jellyfin::ViewModel::Playlist::Playlist ( Model::Playlist * data,
QObject * parent = nullptr )
explicit

Member Function Documentation

◆ data()

QVariant Jellyfin::ViewModel::Playlist::data ( const QModelIndex & parent,
int role = Qt::DisplayRole ) const
override

◆ roleNames()

QHash< int, QByteArray > Jellyfin::ViewModel::Playlist::roleNames ( ) const
override

◆ rowCount()

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

◆ setPlaylistModel()

void Jellyfin::ViewModel::Playlist::setPlaylistModel ( Model::Playlist * data)

Friends And Related Symbol Documentation

◆ ItemUrlFetcherThread

friend class ItemUrlFetcherThread
friend

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