30#ifndef JELLYFIN_DTO_SESSIONINFO_H
31#define JELLYFIN_DTO_SESSIONINFO_H
37#include <QSharedPointer>
63 QSharedPointer<PlayerStateInfo>
playState,
87 QJsonObject
toJson()
const;
91 QSharedPointer<PlayerStateInfo>
playState()
const;
93 void setPlayState(QSharedPointer<PlayerStateInfo> newPlayState);
103 QSharedPointer<ClientCapabilities>
capabilities()
const;
105 void setCapabilities(QSharedPointer<ClientCapabilities> newCapabilities);
318 QSharedPointer<PlayerStateInfo>
m_playState = QSharedPointer<PlayerStateInfo>();
320 QSharedPointer<ClientCapabilities>
m_capabilities = QSharedPointer<ClientCapabilities>();
Definition sessioninfo.h:60
QStringList m_playableMediaTypes
Definition sessioninfo.h:322
bool remoteEndPointNull() const
Definition sessioninfo.cpp:293
void setJellyfinIdNull()
Definition sessioninfo.cpp:323
void setRemoteEndPointNull()
Definition sessioninfo.cpp:297
QString m_remoteEndPoint
Definition sessioninfo.h:321
QString applicationVersion() const
Gets or sets the application version.
Definition sessioninfo.cpp:428
bool supportsRemoteControl() const
Definition sessioninfo.cpp:459
QSharedPointer< PlayerStateInfo > m_playState
Definition sessioninfo.h:318
void setSupportedCommands(QList< GeneralCommandType > newSupportedCommands)
Gets or sets the supported commands.
Definition sessioninfo.cpp:525
void replaceData(SessionInfo &other)
Definition sessioninfo.cpp:99
QString m_deviceType
Definition sessioninfo.h:330
void setNowPlayingQueue(QList< QueueItem > newNowPlayingQueue)
Definition sessioninfo.cpp:467
void setSupportsRemoteControl(bool newSupportsRemoteControl)
Definition sessioninfo.cpp:461
QJsonObject toJson() const
Definition sessioninfo.cpp:169
void setUserId(QString newUserId)
Gets or sets the user id.
Definition sessioninfo.cpp:329
void setClientNull()
Definition sessioninfo.cpp:355
QString client() const
Gets or sets the type of the client.
Definition sessioninfo.cpp:346
QDateTime m_lastActivityDate
Definition sessioninfo.h:327
void setDeviceName(QString newDeviceName)
Gets or sets the name of the device.
Definition sessioninfo.cpp:373
void setClient(QString newClient)
Gets or sets the type of the client.
Definition sessioninfo.cpp:348
QList< SessionUserInfo > m_additionalUsers
Definition sessioninfo.h:319
QString m_jellyfinId
Definition sessioninfo.h:323
void setUserNameNull()
Definition sessioninfo.cpp:342
void setPlaylistItemId(QString newPlaylistItemId)
Definition sessioninfo.cpp:486
void setLastPlaybackCheckIn(QDateTime newLastPlaybackCheckIn)
Gets or sets the last playback check in.
Definition sessioninfo.cpp:367
void setLastActivityDate(QDateTime newLastActivityDate)
Gets or sets the last activity date.
Definition sessioninfo.cpp:361
bool supportsMediaControl() const
Definition sessioninfo.cpp:453
QString remoteEndPoint() const
Gets or sets the remote end point.
Definition sessioninfo.cpp:288
QString m_deviceName
Definition sessioninfo.h:329
void setPlayableMediaTypes(QStringList newPlayableMediaTypes)
Gets or sets the playable media types.
Definition sessioninfo.cpp:303
bool supportedCommandsNull() const
Definition sessioninfo.cpp:528
static SessionInfo fromJson(QJsonObject source)
Definition sessioninfo.cpp:130
bool serverIdNull() const
Definition sessioninfo.cpp:502
QString serverId() const
Definition sessioninfo.cpp:497
void setDeviceNameNull()
Definition sessioninfo.cpp:380
void setNowPlayingItem(QSharedPointer< BaseItemDto > newNowPlayingItem)
Definition sessioninfo.cpp:399
QString userName() const
Gets or sets the username.
Definition sessioninfo.cpp:333
QDateTime lastPlaybackCheckIn() const
Gets or sets the last playback check in.
Definition sessioninfo.cpp:365
void setIsActive(bool newIsActive)
Gets a value indicating whether this instance is active.
Definition sessioninfo.cpp:449
void setFromJson(QJsonObject source)
Definition sessioninfo.cpp:137
void setSupportsMediaControl(bool newSupportsMediaControl)
Definition sessioninfo.cpp:455
void setNowPlayingQueueNull()
Definition sessioninfo.cpp:474
bool m_isActive
Definition sessioninfo.h:337
QSharedPointer< BaseItemDto > m_nowViewingItem
Definition sessioninfo.h:333
bool userPrimaryImageTagNull() const
Definition sessioninfo.cpp:515
void setCapabilities(QSharedPointer< ClientCapabilities > newCapabilities)
Definition sessioninfo.cpp:284
void setDeviceIdNull()
Definition sessioninfo.cpp:424
void setUserPrimaryImageTagNull()
Definition sessioninfo.cpp:519
void setRemoteEndPoint(QString newRemoteEndPoint)
Gets or sets the remote end point.
Definition sessioninfo.cpp:290
QString userPrimaryImageTag() const
Definition sessioninfo.cpp:510
bool m_hasCustomDeviceName
Definition sessioninfo.h:341
QString m_client
Definition sessioninfo.h:326
QString userId() const
Gets or sets the user id.
Definition sessioninfo.cpp:327
QString m_deviceId
Definition sessioninfo.h:334
bool m_supportsMediaControl
Definition sessioninfo.h:338
bool hasCustomDeviceName() const
Definition sessioninfo.cpp:478
void setNowViewingItem(QSharedPointer< BaseItemDto > newNowViewingItem)
Definition sessioninfo.cpp:411
bool deviceTypeNull() const
Definition sessioninfo.cpp:389
void setDeviceId(QString newDeviceId)
Gets or sets the device id.
Definition sessioninfo.cpp:417
void setPlayableMediaTypesNull()
Definition sessioninfo.cpp:310
void setFullNowPlayingItem(QSharedPointer< BaseItem > newFullNowPlayingItem)
Definition sessioninfo.cpp:405
bool playableMediaTypesNull() const
Definition sessioninfo.cpp:306
void setDeviceType(QString newDeviceType)
Gets or sets the type of the device.
Definition sessioninfo.cpp:386
void setJellyfinId(QString newJellyfinId)
Gets or sets the id.
Definition sessioninfo.cpp:316
QString deviceId() const
Gets or sets the device id.
Definition sessioninfo.cpp:415
bool playlistItemIdNull() const
Definition sessioninfo.cpp:489
void setAdditionalUsersNull()
Definition sessioninfo.cpp:278
void setServerIdNull()
Definition sessioninfo.cpp:506
QSharedPointer< BaseItem > m_fullNowPlayingItem
Definition sessioninfo.h:332
QSharedPointer< ClientCapabilities > m_capabilities
Definition sessioninfo.h:320
void setTranscodingInfo(QSharedPointer< TranscodingInfo > newTranscodingInfo)
Definition sessioninfo.cpp:443
QString deviceName() const
Gets or sets the name of the device.
Definition sessioninfo.cpp:371
QString m_playlistItemId
Definition sessioninfo.h:342
void setHasCustomDeviceName(bool newHasCustomDeviceName)
Definition sessioninfo.cpp:480
QString playlistItemId() const
Definition sessioninfo.cpp:484
void setUserPrimaryImageTag(QString newUserPrimaryImageTag)
Definition sessioninfo.cpp:512
QList< QueueItem > m_nowPlayingQueue
Definition sessioninfo.h:340
bool deviceIdNull() const
Definition sessioninfo.cpp:420
QSharedPointer< BaseItem > fullNowPlayingItem() const
Definition sessioninfo.cpp:403
bool isActive() const
Gets a value indicating whether this instance is active.
Definition sessioninfo.cpp:447
bool additionalUsersNull() const
Definition sessioninfo.cpp:274
void setApplicationVersion(QString newApplicationVersion)
Gets or sets the application version.
Definition sessioninfo.cpp:430
QSharedPointer< BaseItemDto > m_nowPlayingItem
Definition sessioninfo.h:331
void setDeviceTypeNull()
Definition sessioninfo.cpp:393
QList< GeneralCommandType > m_supportedCommands
Definition sessioninfo.h:345
void setAdditionalUsers(QList< SessionUserInfo > newAdditionalUsers)
Definition sessioninfo.cpp:271
QDateTime lastActivityDate() const
Gets or sets the last activity date.
Definition sessioninfo.cpp:359
QSharedPointer< TranscodingInfo > transcodingInfo() const
Definition sessioninfo.cpp:441
void setApplicationVersionNull()
Definition sessioninfo.cpp:437
void setPlayState(QSharedPointer< PlayerStateInfo > newPlayState)
Definition sessioninfo.cpp:265
bool nowPlayingQueueNull() const
Definition sessioninfo.cpp:470
QList< GeneralCommandType > supportedCommands() const
Gets or sets the supported commands.
Definition sessioninfo.cpp:523
QString deviceType() const
Gets or sets the type of the device.
Definition sessioninfo.cpp:384
QString m_applicationVersion
Definition sessioninfo.h:335
bool clientNull() const
Definition sessioninfo.cpp:351
void setPlaylistItemIdNull()
Definition sessioninfo.cpp:493
bool jellyfinIdNull() const
Definition sessioninfo.cpp:319
QSharedPointer< BaseItemDto > nowViewingItem() const
Definition sessioninfo.cpp:409
QSharedPointer< TranscodingInfo > m_transcodingInfo
Definition sessioninfo.h:336
QList< QueueItem > nowPlayingQueue() const
Definition sessioninfo.cpp:465
QSharedPointer< PlayerStateInfo > playState() const
Definition sessioninfo.cpp:263
QString m_userPrimaryImageTag
Definition sessioninfo.h:344
QList< SessionUserInfo > additionalUsers() const
Definition sessioninfo.cpp:269
QString m_userId
Definition sessioninfo.h:324
QString m_serverId
Definition sessioninfo.h:343
void setServerId(QString newServerId)
Definition sessioninfo.cpp:499
QString jellyfinId() const
Gets or sets the id.
Definition sessioninfo.cpp:314
QDateTime m_lastPlaybackCheckIn
Definition sessioninfo.h:328
bool deviceNameNull() const
Definition sessioninfo.cpp:376
QSharedPointer< ClientCapabilities > capabilities() const
Definition sessioninfo.cpp:282
bool m_supportsRemoteControl
Definition sessioninfo.h:339
void setUserName(QString newUserName)
Gets or sets the username.
Definition sessioninfo.cpp:335
void setSupportedCommandsNull()
Definition sessioninfo.cpp:532
QStringList playableMediaTypes() const
Gets or sets the playable media types.
Definition sessioninfo.cpp:301
QSharedPointer< BaseItemDto > nowPlayingItem() const
Definition sessioninfo.cpp:397
QString m_userName
Definition sessioninfo.h:325
bool userNameNull() const
Definition sessioninfo.cpp:338
bool applicationVersionNull() const
Definition sessioninfo.cpp:433
Definition mediaplayer2.h:20
AccessSchedule fromJsonValue(const QJsonValue &source, convertType< AccessSchedule >)
Definition accessschedule.cpp:133
QJsonValue toJsonValue(const AccessSchedule &source, convertType< AccessSchedule >)
Definition accessschedule.cpp:139
Definition jsonconvimpl.h:45