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

#include <deviceprofile.h>

Public Member Functions

 DeviceProfile (QList< DirectPlayProfile > directPlayProfiles, QList< TranscodingProfile > transcodingProfiles, QList< ContainerProfile > containerProfiles, QList< CodecProfile > codecProfiles, QList< SubtitleProfile > subtitleProfiles)
 DeviceProfile (const DeviceProfile &other)
void replaceData (DeviceProfile &other)
void setFromJson (QJsonObject source)
QJsonObject toJson () const
QString name () const
 Gets or sets the name of this device profile. User profiles must have a unique name.
void setName (QString newName)
 Gets or sets the name of this device profile. User profiles must have a unique name.
bool nameNull () const
void setNameNull ()
QString jellyfinId () const
 Gets or sets the unique internal identifier.
void setJellyfinId (QString newJellyfinId)
 Gets or sets the unique internal identifier.
bool jellyfinIdNull () const
void setJellyfinIdNull ()
std::optional< qint32 > maxStreamingBitrate () const
 Gets or sets the maximum allowed bitrate for all streamed content.
void setMaxStreamingBitrate (std::optional< qint32 > newMaxStreamingBitrate)
 Gets or sets the maximum allowed bitrate for all streamed content.
bool maxStreamingBitrateNull () const
void setMaxStreamingBitrateNull ()
std::optional< qint32 > maxStaticBitrate () const
 Gets or sets the maximum allowed bitrate for statically streamed content (= direct played files).
void setMaxStaticBitrate (std::optional< qint32 > newMaxStaticBitrate)
 Gets or sets the maximum allowed bitrate for statically streamed content (= direct played files).
bool maxStaticBitrateNull () const
void setMaxStaticBitrateNull ()
std::optional< qint32 > musicStreamingTranscodingBitrate () const
 Gets or sets the maximum allowed bitrate for transcoded music streams.
void setMusicStreamingTranscodingBitrate (std::optional< qint32 > newMusicStreamingTranscodingBitrate)
 Gets or sets the maximum allowed bitrate for transcoded music streams.
bool musicStreamingTranscodingBitrateNull () const
void setMusicStreamingTranscodingBitrateNull ()
std::optional< qint32 > maxStaticMusicBitrate () const
 Gets or sets the maximum allowed bitrate for statically streamed (= direct played) music files.
void setMaxStaticMusicBitrate (std::optional< qint32 > newMaxStaticMusicBitrate)
 Gets or sets the maximum allowed bitrate for statically streamed (= direct played) music files.
bool maxStaticMusicBitrateNull () const
void setMaxStaticMusicBitrateNull ()
QList< DirectPlayProfiledirectPlayProfiles () const
 Gets or sets the direct play profiles.
void setDirectPlayProfiles (QList< DirectPlayProfile > newDirectPlayProfiles)
 Gets or sets the direct play profiles.
QList< TranscodingProfiletranscodingProfiles () const
 Gets or sets the transcoding profiles.
void setTranscodingProfiles (QList< TranscodingProfile > newTranscodingProfiles)
 Gets or sets the transcoding profiles.
QList< ContainerProfilecontainerProfiles () const
 Gets or sets the container profiles. Failing to meet these optional conditions causes transcoding to occur.
void setContainerProfiles (QList< ContainerProfile > newContainerProfiles)
 Gets or sets the container profiles. Failing to meet these optional conditions causes transcoding to occur.
QList< CodecProfilecodecProfiles () const
 Gets or sets the codec profiles.
void setCodecProfiles (QList< CodecProfile > newCodecProfiles)
 Gets or sets the codec profiles.
QList< SubtitleProfilesubtitleProfiles () const
 Gets or sets the subtitle profiles.
void setSubtitleProfiles (QList< SubtitleProfile > newSubtitleProfiles)
 Gets or sets the subtitle profiles.

Static Public Member Functions

static DeviceProfile fromJson (QJsonObject source)

Protected Attributes

QString m_name
QString m_jellyfinId
std::optional< qint32 > m_maxStreamingBitrate = std::nullopt
std::optional< qint32 > m_maxStaticBitrate = std::nullopt
std::optional< qint32 > m_musicStreamingTranscodingBitrate = std::nullopt
std::optional< qint32 > m_maxStaticMusicBitrate = std::nullopt
QList< DirectPlayProfilem_directPlayProfiles
QList< TranscodingProfilem_transcodingProfiles
QList< ContainerProfilem_containerProfiles
QList< CodecProfilem_codecProfiles
QList< SubtitleProfilem_subtitleProfiles

Constructor & Destructor Documentation

◆ DeviceProfile() [1/2]

Jellyfin::DTO::DeviceProfile::DeviceProfile ( QList< DirectPlayProfile > directPlayProfiles,
QList< TranscodingProfile > transcodingProfiles,
QList< ContainerProfile > containerProfiles,
QList< CodecProfile > codecProfiles,
QList< SubtitleProfile > subtitleProfiles )

◆ DeviceProfile() [2/2]

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

Member Function Documentation

◆ codecProfiles()

QList< CodecProfile > Jellyfin::DTO::DeviceProfile::codecProfiles ( ) const

Gets or sets the codec profiles.

◆ containerProfiles()

QList< ContainerProfile > Jellyfin::DTO::DeviceProfile::containerProfiles ( ) const

Gets or sets the container profiles. Failing to meet these optional conditions causes transcoding to occur.

◆ directPlayProfiles()

QList< DirectPlayProfile > Jellyfin::DTO::DeviceProfile::directPlayProfiles ( ) const

Gets or sets the direct play profiles.

◆ fromJson()

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

◆ jellyfinId()

QString Jellyfin::DTO::DeviceProfile::jellyfinId ( ) const

Gets or sets the unique internal identifier.

◆ jellyfinIdNull()

bool Jellyfin::DTO::DeviceProfile::jellyfinIdNull ( ) const

◆ maxStaticBitrate()

std::optional< qint32 > Jellyfin::DTO::DeviceProfile::maxStaticBitrate ( ) const

Gets or sets the maximum allowed bitrate for statically streamed content (= direct played files).

◆ maxStaticBitrateNull()

bool Jellyfin::DTO::DeviceProfile::maxStaticBitrateNull ( ) const

◆ maxStaticMusicBitrate()

std::optional< qint32 > Jellyfin::DTO::DeviceProfile::maxStaticMusicBitrate ( ) const

Gets or sets the maximum allowed bitrate for statically streamed (= direct played) music files.

◆ maxStaticMusicBitrateNull()

bool Jellyfin::DTO::DeviceProfile::maxStaticMusicBitrateNull ( ) const

◆ maxStreamingBitrate()

std::optional< qint32 > Jellyfin::DTO::DeviceProfile::maxStreamingBitrate ( ) const

Gets or sets the maximum allowed bitrate for all streamed content.

◆ maxStreamingBitrateNull()

bool Jellyfin::DTO::DeviceProfile::maxStreamingBitrateNull ( ) const

◆ musicStreamingTranscodingBitrate()

std::optional< qint32 > Jellyfin::DTO::DeviceProfile::musicStreamingTranscodingBitrate ( ) const

Gets or sets the maximum allowed bitrate for transcoded music streams.

◆ musicStreamingTranscodingBitrateNull()

bool Jellyfin::DTO::DeviceProfile::musicStreamingTranscodingBitrateNull ( ) const

◆ name()

QString Jellyfin::DTO::DeviceProfile::name ( ) const

Gets or sets the name of this device profile. User profiles must have a unique name.

◆ nameNull()

bool Jellyfin::DTO::DeviceProfile::nameNull ( ) const

◆ replaceData()

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

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

◆ setCodecProfiles()

void Jellyfin::DTO::DeviceProfile::setCodecProfiles ( QList< CodecProfile > newCodecProfiles)

Gets or sets the codec profiles.

◆ setContainerProfiles()

void Jellyfin::DTO::DeviceProfile::setContainerProfiles ( QList< ContainerProfile > newContainerProfiles)

Gets or sets the container profiles. Failing to meet these optional conditions causes transcoding to occur.

◆ setDirectPlayProfiles()

void Jellyfin::DTO::DeviceProfile::setDirectPlayProfiles ( QList< DirectPlayProfile > newDirectPlayProfiles)

Gets or sets the direct play profiles.

◆ setFromJson()

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

◆ setJellyfinId()

void Jellyfin::DTO::DeviceProfile::setJellyfinId ( QString newJellyfinId)

Gets or sets the unique internal identifier.

◆ setJellyfinIdNull()

void Jellyfin::DTO::DeviceProfile::setJellyfinIdNull ( )

◆ setMaxStaticBitrate()

void Jellyfin::DTO::DeviceProfile::setMaxStaticBitrate ( std::optional< qint32 > newMaxStaticBitrate)

Gets or sets the maximum allowed bitrate for statically streamed content (= direct played files).

◆ setMaxStaticBitrateNull()

void Jellyfin::DTO::DeviceProfile::setMaxStaticBitrateNull ( )

◆ setMaxStaticMusicBitrate()

void Jellyfin::DTO::DeviceProfile::setMaxStaticMusicBitrate ( std::optional< qint32 > newMaxStaticMusicBitrate)

Gets or sets the maximum allowed bitrate for statically streamed (= direct played) music files.

◆ setMaxStaticMusicBitrateNull()

void Jellyfin::DTO::DeviceProfile::setMaxStaticMusicBitrateNull ( )

◆ setMaxStreamingBitrate()

void Jellyfin::DTO::DeviceProfile::setMaxStreamingBitrate ( std::optional< qint32 > newMaxStreamingBitrate)

Gets or sets the maximum allowed bitrate for all streamed content.

◆ setMaxStreamingBitrateNull()

void Jellyfin::DTO::DeviceProfile::setMaxStreamingBitrateNull ( )

◆ setMusicStreamingTranscodingBitrate()

void Jellyfin::DTO::DeviceProfile::setMusicStreamingTranscodingBitrate ( std::optional< qint32 > newMusicStreamingTranscodingBitrate)

Gets or sets the maximum allowed bitrate for transcoded music streams.

◆ setMusicStreamingTranscodingBitrateNull()

void Jellyfin::DTO::DeviceProfile::setMusicStreamingTranscodingBitrateNull ( )

◆ setName()

void Jellyfin::DTO::DeviceProfile::setName ( QString newName)

Gets or sets the name of this device profile. User profiles must have a unique name.

◆ setNameNull()

void Jellyfin::DTO::DeviceProfile::setNameNull ( )

◆ setSubtitleProfiles()

void Jellyfin::DTO::DeviceProfile::setSubtitleProfiles ( QList< SubtitleProfile > newSubtitleProfiles)

Gets or sets the subtitle profiles.

◆ setTranscodingProfiles()

void Jellyfin::DTO::DeviceProfile::setTranscodingProfiles ( QList< TranscodingProfile > newTranscodingProfiles)

Gets or sets the transcoding profiles.

◆ subtitleProfiles()

QList< SubtitleProfile > Jellyfin::DTO::DeviceProfile::subtitleProfiles ( ) const

Gets or sets the subtitle profiles.

◆ toJson()

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

◆ transcodingProfiles()

QList< TranscodingProfile > Jellyfin::DTO::DeviceProfile::transcodingProfiles ( ) const

Gets or sets the transcoding profiles.

Member Data Documentation

◆ m_codecProfiles

QList<CodecProfile> Jellyfin::DTO::DeviceProfile::m_codecProfiles
protected

◆ m_containerProfiles

QList<ContainerProfile> Jellyfin::DTO::DeviceProfile::m_containerProfiles
protected

◆ m_directPlayProfiles

QList<DirectPlayProfile> Jellyfin::DTO::DeviceProfile::m_directPlayProfiles
protected

◆ m_jellyfinId

QString Jellyfin::DTO::DeviceProfile::m_jellyfinId
protected

◆ m_maxStaticBitrate

std::optional<qint32> Jellyfin::DTO::DeviceProfile::m_maxStaticBitrate = std::nullopt
protected

◆ m_maxStaticMusicBitrate

std::optional<qint32> Jellyfin::DTO::DeviceProfile::m_maxStaticMusicBitrate = std::nullopt
protected

◆ m_maxStreamingBitrate

std::optional<qint32> Jellyfin::DTO::DeviceProfile::m_maxStreamingBitrate = std::nullopt
protected

◆ m_musicStreamingTranscodingBitrate

std::optional<qint32> Jellyfin::DTO::DeviceProfile::m_musicStreamingTranscodingBitrate = std::nullopt
protected

◆ m_name

QString Jellyfin::DTO::DeviceProfile::m_name
protected

◆ m_subtitleProfiles

QList<SubtitleProfile> Jellyfin::DTO::DeviceProfile::m_subtitleProfiles
protected

◆ m_transcodingProfiles

QList<TranscodingProfile> Jellyfin::DTO::DeviceProfile::m_transcodingProfiles
protected

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