![]() |
Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
|
#include <itemmodel.h>
Signals | |
| void | typeChanged () |
| void | isMovieChanged () |
| void | isSeriesChanged () |
| void | isNewsChanged () |
| void | isKidsChanged () |
| void | isSportsChanged () |
| void | isFavoriteChanged () |
| void | isLikedChanged () |
| void | isDislikedChanged () |
| void | enableImagesChanged () |
| void | imageTypeLimitChanged () |
| void | enableImageTypesChanged () |
| void | fieldsChanged () |
| void | enableUserDataChanged () |
| void | sortByChanged () |
| void | sortOrderChanged () |
| void | enableFavoriteSortingChanged () |
| void | addCurrentProgramChanged () |
| 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 | |
| LiveTvChannelsLoader (QObject *parent=nullptr) | |
| Jellyfin::DTO::ChannelTypeClass::Value | type () const |
| void | setType (const Jellyfin::DTO::ChannelTypeClass::Value &newValue) |
| bool | isMovie () const |
| void | setIsMovie (const bool &newValue) |
| bool | isSeries () const |
| void | setIsSeries (const bool &newValue) |
| bool | isNews () const |
| void | setIsNews (const bool &newValue) |
| bool | isKids () const |
| void | setIsKids (const bool &newValue) |
| bool | isSports () const |
| void | setIsSports (const bool &newValue) |
| bool | isFavorite () const |
| void | setIsFavorite (const bool &newValue) |
| bool | isLiked () const |
| void | setIsLiked (const bool &newValue) |
| bool | isDisliked () const |
| void | setIsDisliked (const bool &newValue) |
| bool | enableImages () const |
| void | setEnableImages (const bool &newValue) |
| int | imageTypeLimit () const |
| void | setImageTypeLimit (const int &newValue) |
| QVariantList | enableImageTypes () const |
| void | setEnableImageTypes (const QVariantList &newValue) |
| QVariantList | fields () const |
| void | setFields (const QVariantList &newValue) |
| bool | enableUserData () const |
| void | setEnableUserData (const bool &newValue) |
| QVariantList | sortBy () const |
| void | setSortBy (const QVariantList &newValue) |
| Jellyfin::DTO::SortOrderClass::Value | sortOrder () const |
| void | setSortOrder (const Jellyfin::DTO::SortOrderClass::Value &newValue) |
| bool | enableFavoriteSorting () const |
| void | setEnableFavoriteSorting (const bool &newValue) |
| bool | addCurrentProgram () const |
| void | setAddCurrentProgram (const bool &newValue) |
| Public Member Functions inherited from Jellyfin::ViewModel::AbstractUserParameterLoader< Model::Item, DTO::BaseItemDto, DTO::BaseItemDtoQueryResult, Jellyfin::Loader::GetLiveTvChannelsParams > | |
| AbstractUserParameterLoader (Support::Loader< DTO::BaseItemDtoQueryResult, Jellyfin::Loader::GetLiveTvChannelsParams > *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 () |
Properties | |
| Jellyfin::DTO::ChannelTypeClass::Value | type |
| bool | isMovie |
| bool | isSeries |
| bool | isNews |
| bool | isKids |
| bool | isSports |
| bool | isFavorite |
| bool | isLiked |
| bool | isDisliked |
| bool | enableImages |
| int | imageTypeLimit |
| QVariantList | enableImageTypes |
| QVariantList | fields |
| bool | enableUserData |
| QVariantList | sortBy |
| Jellyfin::DTO::SortOrderClass::Value | sortOrder |
| bool | enableFavoriteSorting |
| bool | addCurrentProgram |
| Properties inherited from Jellyfin::BaseModelLoader | |
| ApiClient * | apiClient |
| 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::GetLiveTvChannelsParams > | |
| 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 |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |