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

#include <channelfeatures.h>

Public Member Functions

 ChannelFeatures (QString name, QString jellyfinId, bool canSearch, QList< ChannelMediaType > mediaTypes, QList< ChannelMediaContentType > contentTypes, QList< ChannelItemSortField > defaultSortFields, bool supportsSortOrderToggle, bool supportsLatestMedia, bool canFilter, bool supportsContentDownloading)
 ChannelFeatures (const ChannelFeatures &other)
void replaceData (ChannelFeatures &other)
void setFromJson (QJsonObject source)
QJsonObject toJson () const
QString name () const
 Gets or sets the name.
void setName (QString newName)
 Gets or sets the name.
QString jellyfinId () const
 Gets or sets the identifier.
void setJellyfinId (QString newJellyfinId)
 Gets or sets the identifier.
bool canSearch () const
 Gets or sets a value indicating whether this instance can search.
void setCanSearch (bool newCanSearch)
 Gets or sets a value indicating whether this instance can search.
QList< ChannelMediaTypemediaTypes () const
 Gets or sets the media types.
void setMediaTypes (QList< ChannelMediaType > newMediaTypes)
 Gets or sets the media types.
QList< ChannelMediaContentTypecontentTypes () const
 Gets or sets the content types.
void setContentTypes (QList< ChannelMediaContentType > newContentTypes)
 Gets or sets the content types.
std::optional< qint32 > maxPageSize () const
 Gets or sets the maximum number of records the channel allows retrieving at a time.
void setMaxPageSize (std::optional< qint32 > newMaxPageSize)
 Gets or sets the maximum number of records the channel allows retrieving at a time.
bool maxPageSizeNull () const
void setMaxPageSizeNull ()
std::optional< qint32 > autoRefreshLevels () const
 Gets or sets the automatic refresh levels.
void setAutoRefreshLevels (std::optional< qint32 > newAutoRefreshLevels)
 Gets or sets the automatic refresh levels.
bool autoRefreshLevelsNull () const
void setAutoRefreshLevelsNull ()
QList< ChannelItemSortFielddefaultSortFields () const
 Gets or sets the default sort orders.
void setDefaultSortFields (QList< ChannelItemSortField > newDefaultSortFields)
 Gets or sets the default sort orders.
bool supportsSortOrderToggle () const
 Gets or sets a value indicating whether a sort ascending/descending toggle is supported.
void setSupportsSortOrderToggle (bool newSupportsSortOrderToggle)
 Gets or sets a value indicating whether a sort ascending/descending toggle is supported.
bool supportsLatestMedia () const
 Gets or sets a value indicating whether [supports latest media].
void setSupportsLatestMedia (bool newSupportsLatestMedia)
 Gets or sets a value indicating whether [supports latest media].
bool canFilter () const
 Gets or sets a value indicating whether this instance can filter.
void setCanFilter (bool newCanFilter)
 Gets or sets a value indicating whether this instance can filter.
bool supportsContentDownloading () const
 Gets or sets a value indicating whether [supports content downloading].
void setSupportsContentDownloading (bool newSupportsContentDownloading)
 Gets or sets a value indicating whether [supports content downloading].

Static Public Member Functions

static ChannelFeatures fromJson (QJsonObject source)

Protected Attributes

QString m_name
QString m_jellyfinId
bool m_canSearch
QList< ChannelMediaTypem_mediaTypes
QList< ChannelMediaContentTypem_contentTypes
std::optional< qint32 > m_maxPageSize = std::nullopt
std::optional< qint32 > m_autoRefreshLevels = std::nullopt
QList< ChannelItemSortFieldm_defaultSortFields
bool m_supportsSortOrderToggle
bool m_supportsLatestMedia
bool m_canFilter
bool m_supportsContentDownloading

Constructor & Destructor Documentation

◆ ChannelFeatures() [1/2]

Jellyfin::DTO::ChannelFeatures::ChannelFeatures ( QString name,
QString jellyfinId,
bool canSearch,
QList< ChannelMediaType > mediaTypes,
QList< ChannelMediaContentType > contentTypes,
QList< ChannelItemSortField > defaultSortFields,
bool supportsSortOrderToggle,
bool supportsLatestMedia,
bool canFilter,
bool supportsContentDownloading )

◆ ChannelFeatures() [2/2]

Jellyfin::DTO::ChannelFeatures::ChannelFeatures ( const ChannelFeatures & other)

Member Function Documentation

◆ autoRefreshLevels()

std::optional< qint32 > Jellyfin::DTO::ChannelFeatures::autoRefreshLevels ( ) const

Gets or sets the automatic refresh levels.

◆ autoRefreshLevelsNull()

bool Jellyfin::DTO::ChannelFeatures::autoRefreshLevelsNull ( ) const

◆ canFilter()

bool Jellyfin::DTO::ChannelFeatures::canFilter ( ) const

Gets or sets a value indicating whether this instance can filter.

◆ canSearch()

bool Jellyfin::DTO::ChannelFeatures::canSearch ( ) const

Gets or sets a value indicating whether this instance can search.

◆ contentTypes()

QList< ChannelMediaContentType > Jellyfin::DTO::ChannelFeatures::contentTypes ( ) const

Gets or sets the content types.

◆ defaultSortFields()

QList< ChannelItemSortField > Jellyfin::DTO::ChannelFeatures::defaultSortFields ( ) const

Gets or sets the default sort orders.

◆ fromJson()

ChannelFeatures Jellyfin::DTO::ChannelFeatures::fromJson ( QJsonObject source)
static

◆ jellyfinId()

QString Jellyfin::DTO::ChannelFeatures::jellyfinId ( ) const

Gets or sets the identifier.

◆ maxPageSize()

std::optional< qint32 > Jellyfin::DTO::ChannelFeatures::maxPageSize ( ) const

Gets or sets the maximum number of records the channel allows retrieving at a time.

◆ maxPageSizeNull()

bool Jellyfin::DTO::ChannelFeatures::maxPageSizeNull ( ) const

◆ mediaTypes()

QList< ChannelMediaType > Jellyfin::DTO::ChannelFeatures::mediaTypes ( ) const

Gets or sets the media types.

◆ name()

QString Jellyfin::DTO::ChannelFeatures::name ( ) const

Gets or sets the name.

◆ replaceData()

void Jellyfin::DTO::ChannelFeatures::replaceData ( ChannelFeatures & other)

Replaces the data being hold by this class with that of the other.

◆ setAutoRefreshLevels()

void Jellyfin::DTO::ChannelFeatures::setAutoRefreshLevels ( std::optional< qint32 > newAutoRefreshLevels)

Gets or sets the automatic refresh levels.

◆ setAutoRefreshLevelsNull()

void Jellyfin::DTO::ChannelFeatures::setAutoRefreshLevelsNull ( )

◆ setCanFilter()

void Jellyfin::DTO::ChannelFeatures::setCanFilter ( bool newCanFilter)

Gets or sets a value indicating whether this instance can filter.

◆ setCanSearch()

void Jellyfin::DTO::ChannelFeatures::setCanSearch ( bool newCanSearch)

Gets or sets a value indicating whether this instance can search.

◆ setContentTypes()

void Jellyfin::DTO::ChannelFeatures::setContentTypes ( QList< ChannelMediaContentType > newContentTypes)

Gets or sets the content types.

◆ setDefaultSortFields()

void Jellyfin::DTO::ChannelFeatures::setDefaultSortFields ( QList< ChannelItemSortField > newDefaultSortFields)

Gets or sets the default sort orders.

◆ setFromJson()

void Jellyfin::DTO::ChannelFeatures::setFromJson ( QJsonObject source)

◆ setJellyfinId()

void Jellyfin::DTO::ChannelFeatures::setJellyfinId ( QString newJellyfinId)

Gets or sets the identifier.

◆ setMaxPageSize()

void Jellyfin::DTO::ChannelFeatures::setMaxPageSize ( std::optional< qint32 > newMaxPageSize)

Gets or sets the maximum number of records the channel allows retrieving at a time.

◆ setMaxPageSizeNull()

void Jellyfin::DTO::ChannelFeatures::setMaxPageSizeNull ( )

◆ setMediaTypes()

void Jellyfin::DTO::ChannelFeatures::setMediaTypes ( QList< ChannelMediaType > newMediaTypes)

Gets or sets the media types.

◆ setName()

void Jellyfin::DTO::ChannelFeatures::setName ( QString newName)

Gets or sets the name.

◆ setSupportsContentDownloading()

void Jellyfin::DTO::ChannelFeatures::setSupportsContentDownloading ( bool newSupportsContentDownloading)

Gets or sets a value indicating whether [supports content downloading].

◆ setSupportsLatestMedia()

void Jellyfin::DTO::ChannelFeatures::setSupportsLatestMedia ( bool newSupportsLatestMedia)

Gets or sets a value indicating whether [supports latest media].

◆ setSupportsSortOrderToggle()

void Jellyfin::DTO::ChannelFeatures::setSupportsSortOrderToggle ( bool newSupportsSortOrderToggle)

Gets or sets a value indicating whether a sort ascending/descending toggle is supported.

◆ supportsContentDownloading()

bool Jellyfin::DTO::ChannelFeatures::supportsContentDownloading ( ) const

Gets or sets a value indicating whether [supports content downloading].

◆ supportsLatestMedia()

bool Jellyfin::DTO::ChannelFeatures::supportsLatestMedia ( ) const

Gets or sets a value indicating whether [supports latest media].

◆ supportsSortOrderToggle()

bool Jellyfin::DTO::ChannelFeatures::supportsSortOrderToggle ( ) const

Gets or sets a value indicating whether a sort ascending/descending toggle is supported.

◆ toJson()

QJsonObject Jellyfin::DTO::ChannelFeatures::toJson ( ) const

Member Data Documentation

◆ m_autoRefreshLevels

std::optional<qint32> Jellyfin::DTO::ChannelFeatures::m_autoRefreshLevels = std::nullopt
protected

◆ m_canFilter

bool Jellyfin::DTO::ChannelFeatures::m_canFilter
protected

◆ m_canSearch

bool Jellyfin::DTO::ChannelFeatures::m_canSearch
protected

◆ m_contentTypes

QList<ChannelMediaContentType> Jellyfin::DTO::ChannelFeatures::m_contentTypes
protected

◆ m_defaultSortFields

QList<ChannelItemSortField> Jellyfin::DTO::ChannelFeatures::m_defaultSortFields
protected

◆ m_jellyfinId

QString Jellyfin::DTO::ChannelFeatures::m_jellyfinId
protected

◆ m_maxPageSize

std::optional<qint32> Jellyfin::DTO::ChannelFeatures::m_maxPageSize = std::nullopt
protected

◆ m_mediaTypes

QList<ChannelMediaType> Jellyfin::DTO::ChannelFeatures::m_mediaTypes
protected

◆ m_name

QString Jellyfin::DTO::ChannelFeatures::m_name
protected

◆ m_supportsContentDownloading

bool Jellyfin::DTO::ChannelFeatures::m_supportsContentDownloading
protected

◆ m_supportsLatestMedia

bool Jellyfin::DTO::ChannelFeatures::m_supportsLatestMedia
protected

◆ m_supportsSortOrderToggle

bool Jellyfin::DTO::ChannelFeatures::m_supportsSortOrderToggle
protected

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