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

#include <itemmodel.h>

Inheritance diagram for Jellyfin::ViewModel::ResumeItemsLoader:
Jellyfin::ViewModel::AbstractUserParameterLoader< T, D, R, P > Jellyfin::LoaderModelLoader< T, D, R, P > Jellyfin::ModelLoader< T > Jellyfin::BaseModelLoader

Signals

void enableImageTypesChanged ()
 
void enableImagesChanged ()
 
void enableTotalRecordCountChanged ()
 
void enableUserDataChanged ()
 
void excludeItemTypesChanged ()
 
void fieldsChanged ()
 
void imageTypeLimitChanged ()
 
void includeItemTypesChanged ()
 
void mediaTypesChanged ()
 
void parentIdChanged ()
 
void searchTermChanged ()
 
- Signals inherited from Jellyfin::BaseModelLoader
void ready ()
 
void apiClientChanged (ApiClient *newApiClient)
 
void statusChanged ()
 
void limitChanged (int newLimit)
 
void autoReloadChanged (bool newAutoReload)
 
void modelShouldClear ()
 Emitted when the model should clear itself.
 
void itemsLoaded ()
 
void reloadWanted ()
 

Public Member Functions

 ResumeItemsLoader (QObject *parent=nullptr)
 
QVariantList enableImageTypes () const
 
void setEnableImageTypes (const QVariantList &newValue)
 
bool enableImages () const
 
void setEnableImages (bool newValue)
 
bool enableTotalRecordCount () const
 
void setEnableTotalRecordCount (bool newValue)
 
bool enableUserData () const
 
void setEnableUserData (bool newValue)
 
QStringList excludeItemTypes () const
 
void setExcludeItemTypes (QStringList newValue)
 
QVariantList fields () const
 
void setFields (const QVariantList &newValue)
 
qint32 imageTypeLimit () const
 
void setImageTypeLimit (qint32 newValue)
 
QStringList includeItemTypes () const
 
void setIncludeItemTypes (QStringList newValue)
 
QStringList mediaTypes () const
 
void setMediaTypes (QStringList newValue)
 
QString parentId () const
 
void setParentId (QString newValue)
 
QString searchTerm () const
 
void setSearchTerm (QString newValue)
 
- Public Member Functions inherited from Jellyfin::ViewModel::AbstractUserParameterLoader< T, D, R, P >
 AbstractUserParameterLoader (Support::Loader< R, P > *loader, QObject *parent=nullptr)
 
- Public Member Functions inherited from Jellyfin::LoaderModelLoader< T, D, R, P >
 LoaderModelLoader (Support::Loader< R, P > *loader, QObject *parent=nullptr)
 
- Public Member Functions inherited from Jellyfin::ModelLoader< T >
 ModelLoader (QObject *parent=nullptr)
 
void reload () override
 Clears and reloads the model.
 
void loadMore ()
 
virtual bool canLoadMore () const
 
std::pair< QList< T * >, int > && result ()
 Holds the result. Moves it result to the caller and therefore can be only called once when the itemsLoaded is emitted.
 
- Public Member Functions inherited from Jellyfin::BaseModelLoader
 BaseModelLoader (QObject *parent=nullptr)
 
ApiClientapiClient () const
 
void setApiClient (ApiClient *newApiClient)
 
int limit () const
 
void setLimit (int newLimit)
 
bool autoReload () const
 
void setAutoReload (bool newAutoReload)
 
ViewModel::ModelStatus status () const
 
virtual void classBegin () override
 
virtual void componentComplete () override
 
void autoReloadIfNeeded ()
 

Properties

QVariantList enableImageTypes
 
bool enableImages
 
bool enableTotalRecordCount
 
bool enableUserData
 
QStringList excludeItemTypes
 
QVariantList fields
 
qint32 imageTypeLimit
 
QStringList includeItemTypes
 
QStringList mediaTypes
 
QString parentId
 
QString searchTerm
 
- Properties inherited from Jellyfin::BaseModelLoader
ApiClientapiClient
 
Jellyfin::ViewModel::ModelStatusClass::Value status
 
int limit
 
bool autoReload
 

Additional Inherited Members

- Protected Member Functions inherited from Jellyfin::ViewModel::AbstractUserParameterLoader< T, D, R, P >
virtual bool canReload () const override
 Determines if this model is able to reload.
 
- Protected Member Functions inherited from Jellyfin::LoaderModelLoader< T, D, R, P >
void loadMore (ViewModel::ModelStatus suggestedModelStatus) override
 Loads data from the given offset with a maximum count of limit. The itemsLoaded() signal is emitted when new data is ready. Call getLoadedItems to retrieve the loaded items.
 
void loaderReady ()
 
void loaderError (QString error)
 
- Protected Member Functions inherited from Jellyfin::BaseModelLoader
void emitModelShouldClear ()
 
void emitItemsLoaded ()
 
void setStatus (ViewModel::ModelStatus newStatus)
 
- Protected Attributes inherited from Jellyfin::LoaderModelLoader< T, D, R, P >
QScopedPointer< Support::Loader< R, P > > m_loader
 
m_parameters
 
- Protected Attributes inherited from Jellyfin::ModelLoader< T >
std::pair< QList< T * >, int > m_result
 
- Protected Attributes inherited from Jellyfin::BaseModelLoader
bool m_isBeingParsed = false
 
ApiClientm_apiClient = nullptr
 
bool m_autoReload = true
 
bool m_needsAuthentication = true
 
bool m_manualLimitSet = false
 
int m_limit = -1
 
int m_startIndex = 0
 
int m_totalRecordCount = 0
 
bool m_explicitLimitSet = false
 
const int DEFAULT_LIMIT = 100
 
ViewModel::ModelStatus m_status = ViewModel::ModelStatus::Uninitialised
 

Constructor & Destructor Documentation

◆ ResumeItemsLoader()

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

Member Function Documentation

◆ enableImages()

bool Jellyfin::ViewModel::ResumeItemsLoader::enableImages ( ) const
inline

◆ enableImagesChanged

void Jellyfin::ViewModel::ResumeItemsLoader::enableImagesChanged ( )
signal

◆ enableImageTypes()

QVariantList Jellyfin::ViewModel::ResumeItemsLoader::enableImageTypes ( ) const
inline

◆ enableImageTypesChanged

void Jellyfin::ViewModel::ResumeItemsLoader::enableImageTypesChanged ( )
signal

◆ enableTotalRecordCount()

bool Jellyfin::ViewModel::ResumeItemsLoader::enableTotalRecordCount ( ) const
inline

◆ enableTotalRecordCountChanged

void Jellyfin::ViewModel::ResumeItemsLoader::enableTotalRecordCountChanged ( )
signal

◆ enableUserData()

bool Jellyfin::ViewModel::ResumeItemsLoader::enableUserData ( ) const
inline

◆ enableUserDataChanged

void Jellyfin::ViewModel::ResumeItemsLoader::enableUserDataChanged ( )
signal

◆ excludeItemTypes()

QStringList Jellyfin::ViewModel::ResumeItemsLoader::excludeItemTypes ( ) const
inline

◆ excludeItemTypesChanged

void Jellyfin::ViewModel::ResumeItemsLoader::excludeItemTypesChanged ( )
signal

◆ fields()

QVariantList Jellyfin::ViewModel::ResumeItemsLoader::fields ( ) const
inline

◆ fieldsChanged

void Jellyfin::ViewModel::ResumeItemsLoader::fieldsChanged ( )
signal

◆ imageTypeLimit()

qint32 Jellyfin::ViewModel::ResumeItemsLoader::imageTypeLimit ( ) const
inline

◆ imageTypeLimitChanged

void Jellyfin::ViewModel::ResumeItemsLoader::imageTypeLimitChanged ( )
signal

◆ includeItemTypes()

QStringList Jellyfin::ViewModel::ResumeItemsLoader::includeItemTypes ( ) const
inline

◆ includeItemTypesChanged

void Jellyfin::ViewModel::ResumeItemsLoader::includeItemTypesChanged ( )
signal

◆ mediaTypes()

QStringList Jellyfin::ViewModel::ResumeItemsLoader::mediaTypes ( ) const
inline

◆ mediaTypesChanged

void Jellyfin::ViewModel::ResumeItemsLoader::mediaTypesChanged ( )
signal

◆ parentId()

QString Jellyfin::ViewModel::ResumeItemsLoader::parentId ( ) const
inline

◆ parentIdChanged

void Jellyfin::ViewModel::ResumeItemsLoader::parentIdChanged ( )
signal

◆ searchTerm()

QString Jellyfin::ViewModel::ResumeItemsLoader::searchTerm ( ) const
inline

◆ searchTermChanged

void Jellyfin::ViewModel::ResumeItemsLoader::searchTermChanged ( )
signal

◆ setEnableImages()

void Jellyfin::ViewModel::ResumeItemsLoader::setEnableImages ( bool newValue)
inline

◆ setEnableImageTypes()

void Jellyfin::ViewModel::ResumeItemsLoader::setEnableImageTypes ( const QVariantList & newValue)
inline

◆ setEnableTotalRecordCount()

void Jellyfin::ViewModel::ResumeItemsLoader::setEnableTotalRecordCount ( bool newValue)
inline

◆ setEnableUserData()

void Jellyfin::ViewModel::ResumeItemsLoader::setEnableUserData ( bool newValue)
inline

◆ setExcludeItemTypes()

void Jellyfin::ViewModel::ResumeItemsLoader::setExcludeItemTypes ( QStringList newValue)
inline

◆ setFields()

void Jellyfin::ViewModel::ResumeItemsLoader::setFields ( const QVariantList & newValue)
inline

◆ setImageTypeLimit()

void Jellyfin::ViewModel::ResumeItemsLoader::setImageTypeLimit ( qint32 newValue)
inline

◆ setIncludeItemTypes()

void Jellyfin::ViewModel::ResumeItemsLoader::setIncludeItemTypes ( QStringList newValue)
inline

◆ setMediaTypes()

void Jellyfin::ViewModel::ResumeItemsLoader::setMediaTypes ( QStringList newValue)
inline

◆ setParentId()

void Jellyfin::ViewModel::ResumeItemsLoader::setParentId ( QString newValue)
inline

◆ setSearchTerm()

void Jellyfin::ViewModel::ResumeItemsLoader::setSearchTerm ( QString newValue)
inline

Property Documentation

◆ enableImages

bool Jellyfin::ViewModel::ResumeItemsLoader::enableImages
readwrite

◆ enableImageTypes

QVariantList Jellyfin::ViewModel::ResumeItemsLoader::enableImageTypes
readwrite

◆ enableTotalRecordCount

bool Jellyfin::ViewModel::ResumeItemsLoader::enableTotalRecordCount
readwrite

◆ enableUserData

bool Jellyfin::ViewModel::ResumeItemsLoader::enableUserData
readwrite

◆ excludeItemTypes

QStringList Jellyfin::ViewModel::ResumeItemsLoader::excludeItemTypes
readwrite

◆ fields

QVariantList Jellyfin::ViewModel::ResumeItemsLoader::fields
readwrite

◆ imageTypeLimit

qint32 Jellyfin::ViewModel::ResumeItemsLoader::imageTypeLimit
readwrite

◆ includeItemTypes

QStringList Jellyfin::ViewModel::ResumeItemsLoader::includeItemTypes
readwrite

◆ mediaTypes

QStringList Jellyfin::ViewModel::ResumeItemsLoader::mediaTypes
readwrite

◆ parentId

QString Jellyfin::ViewModel::ResumeItemsLoader::parentId
readwrite

◆ searchTerm

QString Jellyfin::ViewModel::ResumeItemsLoader::searchTerm
readwrite

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