Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
|
#include <itemmodel.h>
Public Member Functions | |
UserItemsLoader (QObject *parent=nullptr) | |
QString | adjacentTo () const |
void | setAdjacentTo (QString newValue) |
QStringList | albumArtistIds () const |
void | setAlbumArtistIds (QStringList newValue) |
QStringList | albumIds () const |
void | setAlbumIds (QStringList newValue) |
QStringList | albums () const |
void | setAlbums (QStringList newValue) |
QStringList | artistIds () const |
void | setArtistIds (QStringList newValue) |
QStringList | artists () const |
void | setArtists (QStringList newValue) |
bool | collapseBoxSetItems () const |
void | setCollapseBoxSetItems (bool newValue) |
QStringList | contributingArtistIds () const |
void | setContributingArtistIds (QStringList newValue) |
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 | excludeArtistIds () const |
void | setExcludeArtistIds (QStringList newValue) |
QStringList | excludeItemIds () const |
void | setExcludeItemIds (QStringList newValue) |
QStringList | excludeItemTypes () const |
void | setExcludeItemTypes (QStringList newValue) |
QList< Jellyfin::DTO::LocationTypeClass::Value > | excludeLocationTypes () const |
void | setExcludeLocationTypes (QList< Jellyfin::DTO::LocationTypeClass::Value > newValue) |
QVariantList | fields () const |
void | setFields (const QVariantList &newValue) |
QVariantList | filters () const |
void | setFilters (const QVariantList &newValue) |
QStringList | genreIds () const |
void | setGenreIds (QStringList newValue) |
QStringList | genres () const |
void | setGenres (QStringList newValue) |
bool | hasImdbId () const |
void | setHasImdbId (bool newValue) |
bool | hasOfficialRating () const |
void | setHasOfficialRating (bool newValue) |
bool | hasOverview () const |
void | setHasOverview (bool newValue) |
bool | hasParentalRating () const |
void | setHasParentalRating (bool newValue) |
bool | hasSpecialFeature () const |
void | setHasSpecialFeature (bool newValue) |
bool | hasSubtitles () const |
void | setHasSubtitles (bool newValue) |
bool | hasThemeSong () const |
void | setHasThemeSong (bool newValue) |
bool | hasThemeVideo () const |
void | setHasThemeVideo (bool newValue) |
bool | hasTmdbId () const |
void | setHasTmdbId (bool newValue) |
bool | hasTrailer () const |
void | setHasTrailer (bool newValue) |
bool | hasTvdbId () const |
void | setHasTvdbId (bool newValue) |
QStringList | ids () const |
void | setIds (QStringList newValue) |
qint32 | imageTypeLimit () const |
void | setImageTypeLimit (qint32 newValue) |
QVariantList | imageTypes () const |
void | setImageTypes (const QVariantList &newValue) |
QStringList | includeItemTypes () const |
void | setIncludeItemTypes (QStringList newValue) |
bool | is3D () const |
void | setIs3D (bool newValue) |
bool | is4K () const |
void | setIs4K (bool newValue) |
bool | isFavorite () const |
void | setIsFavorite (bool newValue) |
bool | isHd () const |
void | setIsHd (bool newValue) |
bool | isLocked () const |
void | setIsLocked (bool newValue) |
bool | isMissing () const |
void | setIsMissing (bool newValue) |
bool | isPlaceHolder () const |
void | setIsPlaceHolder (bool newValue) |
bool | isPlayed () const |
void | setIsPlayed (bool newValue) |
bool | isUnaired () const |
void | setIsUnaired (bool newValue) |
QVariantList | locationTypes () const |
void | setLocationTypes (const QVariantList &newValue) |
qint32 | maxHeight () const |
void | setMaxHeight (qint32 newValue) |
QString | maxOfficialRating () const |
void | setMaxOfficialRating (QString newValue) |
QDateTime | maxPremiereDate () const |
void | setMaxPremiereDate (QDateTime newValue) |
qint32 | maxWidth () const |
void | setMaxWidth (qint32 newValue) |
QStringList | mediaTypes () const |
void | setMediaTypes (QStringList newValue) |
qint32 | minHeight () const |
void | setMinHeight (qint32 newValue) |
QString | minOfficialRating () const |
void | setMinOfficialRating (QString newValue) |
QDateTime | minPremiereDate () const |
void | setMinPremiereDate (QDateTime newValue) |
qint32 | minWidth () const |
void | setMinWidth (qint32 newValue) |
QString | sortBy () const |
void | setSortBy (QString newValue) |
QString | sortOrder () const |
void | setSortOrder (QString newValue) |
QStringList | tags () const |
void | setTags (QStringList newValue) |
QList< qint32 > | years () const |
void | setYears (QList< qint32 > newValue) |
QString | parentId () const |
void | setParentId (QString newValue) |
bool | recursive () const |
void | setRecursive (bool 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) | |
ApiClient * | apiClient () 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 () |
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 |
P | 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 |
ApiClient * | m_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 |
|
explicit |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |