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

#include <itemmodel.h>

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

Signals

void seriesIdChanged ()
 
void adjacentToChanged ()
 
void enableImagesChanged ()
 
void enableUserDataChanged ()
 
void fieldsChanged ()
 
void imageTypeLimitChanged ()
 
void isMissingChanged ()
 
void seasonChanged ()
 
void seasonIdChanged ()
 
void sortByChanged ()
 
void startItemIdChanged ()
 
- 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

 ShowEpisodesLoader (QObject *parent=nullptr)
 
QString seriesId () const
 
void setSeriesId (QString newValue)
 
QString adjacentTo () const
 
void setAdjacentTo (QString newValue)
 
bool enableImages () const
 
void setEnableImages (bool newValue)
 
bool enableUserData () const
 
void setEnableUserData (bool newValue)
 
QVariantList fields () const
 
void setFields (const QVariantList &newValue)
 
qint32 imageTypeLimit () const
 
void setImageTypeLimit (qint32 newValue)
 
bool isMissing () const
 
void setIsMissing (bool newValue)
 
qint32 season () const
 
void setSeason (qint32 newValue)
 
QString seasonId () const
 
void setSeasonId (QString newValue)
 
QString sortBy () const
 
void setSortBy (QString newValue)
 
QString startItemId () const
 
void setStartItemId (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

QString seriesId
 
QString adjacentTo
 
bool enableImages
 
bool enableUserData
 
QVariantList fields
 
qint32 imageTypeLimit
 
bool isMissing
 
qint32 season
 
QString seasonId
 
QString sortBy
 
QString startItemId
 
- 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

◆ ShowEpisodesLoader()

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

Member Function Documentation

◆ adjacentTo()

QString Jellyfin::ViewModel::ShowEpisodesLoader::adjacentTo ( ) const
inline

◆ adjacentToChanged

void Jellyfin::ViewModel::ShowEpisodesLoader::adjacentToChanged ( )
signal

◆ enableImages()

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

◆ enableImagesChanged

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

◆ enableUserData()

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

◆ enableUserDataChanged

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

◆ fields()

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

◆ fieldsChanged

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

◆ imageTypeLimit()

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

◆ imageTypeLimitChanged

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

◆ isMissing()

bool Jellyfin::ViewModel::ShowEpisodesLoader::isMissing ( ) const
inline

◆ isMissingChanged

void Jellyfin::ViewModel::ShowEpisodesLoader::isMissingChanged ( )
signal

◆ season()

qint32 Jellyfin::ViewModel::ShowEpisodesLoader::season ( ) const
inline

◆ seasonChanged

void Jellyfin::ViewModel::ShowEpisodesLoader::seasonChanged ( )
signal

◆ seasonId()

QString Jellyfin::ViewModel::ShowEpisodesLoader::seasonId ( ) const
inline

◆ seasonIdChanged

void Jellyfin::ViewModel::ShowEpisodesLoader::seasonIdChanged ( )
signal

◆ seriesId()

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

◆ seriesIdChanged

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

◆ setAdjacentTo()

void Jellyfin::ViewModel::ShowEpisodesLoader::setAdjacentTo ( QString newValue)
inline

◆ setEnableImages()

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

◆ setEnableUserData()

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

◆ setFields()

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

◆ setImageTypeLimit()

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

◆ setIsMissing()

void Jellyfin::ViewModel::ShowEpisodesLoader::setIsMissing ( bool newValue)
inline

◆ setSeason()

void Jellyfin::ViewModel::ShowEpisodesLoader::setSeason ( qint32 newValue)
inline

◆ setSeasonId()

void Jellyfin::ViewModel::ShowEpisodesLoader::setSeasonId ( QString newValue)
inline

◆ setSeriesId()

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

◆ setSortBy()

void Jellyfin::ViewModel::ShowEpisodesLoader::setSortBy ( QString newValue)
inline

◆ setStartItemId()

void Jellyfin::ViewModel::ShowEpisodesLoader::setStartItemId ( QString newValue)
inline

◆ sortBy()

QString Jellyfin::ViewModel::ShowEpisodesLoader::sortBy ( ) const
inline

◆ sortByChanged

void Jellyfin::ViewModel::ShowEpisodesLoader::sortByChanged ( )
signal

◆ startItemId()

QString Jellyfin::ViewModel::ShowEpisodesLoader::startItemId ( ) const
inline

◆ startItemIdChanged

void Jellyfin::ViewModel::ShowEpisodesLoader::startItemIdChanged ( )
signal

Property Documentation

◆ adjacentTo

QString Jellyfin::ViewModel::ShowEpisodesLoader::adjacentTo
readwrite

◆ enableImages

bool Jellyfin::ViewModel::ShowEpisodesLoader::enableImages
readwrite

◆ enableUserData

bool Jellyfin::ViewModel::ShowEpisodesLoader::enableUserData
readwrite

◆ fields

QVariantList Jellyfin::ViewModel::ShowEpisodesLoader::fields
readwrite

◆ imageTypeLimit

qint32 Jellyfin::ViewModel::ShowEpisodesLoader::imageTypeLimit
readwrite

◆ isMissing

bool Jellyfin::ViewModel::ShowEpisodesLoader::isMissing
readwrite

◆ season

qint32 Jellyfin::ViewModel::ShowEpisodesLoader::season
readwrite

◆ seasonId

QString Jellyfin::ViewModel::ShowEpisodesLoader::seasonId
readwrite

◆ seriesId

QString Jellyfin::ViewModel::ShowEpisodesLoader::seriesId
readwrite

◆ sortBy

QString Jellyfin::ViewModel::ShowEpisodesLoader::sortBy
readwrite

◆ startItemId

QString Jellyfin::ViewModel::ShowEpisodesLoader::startItemId
readwrite

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