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

#include <imageoption.h>

Public Member Functions

 ImageOption (ImageType type, qint32 limit, qint32 minWidth)
 
 ImageOption (const ImageOption &other)
 
void replaceData (ImageOption &other)
 
void setFromJson (QJsonObject source)
 
QJsonObject toJson () const
 
ImageType type () const
 
void setType (ImageType newType)
 
qint32 limit () const
 Gets or sets the limit.
 
void setLimit (qint32 newLimit)
 Gets or sets the limit.
 
qint32 minWidth () const
 Gets or sets the minimum width.
 
void setMinWidth (qint32 newMinWidth)
 Gets or sets the minimum width.
 

Static Public Member Functions

static ImageOption fromJson (QJsonObject source)
 

Protected Attributes

ImageType m_type
 
qint32 m_limit
 
qint32 m_minWidth
 

Constructor & Destructor Documentation

◆ ImageOption() [1/2]

Jellyfin::DTO::ImageOption::ImageOption ( ImageType type,
qint32 limit,
qint32 minWidth )

◆ ImageOption() [2/2]

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

Member Function Documentation

◆ fromJson()

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

◆ limit()

qint32 Jellyfin::DTO::ImageOption::limit ( ) const

Gets or sets the limit.

◆ minWidth()

qint32 Jellyfin::DTO::ImageOption::minWidth ( ) const

Gets or sets the minimum width.

◆ replaceData()

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

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

◆ setFromJson()

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

◆ setLimit()

void Jellyfin::DTO::ImageOption::setLimit ( qint32 newLimit)

Gets or sets the limit.

◆ setMinWidth()

void Jellyfin::DTO::ImageOption::setMinWidth ( qint32 newMinWidth)

Gets or sets the minimum width.

◆ setType()

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

◆ toJson()

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

◆ type()

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

Member Data Documentation

◆ m_limit

qint32 Jellyfin::DTO::ImageOption::m_limit
protected

◆ m_minWidth

qint32 Jellyfin::DTO::ImageOption::m_minWidth
protected

◆ m_type

ImageType Jellyfin::DTO::ImageOption::m_type
protected

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