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

#include <itemmodel.h>

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

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 (Jellyfin::DTO::ChannelTypeClass::Value newValue)
 
bool isMovie () const
 
void setIsMovie (bool newValue)
 
bool isSeries () const
 
void setIsSeries (bool newValue)
 
bool isNews () const
 
void setIsNews (bool newValue)
 
bool isKids () const
 
void setIsKids (bool newValue)
 
bool isSports () const
 
void setIsSports (bool newValue)
 
bool isFavorite () const
 
void setIsFavorite (bool newValue)
 
bool isLiked () const
 
void setIsLiked (bool newValue)
 
bool isDisliked () const
 
void setIsDisliked (bool newValue)
 
bool enableImages () const
 
void setEnableImages (bool newValue)
 
int imageTypeLimit () const
 
void setImageTypeLimit (int newValue)
 
QVariantList enableImageTypes () const
 
void setEnableImageTypes (const QVariantList &newValue)
 
QVariantList fields () const
 
void setFields (const QVariantList &newValue)
 
bool enableUserData () const
 
void setEnableUserData (bool newValue)
 
QStringList sortBy () const
 
void setSortBy (QStringList newValue)
 
Jellyfin::DTO::SortOrderClass::Value sortOrder () const
 
void setSortOrder (Jellyfin::DTO::SortOrderClass::Value newValue)
 
bool enableFavoriteSorting () const
 
void setEnableFavoriteSorting (bool newValue)
 
bool addCurrentProgram () const
 
void setAddCurrentProgram (bool 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

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
 
QStringList sortBy
 
Jellyfin::DTO::SortOrderClass::Value sortOrder
 
bool enableFavoriteSorting
 
bool addCurrentProgram
 
- 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

◆ LiveTvChannelsLoader()

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

Member Function Documentation

◆ addCurrentProgram()

bool Jellyfin::ViewModel::LiveTvChannelsLoader::addCurrentProgram ( ) const
inline

◆ addCurrentProgramChanged

void Jellyfin::ViewModel::LiveTvChannelsLoader::addCurrentProgramChanged ( )
signal

◆ enableFavoriteSorting()

bool Jellyfin::ViewModel::LiveTvChannelsLoader::enableFavoriteSorting ( ) const
inline

◆ enableFavoriteSortingChanged

void Jellyfin::ViewModel::LiveTvChannelsLoader::enableFavoriteSortingChanged ( )
signal

◆ enableImages()

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

◆ enableImagesChanged

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

◆ enableImageTypes()

QVariantList Jellyfin::ViewModel::LiveTvChannelsLoader::enableImageTypes ( ) const
inline

◆ enableImageTypesChanged

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

◆ enableUserData()

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

◆ enableUserDataChanged

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

◆ fields()

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

◆ fieldsChanged

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

◆ imageTypeLimit()

int Jellyfin::ViewModel::LiveTvChannelsLoader::imageTypeLimit ( ) const
inline

◆ imageTypeLimitChanged

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

◆ isDisliked()

bool Jellyfin::ViewModel::LiveTvChannelsLoader::isDisliked ( ) const
inline

◆ isDislikedChanged

void Jellyfin::ViewModel::LiveTvChannelsLoader::isDislikedChanged ( )
signal

◆ isFavorite()

bool Jellyfin::ViewModel::LiveTvChannelsLoader::isFavorite ( ) const
inline

◆ isFavoriteChanged

void Jellyfin::ViewModel::LiveTvChannelsLoader::isFavoriteChanged ( )
signal

◆ isKids()

bool Jellyfin::ViewModel::LiveTvChannelsLoader::isKids ( ) const
inline

◆ isKidsChanged

void Jellyfin::ViewModel::LiveTvChannelsLoader::isKidsChanged ( )
signal

◆ isLiked()

bool Jellyfin::ViewModel::LiveTvChannelsLoader::isLiked ( ) const
inline

◆ isLikedChanged

void Jellyfin::ViewModel::LiveTvChannelsLoader::isLikedChanged ( )
signal

◆ isMovie()

bool Jellyfin::ViewModel::LiveTvChannelsLoader::isMovie ( ) const
inline

◆ isMovieChanged

void Jellyfin::ViewModel::LiveTvChannelsLoader::isMovieChanged ( )
signal

◆ isNews()

bool Jellyfin::ViewModel::LiveTvChannelsLoader::isNews ( ) const
inline

◆ isNewsChanged

void Jellyfin::ViewModel::LiveTvChannelsLoader::isNewsChanged ( )
signal

◆ isSeries()

bool Jellyfin::ViewModel::LiveTvChannelsLoader::isSeries ( ) const
inline

◆ isSeriesChanged

void Jellyfin::ViewModel::LiveTvChannelsLoader::isSeriesChanged ( )
signal

◆ isSports()

bool Jellyfin::ViewModel::LiveTvChannelsLoader::isSports ( ) const
inline

◆ isSportsChanged

void Jellyfin::ViewModel::LiveTvChannelsLoader::isSportsChanged ( )
signal

◆ setAddCurrentProgram()

void Jellyfin::ViewModel::LiveTvChannelsLoader::setAddCurrentProgram ( bool newValue)
inline

◆ setEnableFavoriteSorting()

void Jellyfin::ViewModel::LiveTvChannelsLoader::setEnableFavoriteSorting ( bool newValue)
inline

◆ setEnableImages()

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

◆ setEnableImageTypes()

void Jellyfin::ViewModel::LiveTvChannelsLoader::setEnableImageTypes ( const QVariantList & newValue)
inline

◆ setEnableUserData()

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

◆ setFields()

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

◆ setImageTypeLimit()

void Jellyfin::ViewModel::LiveTvChannelsLoader::setImageTypeLimit ( int newValue)
inline

◆ setIsDisliked()

void Jellyfin::ViewModel::LiveTvChannelsLoader::setIsDisliked ( bool newValue)
inline

◆ setIsFavorite()

void Jellyfin::ViewModel::LiveTvChannelsLoader::setIsFavorite ( bool newValue)
inline

◆ setIsKids()

void Jellyfin::ViewModel::LiveTvChannelsLoader::setIsKids ( bool newValue)
inline

◆ setIsLiked()

void Jellyfin::ViewModel::LiveTvChannelsLoader::setIsLiked ( bool newValue)
inline

◆ setIsMovie()

void Jellyfin::ViewModel::LiveTvChannelsLoader::setIsMovie ( bool newValue)
inline

◆ setIsNews()

void Jellyfin::ViewModel::LiveTvChannelsLoader::setIsNews ( bool newValue)
inline

◆ setIsSeries()

void Jellyfin::ViewModel::LiveTvChannelsLoader::setIsSeries ( bool newValue)
inline

◆ setIsSports()

void Jellyfin::ViewModel::LiveTvChannelsLoader::setIsSports ( bool newValue)
inline

◆ setSortBy()

void Jellyfin::ViewModel::LiveTvChannelsLoader::setSortBy ( QStringList newValue)
inline

◆ setSortOrder()

void Jellyfin::ViewModel::LiveTvChannelsLoader::setSortOrder ( Jellyfin::DTO::SortOrderClass::Value newValue)
inline

◆ setType()

void Jellyfin::ViewModel::LiveTvChannelsLoader::setType ( Jellyfin::DTO::ChannelTypeClass::Value newValue)
inline

◆ sortBy()

QStringList Jellyfin::ViewModel::LiveTvChannelsLoader::sortBy ( ) const
inline

◆ sortByChanged

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

◆ sortOrder()

Jellyfin::DTO::SortOrderClass::Value Jellyfin::ViewModel::LiveTvChannelsLoader::sortOrder ( ) const
inline

◆ sortOrderChanged

void Jellyfin::ViewModel::LiveTvChannelsLoader::sortOrderChanged ( )
signal

◆ type()

Jellyfin::DTO::ChannelTypeClass::Value Jellyfin::ViewModel::LiveTvChannelsLoader::type ( ) const
inline

◆ typeChanged

void Jellyfin::ViewModel::LiveTvChannelsLoader::typeChanged ( )
signal

Property Documentation

◆ addCurrentProgram

bool Jellyfin::ViewModel::LiveTvChannelsLoader::addCurrentProgram
readwrite

◆ enableFavoriteSorting

bool Jellyfin::ViewModel::LiveTvChannelsLoader::enableFavoriteSorting
readwrite

◆ enableImages

bool Jellyfin::ViewModel::LiveTvChannelsLoader::enableImages
readwrite

◆ enableImageTypes

QVariantList Jellyfin::ViewModel::LiveTvChannelsLoader::enableImageTypes
readwrite

◆ enableUserData

bool Jellyfin::ViewModel::LiveTvChannelsLoader::enableUserData
readwrite

◆ fields

QVariantList Jellyfin::ViewModel::LiveTvChannelsLoader::fields
readwrite

◆ imageTypeLimit

int Jellyfin::ViewModel::LiveTvChannelsLoader::imageTypeLimit
readwrite

◆ isDisliked

bool Jellyfin::ViewModel::LiveTvChannelsLoader::isDisliked
readwrite

◆ isFavorite

bool Jellyfin::ViewModel::LiveTvChannelsLoader::isFavorite
readwrite

◆ isKids

bool Jellyfin::ViewModel::LiveTvChannelsLoader::isKids
readwrite

◆ isLiked

bool Jellyfin::ViewModel::LiveTvChannelsLoader::isLiked
readwrite

◆ isMovie

bool Jellyfin::ViewModel::LiveTvChannelsLoader::isMovie
readwrite

◆ isNews

bool Jellyfin::ViewModel::LiveTvChannelsLoader::isNews
readwrite

◆ isSeries

bool Jellyfin::ViewModel::LiveTvChannelsLoader::isSeries
readwrite

◆ isSports

bool Jellyfin::ViewModel::LiveTvChannelsLoader::isSports
readwrite

◆ sortBy

QStringList Jellyfin::ViewModel::LiveTvChannelsLoader::sortBy
readwrite

◆ sortOrder

Jellyfin::DTO::SortOrderClass::Value Jellyfin::ViewModel::LiveTvChannelsLoader::sortOrder
readwrite

◆ type

Jellyfin::DTO::ChannelTypeClass::Value Jellyfin::ViewModel::LiveTvChannelsLoader::type
readwrite

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