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

#include <itemmodel.h>

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

Signals

void enableImageTypesChanged ()
 
void enableImagesChanged ()
 
void enableUserDataChanged ()
 
void fieldsChanged ()
 
void groupItemsChanged ()
 
void imageTypeLimitChanged ()
 
void includeItemTypesChanged ()
 
void isPlayedChanged ()
 
void parentIdChanged ()
 
- 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

 LatestMediaLoader (QObject *parent=nullptr)
 
QList< Jellyfin::DTO::ImageTypeClass::ValueenableImageTypes () const
 
void setEnableImageTypes (QList< Jellyfin::DTO::ImageTypeClass::Value > newValue)
 
bool enableImages () const
 
void setEnableImages (bool newValue)
 
bool enableUserData () const
 
void setEnableUserData (bool newValue)
 
QVariantList fields () const
 
void setFields (const QVariantList &newValue)
 
bool groupItems () const
 
void setGroupItems (bool newValue)
 
qint32 imageTypeLimit () const
 
void setImageTypeLimit (qint32 newValue)
 
QStringList includeItemTypes () const
 
void setIncludeItemTypes (QStringList newValue)
 
bool isPlayed () const
 
void setIsPlayed (bool newValue)
 
QString parentId () const
 
void setParentId (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

QList< Jellyfin::DTO::ImageTypeClass::ValueenableImageTypes
 
bool enableImages
 
bool enableUserData
 
QVariantList fields
 
bool groupItems
 
qint32 imageTypeLimit
 
QStringList includeItemTypes
 
bool isPlayed
 
QString parentId
 
- 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

◆ LatestMediaLoader()

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

Member Function Documentation

◆ enableImages()

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

◆ enableImagesChanged

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

◆ enableImageTypes()

QList< Jellyfin::DTO::ImageTypeClass::Value > Jellyfin::ViewModel::LatestMediaLoader::enableImageTypes ( ) const
inline

◆ enableImageTypesChanged

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

◆ enableUserData()

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

◆ enableUserDataChanged

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

◆ fields()

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

◆ fieldsChanged

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

◆ groupItems()

bool Jellyfin::ViewModel::LatestMediaLoader::groupItems ( ) const
inline

◆ groupItemsChanged

void Jellyfin::ViewModel::LatestMediaLoader::groupItemsChanged ( )
signal

◆ imageTypeLimit()

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

◆ imageTypeLimitChanged

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

◆ includeItemTypes()

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

◆ includeItemTypesChanged

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

◆ isPlayed()

bool Jellyfin::ViewModel::LatestMediaLoader::isPlayed ( ) const
inline

◆ isPlayedChanged

void Jellyfin::ViewModel::LatestMediaLoader::isPlayedChanged ( )
signal

◆ parentId()

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

◆ parentIdChanged

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

◆ setEnableImages()

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

◆ setEnableImageTypes()

void Jellyfin::ViewModel::LatestMediaLoader::setEnableImageTypes ( QList< Jellyfin::DTO::ImageTypeClass::Value > newValue)
inline

◆ setEnableUserData()

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

◆ setFields()

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

◆ setGroupItems()

void Jellyfin::ViewModel::LatestMediaLoader::setGroupItems ( bool newValue)
inline

◆ setImageTypeLimit()

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

◆ setIncludeItemTypes()

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

◆ setIsPlayed()

void Jellyfin::ViewModel::LatestMediaLoader::setIsPlayed ( bool newValue)
inline

◆ setParentId()

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

Property Documentation

◆ enableImages

bool Jellyfin::ViewModel::LatestMediaLoader::enableImages
readwrite

◆ enableImageTypes

QList<Jellyfin::DTO::ImageTypeClass::Value> Jellyfin::ViewModel::LatestMediaLoader::enableImageTypes
readwrite

◆ enableUserData

bool Jellyfin::ViewModel::LatestMediaLoader::enableUserData
readwrite

◆ fields

QVariantList Jellyfin::ViewModel::LatestMediaLoader::fields
readwrite

◆ groupItems

bool Jellyfin::ViewModel::LatestMediaLoader::groupItems
readwrite

◆ imageTypeLimit

qint32 Jellyfin::ViewModel::LatestMediaLoader::imageTypeLimit
readwrite

◆ includeItemTypes

QStringList Jellyfin::ViewModel::LatestMediaLoader::includeItemTypes
readwrite

◆ isPlayed

bool Jellyfin::ViewModel::LatestMediaLoader::isPlayed
readwrite

◆ parentId

QString Jellyfin::ViewModel::LatestMediaLoader::parentId
readwrite

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