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

#include <directplayprofile.h>

Public Member Functions

 DirectPlayProfile (QString container, DlnaProfileType type)
 DirectPlayProfile (const DirectPlayProfile &other)
void replaceData (DirectPlayProfile &other)
void setFromJson (QJsonObject source)
QJsonObject toJson () const
QString container () const
 Gets or sets the container.
void setContainer (QString newContainer)
 Gets or sets the container.
QString audioCodec () const
 Gets or sets the audio codec.
void setAudioCodec (QString newAudioCodec)
 Gets or sets the audio codec.
bool audioCodecNull () const
void setAudioCodecNull ()
QString videoCodec () const
 Gets or sets the video codec.
void setVideoCodec (QString newVideoCodec)
 Gets or sets the video codec.
bool videoCodecNull () const
void setVideoCodecNull ()
DlnaProfileType type () const
void setType (DlnaProfileType newType)

Static Public Member Functions

static DirectPlayProfile fromJson (QJsonObject source)

Protected Attributes

QString m_container
QString m_audioCodec
QString m_videoCodec
DlnaProfileType m_type

Constructor & Destructor Documentation

◆ DirectPlayProfile() [1/2]

Jellyfin::DTO::DirectPlayProfile::DirectPlayProfile ( QString container,
DlnaProfileType type )

◆ DirectPlayProfile() [2/2]

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

Member Function Documentation

◆ audioCodec()

QString Jellyfin::DTO::DirectPlayProfile::audioCodec ( ) const

Gets or sets the audio codec.

◆ audioCodecNull()

bool Jellyfin::DTO::DirectPlayProfile::audioCodecNull ( ) const

◆ container()

QString Jellyfin::DTO::DirectPlayProfile::container ( ) const

Gets or sets the container.

◆ fromJson()

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

◆ replaceData()

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

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

◆ setAudioCodec()

void Jellyfin::DTO::DirectPlayProfile::setAudioCodec ( QString newAudioCodec)

Gets or sets the audio codec.

◆ setAudioCodecNull()

void Jellyfin::DTO::DirectPlayProfile::setAudioCodecNull ( )

◆ setContainer()

void Jellyfin::DTO::DirectPlayProfile::setContainer ( QString newContainer)

Gets or sets the container.

◆ setFromJson()

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

◆ setType()

void Jellyfin::DTO::DirectPlayProfile::setType ( DlnaProfileType newType)

◆ setVideoCodec()

void Jellyfin::DTO::DirectPlayProfile::setVideoCodec ( QString newVideoCodec)

Gets or sets the video codec.

◆ setVideoCodecNull()

void Jellyfin::DTO::DirectPlayProfile::setVideoCodecNull ( )

◆ toJson()

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

◆ type()

DlnaProfileType Jellyfin::DTO::DirectPlayProfile::type ( ) const

◆ videoCodec()

QString Jellyfin::DTO::DirectPlayProfile::videoCodec ( ) const

Gets or sets the video codec.

◆ videoCodecNull()

bool Jellyfin::DTO::DirectPlayProfile::videoCodecNull ( ) const

Member Data Documentation

◆ m_audioCodec

QString Jellyfin::DTO::DirectPlayProfile::m_audioCodec
protected

◆ m_container

QString Jellyfin::DTO::DirectPlayProfile::m_container
protected

◆ m_type

DlnaProfileType Jellyfin::DTO::DirectPlayProfile::m_type
protected

◆ m_videoCodec

QString Jellyfin::DTO::DirectPlayProfile::m_videoCodec
protected

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