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

#include <uploadsubtitledto.h>

Public Member Functions

 UploadSubtitleDto (QString language, QString format, bool isForced, QString data)
 
 UploadSubtitleDto (const UploadSubtitleDto &other)
 
void replaceData (UploadSubtitleDto &other)
 
void setFromJson (QJsonObject source)
 
QJsonObject toJson () const
 
QString language () const
 Gets or sets the subtitle language.
 
void setLanguage (QString newLanguage)
 Gets or sets the subtitle language.
 
QString format () const
 Gets or sets the subtitle format.
 
void setFormat (QString newFormat)
 Gets or sets the subtitle format.
 
bool isForced () const
 Gets or sets a value indicating whether the subtitle is forced.
 
void setIsForced (bool newIsForced)
 Gets or sets a value indicating whether the subtitle is forced.
 
QString data () const
 Gets or sets the subtitle data.
 
void setData (QString newData)
 Gets or sets the subtitle data.
 

Static Public Member Functions

static UploadSubtitleDto fromJson (QJsonObject source)
 

Protected Attributes

QString m_language
 
QString m_format
 
bool m_isForced
 
QString m_data
 

Constructor & Destructor Documentation

◆ UploadSubtitleDto() [1/2]

Jellyfin::DTO::UploadSubtitleDto::UploadSubtitleDto ( QString language,
QString format,
bool isForced,
QString data )

◆ UploadSubtitleDto() [2/2]

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

Member Function Documentation

◆ data()

QString Jellyfin::DTO::UploadSubtitleDto::data ( ) const

Gets or sets the subtitle data.

◆ format()

QString Jellyfin::DTO::UploadSubtitleDto::format ( ) const

Gets or sets the subtitle format.

◆ fromJson()

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

◆ isForced()

bool Jellyfin::DTO::UploadSubtitleDto::isForced ( ) const

Gets or sets a value indicating whether the subtitle is forced.

◆ language()

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

Gets or sets the subtitle language.

◆ replaceData()

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

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

◆ setData()

void Jellyfin::DTO::UploadSubtitleDto::setData ( QString newData)

Gets or sets the subtitle data.

◆ setFormat()

void Jellyfin::DTO::UploadSubtitleDto::setFormat ( QString newFormat)

Gets or sets the subtitle format.

◆ setFromJson()

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

◆ setIsForced()

void Jellyfin::DTO::UploadSubtitleDto::setIsForced ( bool newIsForced)

Gets or sets a value indicating whether the subtitle is forced.

◆ setLanguage()

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

Gets or sets the subtitle language.

◆ toJson()

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

Member Data Documentation

◆ m_data

QString Jellyfin::DTO::UploadSubtitleDto::m_data
protected

◆ m_format

QString Jellyfin::DTO::UploadSubtitleDto::m_format
protected

◆ m_isForced

bool Jellyfin::DTO::UploadSubtitleDto::m_isForced
protected

◆ m_language

QString Jellyfin::DTO::UploadSubtitleDto::m_language
protected

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