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

#include <itemmodel.h>

Inheritance diagram for Jellyfin::ViewModel::UserViewsLoader:
Jellyfin::ViewModel::AbstractUserParameterLoader< Model::Item, DTO::BaseItemDto, DTO::BaseItemDtoQueryResult, Jellyfin::Loader::GetUserViewsParams > Jellyfin::LoaderModelLoader< T, D, R, P > Jellyfin::ModelLoader< T > Jellyfin::BaseModelLoader

Signals

void includeExternalContentChanged ()
void includeHiddenChanged ()
void presetViewsChanged ()
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

 UserViewsLoader (QObject *parent=nullptr)
bool includeExternalContent () const
void setIncludeExternalContent (const bool &newValue)
bool includeHidden () const
void setIncludeHidden (const bool &newValue)
QVariantList presetViews () const
void setPresetViews (const QVariantList &newValue)
Public Member Functions inherited from Jellyfin::ViewModel::AbstractUserParameterLoader< Model::Item, DTO::BaseItemDto, DTO::BaseItemDtoQueryResult, Jellyfin::Loader::GetUserViewsParams >
 AbstractUserParameterLoader (Support::Loader< DTO::BaseItemDtoQueryResult, Jellyfin::Loader::GetUserViewsParams > *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 includeExternalContent
bool includeHidden
QVariantList presetViews
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< Model::Item, DTO::BaseItemDto, DTO::BaseItemDtoQueryResult, Jellyfin::Loader::GetUserViewsParams >
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

◆ UserViewsLoader()

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

Member Function Documentation

◆ includeExternalContent()

bool Jellyfin::ViewModel::UserViewsLoader::includeExternalContent ( ) const
inline

◆ includeExternalContentChanged

void Jellyfin::ViewModel::UserViewsLoader::includeExternalContentChanged ( )
signal

◆ includeHidden()

bool Jellyfin::ViewModel::UserViewsLoader::includeHidden ( ) const
inline

◆ includeHiddenChanged

void Jellyfin::ViewModel::UserViewsLoader::includeHiddenChanged ( )
signal

◆ presetViews()

QVariantList Jellyfin::ViewModel::UserViewsLoader::presetViews ( ) const
inline

◆ presetViewsChanged

void Jellyfin::ViewModel::UserViewsLoader::presetViewsChanged ( )
signal

◆ setIncludeExternalContent()

void Jellyfin::ViewModel::UserViewsLoader::setIncludeExternalContent ( const bool & newValue)
inline

◆ setIncludeHidden()

void Jellyfin::ViewModel::UserViewsLoader::setIncludeHidden ( const bool & newValue)
inline

◆ setPresetViews()

void Jellyfin::ViewModel::UserViewsLoader::setPresetViews ( const QVariantList & newValue)
inline

Property Documentation

◆ includeExternalContent

bool Jellyfin::ViewModel::UserViewsLoader::includeExternalContent
readwrite

◆ includeHidden

bool Jellyfin::ViewModel::UserViewsLoader::includeHidden
readwrite

◆ presetViews

QVariantList Jellyfin::ViewModel::UserViewsLoader::presetViews
readwrite

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