Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
|
Base class for each model that works with items. More...
#include <itemmodel.h>
Public Types | |
enum | RoleNames { jellyfinId = Qt::UserRole + 1 , name , originalTitle , serverId , etag , sourceType , playlistItemId , dateCreated , dateLastMediaAdded , extraType , imageTags , imageBlurHashes , mediaType , type , collectionType , indexNumber , runTimeTicks , artists , artistItems , isFolder , overview , parentIndexNumber , userDataRating , userDataPlayedPercentage , userDataUnplayedItemCount , userDataPlaybackPositionTicks , userDataPlayCount , userDataFavorite , userDataLikes , userDataLastPlayedDate , userDataPlayed , userDataKey , currentProgramName , currentProgramOverview , currentProgramStartDate , currentProgramEndDate , jellyfinExtendModelAfterHere = Qt::UserRole + 300 } |
Public Member Functions | |
ItemModel (QObject *parent=nullptr) | |
virtual QHash< int, QByteArray > | roleNames () const override |
QVariant | data (const QModelIndex &index, int role) const override |
QSharedPointer< Model::Item > | itemAt (int index) |
Public Member Functions inherited from Jellyfin::ApiModel< Model::Item > | |
ApiModel (QObject *parent=nullptr) | |
Creates a new basemodel. | |
int | rowCount (const QModelIndex &index) const override |
QSharedPointer< Model::Item > | at (int index) const |
int | size () const |
void | insert (int index, QSharedPointer< Model::Item > object) |
void | append (QSharedPointer< Model::Item > object) |
void | append (QList< QSharedPointer< Model::Item > > &objects) |
QList< Model::Item * > | mid (int pos, int length=-1) |
void | removeAt (int index) |
void | removeUntilEnd (int from) |
void | removeOne (QSharedPointer< Model::Item > object) |
void | clear () override |
const QList< QSharedPointer< Model::Item > > & | toList () |
virtual bool | canFetchMore (const QModelIndex &parent) const override |
virtual void | fetchMore (const QModelIndex &parent) override |
BaseModelLoader * | loader () const override |
void | setLoader (BaseModelLoader *newLoader) |
void | reload () override |
Public Member Functions inherited from Jellyfin::BaseApiModel | |
BaseApiModel (QObject *parent=nullptr) | |
void | disconnectOldLoader (BaseModelLoader *oldLoader) |
Additional Inherited Members | |
Public Slots inherited from Jellyfin::BaseApiModel | |
Signals inherited from Jellyfin::BaseApiModel | |
void | loaderChanged () |
Protected Slots inherited from Jellyfin::BaseApiModel | |
Protected Member Functions inherited from Jellyfin::ApiModel< Model::Item > | |
void | loadingFinished () override |
Protected Attributes inherited from Jellyfin::ApiModel< Model::Item > | |
QList< QSharedPointer< Model::Item > > | m_array |
ModelLoader< Model::Item > * | m_loader |
Properties inherited from Jellyfin::BaseApiModel | |
BaseModelLoader * | loader |
Base class for each model that works with items.
|
explicit |
|
override |
QSharedPointer< Model::Item > Jellyfin::ViewModel::ItemModel::itemAt | ( | int | index | ) |
|
inlineoverridevirtual |