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

#include <deviceinfo.h>

Public Member Functions

 DeviceInfo (QString lastUserId, QDateTime dateLastActivity, QSharedPointer< ClientCapabilities > capabilities)
 
 DeviceInfo (const DeviceInfo &other)
 
void replaceData (DeviceInfo &other)
 
void setFromJson (QJsonObject source)
 
QJsonObject toJson () const
 
QString name () const
 
void setName (QString newName)
 
bool nameNull () const
 
void setNameNull ()
 
QString jellyfinId () const
 Gets or sets the identifier.
 
void setJellyfinId (QString newJellyfinId)
 Gets or sets the identifier.
 
bool jellyfinIdNull () const
 
void setJellyfinIdNull ()
 
QString lastUserName () const
 Gets or sets the last name of the user.
 
void setLastUserName (QString newLastUserName)
 Gets or sets the last name of the user.
 
bool lastUserNameNull () const
 
void setLastUserNameNull ()
 
QString appName () const
 Gets or sets the name of the application.
 
void setAppName (QString newAppName)
 Gets or sets the name of the application.
 
bool appNameNull () const
 
void setAppNameNull ()
 
QString appVersion () const
 Gets or sets the application version.
 
void setAppVersion (QString newAppVersion)
 Gets or sets the application version.
 
bool appVersionNull () const
 
void setAppVersionNull ()
 
QString lastUserId () const
 Gets or sets the last user identifier.
 
void setLastUserId (QString newLastUserId)
 Gets or sets the last user identifier.
 
QDateTime dateLastActivity () const
 Gets or sets the date last modified.
 
void setDateLastActivity (QDateTime newDateLastActivity)
 Gets or sets the date last modified.
 
QSharedPointer< ClientCapabilitiescapabilities () const
 
void setCapabilities (QSharedPointer< ClientCapabilities > newCapabilities)
 
QString iconUrl () const
 
void setIconUrl (QString newIconUrl)
 
bool iconUrlNull () const
 
void setIconUrlNull ()
 

Static Public Member Functions

static DeviceInfo fromJson (QJsonObject source)
 

Protected Attributes

QString m_name
 
QString m_jellyfinId
 
QString m_lastUserName
 
QString m_appName
 
QString m_appVersion
 
QString m_lastUserId
 
QDateTime m_dateLastActivity
 
QSharedPointer< ClientCapabilitiesm_capabilities = QSharedPointer<ClientCapabilities>()
 
QString m_iconUrl
 

Constructor & Destructor Documentation

◆ DeviceInfo() [1/2]

Jellyfin::DTO::DeviceInfo::DeviceInfo ( QString lastUserId,
QDateTime dateLastActivity,
QSharedPointer< ClientCapabilities > capabilities )

◆ DeviceInfo() [2/2]

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

Member Function Documentation

◆ appName()

QString Jellyfin::DTO::DeviceInfo::appName ( ) const

Gets or sets the name of the application.

◆ appNameNull()

bool Jellyfin::DTO::DeviceInfo::appNameNull ( ) const

◆ appVersion()

QString Jellyfin::DTO::DeviceInfo::appVersion ( ) const

Gets or sets the application version.

◆ appVersionNull()

bool Jellyfin::DTO::DeviceInfo::appVersionNull ( ) const

◆ capabilities()

QSharedPointer< ClientCapabilities > Jellyfin::DTO::DeviceInfo::capabilities ( ) const

◆ dateLastActivity()

QDateTime Jellyfin::DTO::DeviceInfo::dateLastActivity ( ) const

Gets or sets the date last modified.

◆ fromJson()

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

◆ iconUrl()

QString Jellyfin::DTO::DeviceInfo::iconUrl ( ) const

◆ iconUrlNull()

bool Jellyfin::DTO::DeviceInfo::iconUrlNull ( ) const

◆ jellyfinId()

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

Gets or sets the identifier.

◆ jellyfinIdNull()

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

◆ lastUserId()

QString Jellyfin::DTO::DeviceInfo::lastUserId ( ) const

Gets or sets the last user identifier.

◆ lastUserName()

QString Jellyfin::DTO::DeviceInfo::lastUserName ( ) const

Gets or sets the last name of the user.

◆ lastUserNameNull()

bool Jellyfin::DTO::DeviceInfo::lastUserNameNull ( ) const

◆ name()

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

◆ nameNull()

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

◆ replaceData()

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

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

◆ setAppName()

void Jellyfin::DTO::DeviceInfo::setAppName ( QString newAppName)

Gets or sets the name of the application.

◆ setAppNameNull()

void Jellyfin::DTO::DeviceInfo::setAppNameNull ( )

◆ setAppVersion()

void Jellyfin::DTO::DeviceInfo::setAppVersion ( QString newAppVersion)

Gets or sets the application version.

◆ setAppVersionNull()

void Jellyfin::DTO::DeviceInfo::setAppVersionNull ( )

◆ setCapabilities()

void Jellyfin::DTO::DeviceInfo::setCapabilities ( QSharedPointer< ClientCapabilities > newCapabilities)

◆ setDateLastActivity()

void Jellyfin::DTO::DeviceInfo::setDateLastActivity ( QDateTime newDateLastActivity)

Gets or sets the date last modified.

◆ setFromJson()

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

◆ setIconUrl()

void Jellyfin::DTO::DeviceInfo::setIconUrl ( QString newIconUrl)

◆ setIconUrlNull()

void Jellyfin::DTO::DeviceInfo::setIconUrlNull ( )

◆ setJellyfinId()

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

Gets or sets the identifier.

◆ setJellyfinIdNull()

void Jellyfin::DTO::DeviceInfo::setJellyfinIdNull ( )

◆ setLastUserId()

void Jellyfin::DTO::DeviceInfo::setLastUserId ( QString newLastUserId)

Gets or sets the last user identifier.

◆ setLastUserName()

void Jellyfin::DTO::DeviceInfo::setLastUserName ( QString newLastUserName)

Gets or sets the last name of the user.

◆ setLastUserNameNull()

void Jellyfin::DTO::DeviceInfo::setLastUserNameNull ( )

◆ setName()

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

◆ setNameNull()

void Jellyfin::DTO::DeviceInfo::setNameNull ( )

◆ toJson()

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

Member Data Documentation

◆ m_appName

QString Jellyfin::DTO::DeviceInfo::m_appName
protected

◆ m_appVersion

QString Jellyfin::DTO::DeviceInfo::m_appVersion
protected

◆ m_capabilities

QSharedPointer<ClientCapabilities> Jellyfin::DTO::DeviceInfo::m_capabilities = QSharedPointer<ClientCapabilities>()
protected

◆ m_dateLastActivity

QDateTime Jellyfin::DTO::DeviceInfo::m_dateLastActivity
protected

◆ m_iconUrl

QString Jellyfin::DTO::DeviceInfo::m_iconUrl
protected

◆ m_jellyfinId

QString Jellyfin::DTO::DeviceInfo::m_jellyfinId
protected

◆ m_lastUserId

QString Jellyfin::DTO::DeviceInfo::m_lastUserId
protected

◆ m_lastUserName

QString Jellyfin::DTO::DeviceInfo::m_lastUserName
protected

◆ m_name

QString Jellyfin::DTO::DeviceInfo::m_name
protected

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