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

#include <sessioninfo.h>

Public Member Functions

 SessionInfo (QSharedPointer< PlayerStateInfo > playState, QSharedPointer< ClientCapabilities > capabilities, QString userId, QDateTime lastActivityDate, QDateTime lastPlaybackCheckIn, QSharedPointer< BaseItemDto > nowPlayingItem, QSharedPointer< BaseItem > fullNowPlayingItem, QSharedPointer< BaseItemDto > nowViewingItem, QSharedPointer< TranscodingInfo > transcodingInfo, bool isActive, bool supportsMediaControl, bool supportsRemoteControl, bool hasCustomDeviceName)
 
 SessionInfo (const SessionInfo &other)
 
void replaceData (SessionInfo &other)
 
void setFromJson (QJsonObject source)
 
QJsonObject toJson () const
 
QSharedPointer< PlayerStateInfoplayState () const
 
void setPlayState (QSharedPointer< PlayerStateInfo > newPlayState)
 
QList< SessionUserInfoadditionalUsers () const
 
void setAdditionalUsers (QList< SessionUserInfo > newAdditionalUsers)
 
bool additionalUsersNull () const
 
void setAdditionalUsersNull ()
 
QSharedPointer< ClientCapabilitiescapabilities () const
 
void setCapabilities (QSharedPointer< ClientCapabilities > newCapabilities)
 
QString remoteEndPoint () const
 Gets or sets the remote end point.
 
void setRemoteEndPoint (QString newRemoteEndPoint)
 Gets or sets the remote end point.
 
bool remoteEndPointNull () const
 
void setRemoteEndPointNull ()
 
QStringList playableMediaTypes () const
 Gets or sets the playable media types.
 
void setPlayableMediaTypes (QStringList newPlayableMediaTypes)
 Gets or sets the playable media types.
 
bool playableMediaTypesNull () const
 
void setPlayableMediaTypesNull ()
 
QString jellyfinId () const
 Gets or sets the id.
 
void setJellyfinId (QString newJellyfinId)
 Gets or sets the id.
 
bool jellyfinIdNull () const
 
void setJellyfinIdNull ()
 
QString userId () const
 Gets or sets the user id.
 
void setUserId (QString newUserId)
 Gets or sets the user id.
 
QString userName () const
 Gets or sets the username.
 
void setUserName (QString newUserName)
 Gets or sets the username.
 
bool userNameNull () const
 
void setUserNameNull ()
 
QString client () const
 Gets or sets the type of the client.
 
void setClient (QString newClient)
 Gets or sets the type of the client.
 
bool clientNull () const
 
void setClientNull ()
 
QDateTime lastActivityDate () const
 Gets or sets the last activity date.
 
void setLastActivityDate (QDateTime newLastActivityDate)
 Gets or sets the last activity date.
 
QDateTime lastPlaybackCheckIn () const
 Gets or sets the last playback check in.
 
void setLastPlaybackCheckIn (QDateTime newLastPlaybackCheckIn)
 Gets or sets the last playback check in.
 
QString deviceName () const
 Gets or sets the name of the device.
 
void setDeviceName (QString newDeviceName)
 Gets or sets the name of the device.
 
bool deviceNameNull () const
 
void setDeviceNameNull ()
 
QString deviceType () const
 Gets or sets the type of the device.
 
void setDeviceType (QString newDeviceType)
 Gets or sets the type of the device.
 
bool deviceTypeNull () const
 
void setDeviceTypeNull ()
 
QSharedPointer< BaseItemDtonowPlayingItem () const
 
void setNowPlayingItem (QSharedPointer< BaseItemDto > newNowPlayingItem)
 
QSharedPointer< BaseItemfullNowPlayingItem () const
 
void setFullNowPlayingItem (QSharedPointer< BaseItem > newFullNowPlayingItem)
 
QSharedPointer< BaseItemDtonowViewingItem () const
 
void setNowViewingItem (QSharedPointer< BaseItemDto > newNowViewingItem)
 
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 applicationVersion () const
 Gets or sets the application version.
 
void setApplicationVersion (QString newApplicationVersion)
 Gets or sets the application version.
 
bool applicationVersionNull () const
 
void setApplicationVersionNull ()
 
QSharedPointer< TranscodingInfotranscodingInfo () const
 
void setTranscodingInfo (QSharedPointer< TranscodingInfo > newTranscodingInfo)
 
bool isActive () const
 Gets a value indicating whether this instance is active.
 
void setIsActive (bool newIsActive)
 Gets a value indicating whether this instance is active.
 
bool supportsMediaControl () const
 
void setSupportsMediaControl (bool newSupportsMediaControl)
 
bool supportsRemoteControl () const
 
void setSupportsRemoteControl (bool newSupportsRemoteControl)
 
QList< QueueItemnowPlayingQueue () const
 
void setNowPlayingQueue (QList< QueueItem > newNowPlayingQueue)
 
bool nowPlayingQueueNull () const
 
void setNowPlayingQueueNull ()
 
bool hasCustomDeviceName () const
 
void setHasCustomDeviceName (bool newHasCustomDeviceName)
 
QString playlistItemId () const
 
void setPlaylistItemId (QString newPlaylistItemId)
 
bool playlistItemIdNull () const
 
void setPlaylistItemIdNull ()
 
QString serverId () const
 
void setServerId (QString newServerId)
 
bool serverIdNull () const
 
void setServerIdNull ()
 
QString userPrimaryImageTag () const
 
void setUserPrimaryImageTag (QString newUserPrimaryImageTag)
 
bool userPrimaryImageTagNull () const
 
void setUserPrimaryImageTagNull ()
 
QList< GeneralCommandTypesupportedCommands () const
 Gets or sets the supported commands.
 
void setSupportedCommands (QList< GeneralCommandType > newSupportedCommands)
 Gets or sets the supported commands.
 
bool supportedCommandsNull () const
 
void setSupportedCommandsNull ()
 

Static Public Member Functions

static SessionInfo fromJson (QJsonObject source)
 

Protected Attributes

QSharedPointer< PlayerStateInfom_playState = QSharedPointer<PlayerStateInfo>()
 
QList< SessionUserInfom_additionalUsers
 
QSharedPointer< ClientCapabilitiesm_capabilities = QSharedPointer<ClientCapabilities>()
 
QString m_remoteEndPoint
 
QStringList m_playableMediaTypes
 
QString m_jellyfinId
 
QString m_userId
 
QString m_userName
 
QString m_client
 
QDateTime m_lastActivityDate
 
QDateTime m_lastPlaybackCheckIn
 
QString m_deviceName
 
QString m_deviceType
 
QSharedPointer< BaseItemDtom_nowPlayingItem = QSharedPointer<BaseItemDto>()
 
QSharedPointer< BaseItemm_fullNowPlayingItem = QSharedPointer<BaseItem>()
 
QSharedPointer< BaseItemDtom_nowViewingItem = QSharedPointer<BaseItemDto>()
 
QString m_deviceId
 
QString m_applicationVersion
 
QSharedPointer< TranscodingInfom_transcodingInfo = QSharedPointer<TranscodingInfo>()
 
bool m_isActive
 
bool m_supportsMediaControl
 
bool m_supportsRemoteControl
 
QList< QueueItemm_nowPlayingQueue
 
bool m_hasCustomDeviceName
 
QString m_playlistItemId
 
QString m_serverId
 
QString m_userPrimaryImageTag
 
QList< GeneralCommandTypem_supportedCommands
 

Constructor & Destructor Documentation

◆ SessionInfo() [1/2]

Jellyfin::DTO::SessionInfo::SessionInfo ( QSharedPointer< PlayerStateInfo > playState,
QSharedPointer< ClientCapabilities > capabilities,
QString userId,
QDateTime lastActivityDate,
QDateTime lastPlaybackCheckIn,
QSharedPointer< BaseItemDto > nowPlayingItem,
QSharedPointer< BaseItem > fullNowPlayingItem,
QSharedPointer< BaseItemDto > nowViewingItem,
QSharedPointer< TranscodingInfo > transcodingInfo,
bool isActive,
bool supportsMediaControl,
bool supportsRemoteControl,
bool hasCustomDeviceName )

◆ SessionInfo() [2/2]

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

Member Function Documentation

◆ additionalUsers()

QList< SessionUserInfo > Jellyfin::DTO::SessionInfo::additionalUsers ( ) const

◆ additionalUsersNull()

bool Jellyfin::DTO::SessionInfo::additionalUsersNull ( ) const

◆ applicationVersion()

QString Jellyfin::DTO::SessionInfo::applicationVersion ( ) const

Gets or sets the application version.

◆ applicationVersionNull()

bool Jellyfin::DTO::SessionInfo::applicationVersionNull ( ) const

◆ capabilities()

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

◆ client()

QString Jellyfin::DTO::SessionInfo::client ( ) const

Gets or sets the type of the client.

◆ clientNull()

bool Jellyfin::DTO::SessionInfo::clientNull ( ) const

◆ deviceId()

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

Gets or sets the device id.

◆ deviceIdNull()

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

◆ deviceName()

QString Jellyfin::DTO::SessionInfo::deviceName ( ) const

Gets or sets the name of the device.

◆ deviceNameNull()

bool Jellyfin::DTO::SessionInfo::deviceNameNull ( ) const

◆ deviceType()

QString Jellyfin::DTO::SessionInfo::deviceType ( ) const

Gets or sets the type of the device.

◆ deviceTypeNull()

bool Jellyfin::DTO::SessionInfo::deviceTypeNull ( ) const

◆ fromJson()

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

◆ fullNowPlayingItem()

QSharedPointer< BaseItem > Jellyfin::DTO::SessionInfo::fullNowPlayingItem ( ) const

◆ hasCustomDeviceName()

bool Jellyfin::DTO::SessionInfo::hasCustomDeviceName ( ) const

◆ isActive()

bool Jellyfin::DTO::SessionInfo::isActive ( ) const

Gets a value indicating whether this instance is active.

◆ jellyfinId()

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

Gets or sets the id.

◆ jellyfinIdNull()

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

◆ lastActivityDate()

QDateTime Jellyfin::DTO::SessionInfo::lastActivityDate ( ) const

Gets or sets the last activity date.

◆ lastPlaybackCheckIn()

QDateTime Jellyfin::DTO::SessionInfo::lastPlaybackCheckIn ( ) const

Gets or sets the last playback check in.

◆ nowPlayingItem()

QSharedPointer< BaseItemDto > Jellyfin::DTO::SessionInfo::nowPlayingItem ( ) const

◆ nowPlayingQueue()

QList< QueueItem > Jellyfin::DTO::SessionInfo::nowPlayingQueue ( ) const

◆ nowPlayingQueueNull()

bool Jellyfin::DTO::SessionInfo::nowPlayingQueueNull ( ) const

◆ nowViewingItem()

QSharedPointer< BaseItemDto > Jellyfin::DTO::SessionInfo::nowViewingItem ( ) const

◆ playableMediaTypes()

QStringList Jellyfin::DTO::SessionInfo::playableMediaTypes ( ) const

Gets or sets the playable media types.

◆ playableMediaTypesNull()

bool Jellyfin::DTO::SessionInfo::playableMediaTypesNull ( ) const

◆ playlistItemId()

QString Jellyfin::DTO::SessionInfo::playlistItemId ( ) const

◆ playlistItemIdNull()

bool Jellyfin::DTO::SessionInfo::playlistItemIdNull ( ) const

◆ playState()

QSharedPointer< PlayerStateInfo > Jellyfin::DTO::SessionInfo::playState ( ) const

◆ remoteEndPoint()

QString Jellyfin::DTO::SessionInfo::remoteEndPoint ( ) const

Gets or sets the remote end point.

◆ remoteEndPointNull()

bool Jellyfin::DTO::SessionInfo::remoteEndPointNull ( ) const

◆ replaceData()

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

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

◆ serverId()

QString Jellyfin::DTO::SessionInfo::serverId ( ) const

◆ serverIdNull()

bool Jellyfin::DTO::SessionInfo::serverIdNull ( ) const

◆ setAdditionalUsers()

void Jellyfin::DTO::SessionInfo::setAdditionalUsers ( QList< SessionUserInfo > newAdditionalUsers)

◆ setAdditionalUsersNull()

void Jellyfin::DTO::SessionInfo::setAdditionalUsersNull ( )

◆ setApplicationVersion()

void Jellyfin::DTO::SessionInfo::setApplicationVersion ( QString newApplicationVersion)

Gets or sets the application version.

◆ setApplicationVersionNull()

void Jellyfin::DTO::SessionInfo::setApplicationVersionNull ( )

◆ setCapabilities()

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

◆ setClient()

void Jellyfin::DTO::SessionInfo::setClient ( QString newClient)

Gets or sets the type of the client.

◆ setClientNull()

void Jellyfin::DTO::SessionInfo::setClientNull ( )

◆ setDeviceId()

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

Gets or sets the device id.

◆ setDeviceIdNull()

void Jellyfin::DTO::SessionInfo::setDeviceIdNull ( )

◆ setDeviceName()

void Jellyfin::DTO::SessionInfo::setDeviceName ( QString newDeviceName)

Gets or sets the name of the device.

◆ setDeviceNameNull()

void Jellyfin::DTO::SessionInfo::setDeviceNameNull ( )

◆ setDeviceType()

void Jellyfin::DTO::SessionInfo::setDeviceType ( QString newDeviceType)

Gets or sets the type of the device.

◆ setDeviceTypeNull()

void Jellyfin::DTO::SessionInfo::setDeviceTypeNull ( )

◆ setFromJson()

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

◆ setFullNowPlayingItem()

void Jellyfin::DTO::SessionInfo::setFullNowPlayingItem ( QSharedPointer< BaseItem > newFullNowPlayingItem)

◆ setHasCustomDeviceName()

void Jellyfin::DTO::SessionInfo::setHasCustomDeviceName ( bool newHasCustomDeviceName)

◆ setIsActive()

void Jellyfin::DTO::SessionInfo::setIsActive ( bool newIsActive)

Gets a value indicating whether this instance is active.

◆ setJellyfinId()

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

Gets or sets the id.

◆ setJellyfinIdNull()

void Jellyfin::DTO::SessionInfo::setJellyfinIdNull ( )

◆ setLastActivityDate()

void Jellyfin::DTO::SessionInfo::setLastActivityDate ( QDateTime newLastActivityDate)

Gets or sets the last activity date.

◆ setLastPlaybackCheckIn()

void Jellyfin::DTO::SessionInfo::setLastPlaybackCheckIn ( QDateTime newLastPlaybackCheckIn)

Gets or sets the last playback check in.

◆ setNowPlayingItem()

void Jellyfin::DTO::SessionInfo::setNowPlayingItem ( QSharedPointer< BaseItemDto > newNowPlayingItem)

◆ setNowPlayingQueue()

void Jellyfin::DTO::SessionInfo::setNowPlayingQueue ( QList< QueueItem > newNowPlayingQueue)

◆ setNowPlayingQueueNull()

void Jellyfin::DTO::SessionInfo::setNowPlayingQueueNull ( )

◆ setNowViewingItem()

void Jellyfin::DTO::SessionInfo::setNowViewingItem ( QSharedPointer< BaseItemDto > newNowViewingItem)

◆ setPlayableMediaTypes()

void Jellyfin::DTO::SessionInfo::setPlayableMediaTypes ( QStringList newPlayableMediaTypes)

Gets or sets the playable media types.

◆ setPlayableMediaTypesNull()

void Jellyfin::DTO::SessionInfo::setPlayableMediaTypesNull ( )

◆ setPlaylistItemId()

void Jellyfin::DTO::SessionInfo::setPlaylistItemId ( QString newPlaylistItemId)

◆ setPlaylistItemIdNull()

void Jellyfin::DTO::SessionInfo::setPlaylistItemIdNull ( )

◆ setPlayState()

void Jellyfin::DTO::SessionInfo::setPlayState ( QSharedPointer< PlayerStateInfo > newPlayState)

◆ setRemoteEndPoint()

void Jellyfin::DTO::SessionInfo::setRemoteEndPoint ( QString newRemoteEndPoint)

Gets or sets the remote end point.

◆ setRemoteEndPointNull()

void Jellyfin::DTO::SessionInfo::setRemoteEndPointNull ( )

◆ setServerId()

void Jellyfin::DTO::SessionInfo::setServerId ( QString newServerId)

◆ setServerIdNull()

void Jellyfin::DTO::SessionInfo::setServerIdNull ( )

◆ setSupportedCommands()

void Jellyfin::DTO::SessionInfo::setSupportedCommands ( QList< GeneralCommandType > newSupportedCommands)

Gets or sets the supported commands.

◆ setSupportedCommandsNull()

void Jellyfin::DTO::SessionInfo::setSupportedCommandsNull ( )

◆ setSupportsMediaControl()

void Jellyfin::DTO::SessionInfo::setSupportsMediaControl ( bool newSupportsMediaControl)

◆ setSupportsRemoteControl()

void Jellyfin::DTO::SessionInfo::setSupportsRemoteControl ( bool newSupportsRemoteControl)

◆ setTranscodingInfo()

void Jellyfin::DTO::SessionInfo::setTranscodingInfo ( QSharedPointer< TranscodingInfo > newTranscodingInfo)

◆ setUserId()

void Jellyfin::DTO::SessionInfo::setUserId ( QString newUserId)

Gets or sets the user id.

◆ setUserName()

void Jellyfin::DTO::SessionInfo::setUserName ( QString newUserName)

Gets or sets the username.

◆ setUserNameNull()

void Jellyfin::DTO::SessionInfo::setUserNameNull ( )

◆ setUserPrimaryImageTag()

void Jellyfin::DTO::SessionInfo::setUserPrimaryImageTag ( QString newUserPrimaryImageTag)

◆ setUserPrimaryImageTagNull()

void Jellyfin::DTO::SessionInfo::setUserPrimaryImageTagNull ( )

◆ supportedCommands()

QList< GeneralCommandType > Jellyfin::DTO::SessionInfo::supportedCommands ( ) const

Gets or sets the supported commands.

◆ supportedCommandsNull()

bool Jellyfin::DTO::SessionInfo::supportedCommandsNull ( ) const

◆ supportsMediaControl()

bool Jellyfin::DTO::SessionInfo::supportsMediaControl ( ) const

◆ supportsRemoteControl()

bool Jellyfin::DTO::SessionInfo::supportsRemoteControl ( ) const

◆ toJson()

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

◆ transcodingInfo()

QSharedPointer< TranscodingInfo > Jellyfin::DTO::SessionInfo::transcodingInfo ( ) const

◆ userId()

QString Jellyfin::DTO::SessionInfo::userId ( ) const

Gets or sets the user id.

◆ userName()

QString Jellyfin::DTO::SessionInfo::userName ( ) const

Gets or sets the username.

◆ userNameNull()

bool Jellyfin::DTO::SessionInfo::userNameNull ( ) const

◆ userPrimaryImageTag()

QString Jellyfin::DTO::SessionInfo::userPrimaryImageTag ( ) const

◆ userPrimaryImageTagNull()

bool Jellyfin::DTO::SessionInfo::userPrimaryImageTagNull ( ) const

Member Data Documentation

◆ m_additionalUsers

QList<SessionUserInfo> Jellyfin::DTO::SessionInfo::m_additionalUsers
protected

◆ m_applicationVersion

QString Jellyfin::DTO::SessionInfo::m_applicationVersion
protected

◆ m_capabilities

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

◆ m_client

QString Jellyfin::DTO::SessionInfo::m_client
protected

◆ m_deviceId

QString Jellyfin::DTO::SessionInfo::m_deviceId
protected

◆ m_deviceName

QString Jellyfin::DTO::SessionInfo::m_deviceName
protected

◆ m_deviceType

QString Jellyfin::DTO::SessionInfo::m_deviceType
protected

◆ m_fullNowPlayingItem

QSharedPointer<BaseItem> Jellyfin::DTO::SessionInfo::m_fullNowPlayingItem = QSharedPointer<BaseItem>()
protected

◆ m_hasCustomDeviceName

bool Jellyfin::DTO::SessionInfo::m_hasCustomDeviceName
protected

◆ m_isActive

bool Jellyfin::DTO::SessionInfo::m_isActive
protected

◆ m_jellyfinId

QString Jellyfin::DTO::SessionInfo::m_jellyfinId
protected

◆ m_lastActivityDate

QDateTime Jellyfin::DTO::SessionInfo::m_lastActivityDate
protected

◆ m_lastPlaybackCheckIn

QDateTime Jellyfin::DTO::SessionInfo::m_lastPlaybackCheckIn
protected

◆ m_nowPlayingItem

QSharedPointer<BaseItemDto> Jellyfin::DTO::SessionInfo::m_nowPlayingItem = QSharedPointer<BaseItemDto>()
protected

◆ m_nowPlayingQueue

QList<QueueItem> Jellyfin::DTO::SessionInfo::m_nowPlayingQueue
protected

◆ m_nowViewingItem

QSharedPointer<BaseItemDto> Jellyfin::DTO::SessionInfo::m_nowViewingItem = QSharedPointer<BaseItemDto>()
protected

◆ m_playableMediaTypes

QStringList Jellyfin::DTO::SessionInfo::m_playableMediaTypes
protected

◆ m_playlistItemId

QString Jellyfin::DTO::SessionInfo::m_playlistItemId
protected

◆ m_playState

QSharedPointer<PlayerStateInfo> Jellyfin::DTO::SessionInfo::m_playState = QSharedPointer<PlayerStateInfo>()
protected

◆ m_remoteEndPoint

QString Jellyfin::DTO::SessionInfo::m_remoteEndPoint
protected

◆ m_serverId

QString Jellyfin::DTO::SessionInfo::m_serverId
protected

◆ m_supportedCommands

QList<GeneralCommandType> Jellyfin::DTO::SessionInfo::m_supportedCommands
protected

◆ m_supportsMediaControl

bool Jellyfin::DTO::SessionInfo::m_supportsMediaControl
protected

◆ m_supportsRemoteControl

bool Jellyfin::DTO::SessionInfo::m_supportsRemoteControl
protected

◆ m_transcodingInfo

QSharedPointer<TranscodingInfo> Jellyfin::DTO::SessionInfo::m_transcodingInfo = QSharedPointer<TranscodingInfo>()
protected

◆ m_userId

QString Jellyfin::DTO::SessionInfo::m_userId
protected

◆ m_userName

QString Jellyfin::DTO::SessionInfo::m_userName
protected

◆ m_userPrimaryImageTag

QString Jellyfin::DTO::SessionInfo::m_userPrimaryImageTag
protected

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