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

#include <remoteimageinfo.h>

Public Member Functions

 RemoteImageInfo (ImageType type, RatingType ratingType)
 
 RemoteImageInfo (const RemoteImageInfo &other)
 
void replaceData (RemoteImageInfo &other)
 
void setFromJson (QJsonObject source)
 
QJsonObject toJson () const
 
QString providerName () const
 Gets or sets the name of the provider.
 
void setProviderName (QString newProviderName)
 Gets or sets the name of the provider.
 
bool providerNameNull () const
 
void setProviderNameNull ()
 
QString url () const
 Gets or sets the URL.
 
void setUrl (QString newUrl)
 Gets or sets the URL.
 
bool urlNull () const
 
void setUrlNull ()
 
QString thumbnailUrl () const
 Gets a url used for previewing a smaller version.
 
void setThumbnailUrl (QString newThumbnailUrl)
 Gets a url used for previewing a smaller version.
 
bool thumbnailUrlNull () const
 
void setThumbnailUrlNull ()
 
std::optional< qint32 > height () const
 Gets or sets the height.
 
void setHeight (std::optional< qint32 > newHeight)
 Gets or sets the height.
 
bool heightNull () const
 
void setHeightNull ()
 
std::optional< qint32 > width () const
 Gets or sets the width.
 
void setWidth (std::optional< qint32 > newWidth)
 Gets or sets the width.
 
bool widthNull () const
 
void setWidthNull ()
 
std::optional< double > communityRating () const
 Gets or sets the community rating.
 
void setCommunityRating (std::optional< double > newCommunityRating)
 Gets or sets the community rating.
 
bool communityRatingNull () const
 
void setCommunityRatingNull ()
 
std::optional< qint32 > voteCount () const
 Gets or sets the vote count.
 
void setVoteCount (std::optional< qint32 > newVoteCount)
 Gets or sets the vote count.
 
bool voteCountNull () const
 
void setVoteCountNull ()
 
QString language () const
 Gets or sets the language.
 
void setLanguage (QString newLanguage)
 Gets or sets the language.
 
bool languageNull () const
 
void setLanguageNull ()
 
ImageType type () const
 
void setType (ImageType newType)
 
RatingType ratingType () const
 
void setRatingType (RatingType newRatingType)
 

Static Public Member Functions

static RemoteImageInfo fromJson (QJsonObject source)
 

Protected Attributes

QString m_providerName
 
QString m_url
 
QString m_thumbnailUrl
 
std::optional< qint32 > m_height = std::nullopt
 
std::optional< qint32 > m_width = std::nullopt
 
std::optional< double > m_communityRating = std::nullopt
 
std::optional< qint32 > m_voteCount = std::nullopt
 
QString m_language
 
ImageType m_type
 
RatingType m_ratingType
 

Constructor & Destructor Documentation

◆ RemoteImageInfo() [1/2]

Jellyfin::DTO::RemoteImageInfo::RemoteImageInfo ( ImageType type,
RatingType ratingType )

◆ RemoteImageInfo() [2/2]

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

Member Function Documentation

◆ communityRating()

std::optional< double > Jellyfin::DTO::RemoteImageInfo::communityRating ( ) const

Gets or sets the community rating.

◆ communityRatingNull()

bool Jellyfin::DTO::RemoteImageInfo::communityRatingNull ( ) const

◆ fromJson()

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

◆ height()

std::optional< qint32 > Jellyfin::DTO::RemoteImageInfo::height ( ) const

Gets or sets the height.

◆ heightNull()

bool Jellyfin::DTO::RemoteImageInfo::heightNull ( ) const

◆ language()

QString Jellyfin::DTO::RemoteImageInfo::language ( ) const

Gets or sets the language.

◆ languageNull()

bool Jellyfin::DTO::RemoteImageInfo::languageNull ( ) const

◆ providerName()

QString Jellyfin::DTO::RemoteImageInfo::providerName ( ) const

Gets or sets the name of the provider.

◆ providerNameNull()

bool Jellyfin::DTO::RemoteImageInfo::providerNameNull ( ) const

◆ ratingType()

RatingType Jellyfin::DTO::RemoteImageInfo::ratingType ( ) const

◆ replaceData()

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

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

◆ setCommunityRating()

void Jellyfin::DTO::RemoteImageInfo::setCommunityRating ( std::optional< double > newCommunityRating)

Gets or sets the community rating.

◆ setCommunityRatingNull()

void Jellyfin::DTO::RemoteImageInfo::setCommunityRatingNull ( )

◆ setFromJson()

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

◆ setHeight()

void Jellyfin::DTO::RemoteImageInfo::setHeight ( std::optional< qint32 > newHeight)

Gets or sets the height.

◆ setHeightNull()

void Jellyfin::DTO::RemoteImageInfo::setHeightNull ( )

◆ setLanguage()

void Jellyfin::DTO::RemoteImageInfo::setLanguage ( QString newLanguage)

Gets or sets the language.

◆ setLanguageNull()

void Jellyfin::DTO::RemoteImageInfo::setLanguageNull ( )

◆ setProviderName()

void Jellyfin::DTO::RemoteImageInfo::setProviderName ( QString newProviderName)

Gets or sets the name of the provider.

◆ setProviderNameNull()

void Jellyfin::DTO::RemoteImageInfo::setProviderNameNull ( )

◆ setRatingType()

void Jellyfin::DTO::RemoteImageInfo::setRatingType ( RatingType newRatingType)

◆ setThumbnailUrl()

void Jellyfin::DTO::RemoteImageInfo::setThumbnailUrl ( QString newThumbnailUrl)

Gets a url used for previewing a smaller version.

◆ setThumbnailUrlNull()

void Jellyfin::DTO::RemoteImageInfo::setThumbnailUrlNull ( )

◆ setType()

void Jellyfin::DTO::RemoteImageInfo::setType ( ImageType newType)

◆ setUrl()

void Jellyfin::DTO::RemoteImageInfo::setUrl ( QString newUrl)

Gets or sets the URL.

◆ setUrlNull()

void Jellyfin::DTO::RemoteImageInfo::setUrlNull ( )

◆ setVoteCount()

void Jellyfin::DTO::RemoteImageInfo::setVoteCount ( std::optional< qint32 > newVoteCount)

Gets or sets the vote count.

◆ setVoteCountNull()

void Jellyfin::DTO::RemoteImageInfo::setVoteCountNull ( )

◆ setWidth()

void Jellyfin::DTO::RemoteImageInfo::setWidth ( std::optional< qint32 > newWidth)

Gets or sets the width.

◆ setWidthNull()

void Jellyfin::DTO::RemoteImageInfo::setWidthNull ( )

◆ thumbnailUrl()

QString Jellyfin::DTO::RemoteImageInfo::thumbnailUrl ( ) const

Gets a url used for previewing a smaller version.

◆ thumbnailUrlNull()

bool Jellyfin::DTO::RemoteImageInfo::thumbnailUrlNull ( ) const

◆ toJson()

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

◆ type()

ImageType Jellyfin::DTO::RemoteImageInfo::type ( ) const

◆ url()

QString Jellyfin::DTO::RemoteImageInfo::url ( ) const

Gets or sets the URL.

◆ urlNull()

bool Jellyfin::DTO::RemoteImageInfo::urlNull ( ) const

◆ voteCount()

std::optional< qint32 > Jellyfin::DTO::RemoteImageInfo::voteCount ( ) const

Gets or sets the vote count.

◆ voteCountNull()

bool Jellyfin::DTO::RemoteImageInfo::voteCountNull ( ) const

◆ width()

std::optional< qint32 > Jellyfin::DTO::RemoteImageInfo::width ( ) const

Gets or sets the width.

◆ widthNull()

bool Jellyfin::DTO::RemoteImageInfo::widthNull ( ) const

Member Data Documentation

◆ m_communityRating

std::optional<double> Jellyfin::DTO::RemoteImageInfo::m_communityRating = std::nullopt
protected

◆ m_height

std::optional<qint32> Jellyfin::DTO::RemoteImageInfo::m_height = std::nullopt
protected

◆ m_language

QString Jellyfin::DTO::RemoteImageInfo::m_language
protected

◆ m_providerName

QString Jellyfin::DTO::RemoteImageInfo::m_providerName
protected

◆ m_ratingType

RatingType Jellyfin::DTO::RemoteImageInfo::m_ratingType
protected

◆ m_thumbnailUrl

QString Jellyfin::DTO::RemoteImageInfo::m_thumbnailUrl
protected

◆ m_type

ImageType Jellyfin::DTO::RemoteImageInfo::m_type
protected

◆ m_url

QString Jellyfin::DTO::RemoteImageInfo::m_url
protected

◆ m_voteCount

std::optional<qint32> Jellyfin::DTO::RemoteImageInfo::m_voteCount = std::nullopt
protected

◆ m_width

std::optional<qint32> Jellyfin::DTO::RemoteImageInfo::m_width = std::nullopt
protected

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