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

#include <codecprofile.h>

Public Member Functions

 CodecProfile (CodecType type, QList< ProfileCondition > conditions, QList< ProfileCondition > applyConditions)
 CodecProfile (const CodecProfile &other)
void replaceData (CodecProfile &other)
void setFromJson (QJsonObject source)
QJsonObject toJson () const
CodecType type () const
void setType (CodecType newType)
QList< ProfileConditionconditions () const
 Gets or sets the list of MediaBrowser.Model.Dlna.ProfileCondition which this profile must meet.
void setConditions (QList< ProfileCondition > newConditions)
 Gets or sets the list of MediaBrowser.Model.Dlna.ProfileCondition which this profile must meet.
QList< ProfileConditionapplyConditions () const
 Gets or sets the list of MediaBrowser.Model.Dlna.ProfileCondition to apply if this profile is met.
void setApplyConditions (QList< ProfileCondition > newApplyConditions)
 Gets or sets the list of MediaBrowser.Model.Dlna.ProfileCondition to apply if this profile is met.
QString codec () const
 Gets or sets the codec(s) that this profile applies to.
void setCodec (QString newCodec)
 Gets or sets the codec(s) that this profile applies to.
bool codecNull () const
void setCodecNull ()
QString container () const
 Gets or sets the container(s) which this profile will be applied to.
void setContainer (QString newContainer)
 Gets or sets the container(s) which this profile will be applied to.
bool containerNull () const
void setContainerNull ()
QString subContainer () const
 Gets or sets the sub-container(s) which this profile will be applied to.
void setSubContainer (QString newSubContainer)
 Gets or sets the sub-container(s) which this profile will be applied to.
bool subContainerNull () const
void setSubContainerNull ()

Static Public Member Functions

static CodecProfile fromJson (QJsonObject source)

Protected Attributes

CodecType m_type
QList< ProfileConditionm_conditions
QList< ProfileConditionm_applyConditions
QString m_codec
QString m_container
QString m_subContainer

Constructor & Destructor Documentation

◆ CodecProfile() [1/2]

Jellyfin::DTO::CodecProfile::CodecProfile ( CodecType type,
QList< ProfileCondition > conditions,
QList< ProfileCondition > applyConditions )

◆ CodecProfile() [2/2]

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

Member Function Documentation

◆ applyConditions()

QList< ProfileCondition > Jellyfin::DTO::CodecProfile::applyConditions ( ) const

Gets or sets the list of MediaBrowser.Model.Dlna.ProfileCondition to apply if this profile is met.

◆ codec()

QString Jellyfin::DTO::CodecProfile::codec ( ) const

Gets or sets the codec(s) that this profile applies to.

◆ codecNull()

bool Jellyfin::DTO::CodecProfile::codecNull ( ) const

◆ conditions()

QList< ProfileCondition > Jellyfin::DTO::CodecProfile::conditions ( ) const

Gets or sets the list of MediaBrowser.Model.Dlna.ProfileCondition which this profile must meet.

◆ container()

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

Gets or sets the container(s) which this profile will be applied to.

◆ containerNull()

bool Jellyfin::DTO::CodecProfile::containerNull ( ) const

◆ fromJson()

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

◆ replaceData()

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

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

◆ setApplyConditions()

void Jellyfin::DTO::CodecProfile::setApplyConditions ( QList< ProfileCondition > newApplyConditions)

Gets or sets the list of MediaBrowser.Model.Dlna.ProfileCondition to apply if this profile is met.

◆ setCodec()

void Jellyfin::DTO::CodecProfile::setCodec ( QString newCodec)

Gets or sets the codec(s) that this profile applies to.

◆ setCodecNull()

void Jellyfin::DTO::CodecProfile::setCodecNull ( )

◆ setConditions()

void Jellyfin::DTO::CodecProfile::setConditions ( QList< ProfileCondition > newConditions)

Gets or sets the list of MediaBrowser.Model.Dlna.ProfileCondition which this profile must meet.

◆ setContainer()

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

Gets or sets the container(s) which this profile will be applied to.

◆ setContainerNull()

void Jellyfin::DTO::CodecProfile::setContainerNull ( )

◆ setFromJson()

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

◆ setSubContainer()

void Jellyfin::DTO::CodecProfile::setSubContainer ( QString newSubContainer)

Gets or sets the sub-container(s) which this profile will be applied to.

◆ setSubContainerNull()

void Jellyfin::DTO::CodecProfile::setSubContainerNull ( )

◆ setType()

void Jellyfin::DTO::CodecProfile::setType ( CodecType newType)

◆ subContainer()

QString Jellyfin::DTO::CodecProfile::subContainer ( ) const

Gets or sets the sub-container(s) which this profile will be applied to.

◆ subContainerNull()

bool Jellyfin::DTO::CodecProfile::subContainerNull ( ) const

◆ toJson()

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

◆ type()

CodecType Jellyfin::DTO::CodecProfile::type ( ) const

Member Data Documentation

◆ m_applyConditions

QList<ProfileCondition> Jellyfin::DTO::CodecProfile::m_applyConditions
protected

◆ m_codec

QString Jellyfin::DTO::CodecProfile::m_codec
protected

◆ m_conditions

QList<ProfileCondition> Jellyfin::DTO::CodecProfile::m_conditions
protected

◆ m_container

QString Jellyfin::DTO::CodecProfile::m_container
protected

◆ m_subContainer

QString Jellyfin::DTO::CodecProfile::m_subContainer
protected

◆ m_type

CodecType Jellyfin::DTO::CodecProfile::m_type
protected

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