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

#include <deviceoptionsdto.h>

Public Member Functions

 DeviceOptionsDto (qint32 jellyfinId)
 DeviceOptionsDto (const DeviceOptionsDto &other)
void replaceData (DeviceOptionsDto &other)
void setFromJson (QJsonObject source)
QJsonObject toJson () const
qint32 jellyfinId () const
 Gets or sets the id.
void setJellyfinId (qint32 newJellyfinId)
 Gets or sets the id.
QString deviceId () const
 Gets or sets the device id.
void setDeviceId (QString newDeviceId)
 Gets or sets the device id.
bool deviceIdNull () const
void setDeviceIdNull ()
QString customName () const
 Gets or sets the custom name.
void setCustomName (QString newCustomName)
 Gets or sets the custom name.
bool customNameNull () const
void setCustomNameNull ()

Static Public Member Functions

static DeviceOptionsDto fromJson (QJsonObject source)

Protected Attributes

qint32 m_jellyfinId
QString m_deviceId
QString m_customName

Constructor & Destructor Documentation

◆ DeviceOptionsDto() [1/2]

Jellyfin::DTO::DeviceOptionsDto::DeviceOptionsDto ( qint32 jellyfinId)

◆ DeviceOptionsDto() [2/2]

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

Member Function Documentation

◆ customName()

QString Jellyfin::DTO::DeviceOptionsDto::customName ( ) const

Gets or sets the custom name.

◆ customNameNull()

bool Jellyfin::DTO::DeviceOptionsDto::customNameNull ( ) const

◆ deviceId()

QString Jellyfin::DTO::DeviceOptionsDto::deviceId ( ) const

Gets or sets the device id.

◆ deviceIdNull()

bool Jellyfin::DTO::DeviceOptionsDto::deviceIdNull ( ) const

◆ fromJson()

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

◆ jellyfinId()

qint32 Jellyfin::DTO::DeviceOptionsDto::jellyfinId ( ) const

Gets or sets the id.

◆ replaceData()

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

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

◆ setCustomName()

void Jellyfin::DTO::DeviceOptionsDto::setCustomName ( QString newCustomName)

Gets or sets the custom name.

◆ setCustomNameNull()

void Jellyfin::DTO::DeviceOptionsDto::setCustomNameNull ( )

◆ setDeviceId()

void Jellyfin::DTO::DeviceOptionsDto::setDeviceId ( QString newDeviceId)

Gets or sets the device id.

◆ setDeviceIdNull()

void Jellyfin::DTO::DeviceOptionsDto::setDeviceIdNull ( )

◆ setFromJson()

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

◆ setJellyfinId()

void Jellyfin::DTO::DeviceOptionsDto::setJellyfinId ( qint32 newJellyfinId)

Gets or sets the id.

◆ toJson()

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

Member Data Documentation

◆ m_customName

QString Jellyfin::DTO::DeviceOptionsDto::m_customName
protected

◆ m_deviceId

QString Jellyfin::DTO::DeviceOptionsDto::m_deviceId
protected

◆ m_jellyfinId

qint32 Jellyfin::DTO::DeviceOptionsDto::m_jellyfinId
protected

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