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

#include <imageinfo.h>

Public Member Functions

 ImageInfo (ImageType imageType, qint64 size)
 
 ImageInfo (const ImageInfo &other)
 
void replaceData (ImageInfo &other)
 
void setFromJson (QJsonObject source)
 
QJsonObject toJson () const
 
ImageType imageType () const
 
void setImageType (ImageType newImageType)
 
std::optional< qint32 > imageIndex () const
 Gets or sets the index of the image.
 
void setImageIndex (std::optional< qint32 > newImageIndex)
 Gets or sets the index of the image.
 
bool imageIndexNull () const
 
void setImageIndexNull ()
 
QString imageTag () const
 Gets or sets the image tag.
 
void setImageTag (QString newImageTag)
 Gets or sets the image tag.
 
bool imageTagNull () const
 
void setImageTagNull ()
 
QString path () const
 Gets or sets the path.
 
void setPath (QString newPath)
 Gets or sets the path.
 
bool pathNull () const
 
void setPathNull ()
 
QString blurHash () const
 Gets or sets the blurhash.
 
void setBlurHash (QString newBlurHash)
 Gets or sets the blurhash.
 
bool blurHashNull () const
 
void setBlurHashNull ()
 
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 ()
 
qint64 size () const
 Gets or sets the size.
 
void setSize (qint64 newSize)
 Gets or sets the size.
 

Static Public Member Functions

static ImageInfo fromJson (QJsonObject source)
 

Protected Attributes

ImageType m_imageType
 
std::optional< qint32 > m_imageIndex = std::nullopt
 
QString m_imageTag
 
QString m_path
 
QString m_blurHash
 
std::optional< qint32 > m_height = std::nullopt
 
std::optional< qint32 > m_width = std::nullopt
 
qint64 m_size
 

Constructor & Destructor Documentation

◆ ImageInfo() [1/2]

Jellyfin::DTO::ImageInfo::ImageInfo ( ImageType imageType,
qint64 size )

◆ ImageInfo() [2/2]

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

Member Function Documentation

◆ blurHash()

QString Jellyfin::DTO::ImageInfo::blurHash ( ) const

Gets or sets the blurhash.

◆ blurHashNull()

bool Jellyfin::DTO::ImageInfo::blurHashNull ( ) const

◆ fromJson()

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

◆ height()

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

Gets or sets the height.

◆ heightNull()

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

◆ imageIndex()

std::optional< qint32 > Jellyfin::DTO::ImageInfo::imageIndex ( ) const

Gets or sets the index of the image.

◆ imageIndexNull()

bool Jellyfin::DTO::ImageInfo::imageIndexNull ( ) const

◆ imageTag()

QString Jellyfin::DTO::ImageInfo::imageTag ( ) const

Gets or sets the image tag.

◆ imageTagNull()

bool Jellyfin::DTO::ImageInfo::imageTagNull ( ) const

◆ imageType()

ImageType Jellyfin::DTO::ImageInfo::imageType ( ) const

◆ path()

QString Jellyfin::DTO::ImageInfo::path ( ) const

Gets or sets the path.

◆ pathNull()

bool Jellyfin::DTO::ImageInfo::pathNull ( ) const

◆ replaceData()

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

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

◆ setBlurHash()

void Jellyfin::DTO::ImageInfo::setBlurHash ( QString newBlurHash)

Gets or sets the blurhash.

◆ setBlurHashNull()

void Jellyfin::DTO::ImageInfo::setBlurHashNull ( )

◆ setFromJson()

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

◆ setHeight()

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

Gets or sets the height.

◆ setHeightNull()

void Jellyfin::DTO::ImageInfo::setHeightNull ( )

◆ setImageIndex()

void Jellyfin::DTO::ImageInfo::setImageIndex ( std::optional< qint32 > newImageIndex)

Gets or sets the index of the image.

◆ setImageIndexNull()

void Jellyfin::DTO::ImageInfo::setImageIndexNull ( )

◆ setImageTag()

void Jellyfin::DTO::ImageInfo::setImageTag ( QString newImageTag)

Gets or sets the image tag.

◆ setImageTagNull()

void Jellyfin::DTO::ImageInfo::setImageTagNull ( )

◆ setImageType()

void Jellyfin::DTO::ImageInfo::setImageType ( ImageType newImageType)

◆ setPath()

void Jellyfin::DTO::ImageInfo::setPath ( QString newPath)

Gets or sets the path.

◆ setPathNull()

void Jellyfin::DTO::ImageInfo::setPathNull ( )

◆ setSize()

void Jellyfin::DTO::ImageInfo::setSize ( qint64 newSize)

Gets or sets the size.

◆ setWidth()

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

Gets or sets the width.

◆ setWidthNull()

void Jellyfin::DTO::ImageInfo::setWidthNull ( )

◆ size()

qint64 Jellyfin::DTO::ImageInfo::size ( ) const

Gets or sets the size.

◆ toJson()

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

◆ width()

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

Gets or sets the width.

◆ widthNull()

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

Member Data Documentation

◆ m_blurHash

QString Jellyfin::DTO::ImageInfo::m_blurHash
protected

◆ m_height

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

◆ m_imageIndex

std::optional<qint32> Jellyfin::DTO::ImageInfo::m_imageIndex = std::nullopt
protected

◆ m_imageTag

QString Jellyfin::DTO::ImageInfo::m_imageTag
protected

◆ m_imageType

ImageType Jellyfin::DTO::ImageInfo::m_imageType
protected

◆ m_path

QString Jellyfin::DTO::ImageInfo::m_path
protected

◆ m_size

qint64 Jellyfin::DTO::ImageInfo::m_size
protected

◆ m_width

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

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