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

#include <itemmodel.h>

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

Signals

void disableFirstEpisodeChanged ()
 
void enableImageTypesChanged ()
 
void enableImgesChanged ()
 
void enableTotalRecordCountChanged ()
 
void enableUserDataChanged ()
 
void fieldsChanged ()
 
void imageTypeLimitChanged ()
 
void parentIdChanged ()
 
void seriesIdChanged ()
 
- 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

 NextUpLoader (QObject *parent=nullptr)
 
bool disableFirstEpisode () const
 
void setDisableFirstEpisode (bool newValue)
 
QVariantList enableImageTypes () const
 
void setEnableImageTypes (const QVariantList &newValue)
 
bool enableImges () const
 
void setEnableImges (bool newValue)
 
bool enableTotalRecordCount () const
 
void setEnableTotalRecordCount (bool newValue)
 
bool enableUserData () const
 
void setEnableUserData (bool newValue)
 
QVariantList fields () const
 
void setFields (const QVariantList &newValue)
 
qint32 imageTypeLimit () const
 
void setImageTypeLimit (qint32 newValue)
 
QString parentId () const
 
void setParentId (QString newValue)
 
QString seriesId () const
 
void setSeriesId (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

bool disableFirstEpisode
 
QVariantList enableImageTypes
 
bool enableImges
 
bool enableTotalRecordCount
 
bool enableUserData
 
QVariantList fields
 
qint32 imageTypeLimit
 
QString parentId
 
QString seriesId
 
- 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

◆ NextUpLoader()

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

Member Function Documentation

◆ disableFirstEpisode()

bool Jellyfin::ViewModel::NextUpLoader::disableFirstEpisode ( ) const
inline

◆ disableFirstEpisodeChanged

void Jellyfin::ViewModel::NextUpLoader::disableFirstEpisodeChanged ( )
signal

◆ enableImageTypes()

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

◆ enableImageTypesChanged

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

◆ enableImges()

bool Jellyfin::ViewModel::NextUpLoader::enableImges ( ) const
inline

◆ enableImgesChanged

void Jellyfin::ViewModel::NextUpLoader::enableImgesChanged ( )
signal

◆ enableTotalRecordCount()

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

◆ enableTotalRecordCountChanged

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

◆ enableUserData()

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

◆ enableUserDataChanged

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

◆ fields()

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

◆ fieldsChanged

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

◆ imageTypeLimit()

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

◆ imageTypeLimitChanged

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

◆ parentId()

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

◆ parentIdChanged

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

◆ seriesId()

QString Jellyfin::ViewModel::NextUpLoader::seriesId ( ) const
inline

◆ seriesIdChanged

void Jellyfin::ViewModel::NextUpLoader::seriesIdChanged ( )
signal

◆ setDisableFirstEpisode()

void Jellyfin::ViewModel::NextUpLoader::setDisableFirstEpisode ( bool newValue)
inline

◆ setEnableImageTypes()

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

◆ setEnableImges()

void Jellyfin::ViewModel::NextUpLoader::setEnableImges ( bool newValue)
inline

◆ setEnableTotalRecordCount()

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

◆ setEnableUserData()

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

◆ setFields()

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

◆ setImageTypeLimit()

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

◆ setParentId()

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

◆ setSeriesId()

void Jellyfin::ViewModel::NextUpLoader::setSeriesId ( QString newValue)
inline

Property Documentation

◆ disableFirstEpisode

bool Jellyfin::ViewModel::NextUpLoader::disableFirstEpisode
readwrite

◆ enableImageTypes

QVariantList Jellyfin::ViewModel::NextUpLoader::enableImageTypes
readwrite

◆ enableImges

bool Jellyfin::ViewModel::NextUpLoader::enableImges
readwrite

◆ enableTotalRecordCount

bool Jellyfin::ViewModel::NextUpLoader::enableTotalRecordCount
readwrite

◆ enableUserData

bool Jellyfin::ViewModel::NextUpLoader::enableUserData
readwrite

◆ fields

QVariantList Jellyfin::ViewModel::NextUpLoader::fields
readwrite

◆ imageTypeLimit

qint32 Jellyfin::ViewModel::NextUpLoader::imageTypeLimit
readwrite

◆ parentId

QString Jellyfin::ViewModel::NextUpLoader::parentId
readwrite

◆ seriesId

QString Jellyfin::ViewModel::NextUpLoader::seriesId
readwrite

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