![]() |
Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
|
#include <userdto.h>
Public Member Functions | |
| UserDto (QString jellyfinId, bool hasPassword, bool hasConfiguredPassword, bool hasConfiguredEasyPassword, QSharedPointer< UserConfiguration > configuration, QSharedPointer< UserPolicy > policy) | |
| UserDto (const UserDto &other) | |
| void | replaceData (UserDto &other) |
| void | setFromJson (QJsonObject source) |
| QJsonObject | toJson () const |
| QString | name () const |
| Gets or sets the name. | |
| void | setName (QString newName) |
| Gets or sets the name. | |
| bool | nameNull () const |
| void | setNameNull () |
| QString | serverId () const |
| Gets or sets the server identifier. | |
| void | setServerId (QString newServerId) |
| Gets or sets the server identifier. | |
| bool | serverIdNull () const |
| void | setServerIdNull () |
| QString | serverName () const |
| void | setServerName (QString newServerName) |
| bool | serverNameNull () const |
| void | setServerNameNull () |
| QString | jellyfinId () const |
| Gets or sets the id. | |
| void | setJellyfinId (QString newJellyfinId) |
| Gets or sets the id. | |
| QString | primaryImageTag () const |
| Gets or sets the primary image tag. | |
| void | setPrimaryImageTag (QString newPrimaryImageTag) |
| Gets or sets the primary image tag. | |
| bool | primaryImageTagNull () const |
| void | setPrimaryImageTagNull () |
| bool | hasPassword () const |
| Gets or sets a value indicating whether this instance has password. | |
| void | setHasPassword (bool newHasPassword) |
| Gets or sets a value indicating whether this instance has password. | |
| bool | hasConfiguredPassword () const |
| Gets or sets a value indicating whether this instance has configured password. | |
| void | setHasConfiguredPassword (bool newHasConfiguredPassword) |
| Gets or sets a value indicating whether this instance has configured password. | |
| bool | hasConfiguredEasyPassword () const |
| Gets or sets a value indicating whether this instance has configured easy password. | |
| void | setHasConfiguredEasyPassword (bool newHasConfiguredEasyPassword) |
| Gets or sets a value indicating whether this instance has configured easy password. | |
| std::optional< bool > | enableAutoLogin () const |
| Gets or sets whether async login is enabled or not. | |
| void | setEnableAutoLogin (std::optional< bool > newEnableAutoLogin) |
| Gets or sets whether async login is enabled or not. | |
| bool | enableAutoLoginNull () const |
| void | setEnableAutoLoginNull () |
| QDateTime | lastLoginDate () const |
| Gets or sets the last login date. | |
| void | setLastLoginDate (QDateTime newLastLoginDate) |
| Gets or sets the last login date. | |
| bool | lastLoginDateNull () const |
| void | setLastLoginDateNull () |
| QDateTime | lastActivityDate () const |
| Gets or sets the last activity date. | |
| void | setLastActivityDate (QDateTime newLastActivityDate) |
| Gets or sets the last activity date. | |
| bool | lastActivityDateNull () const |
| void | setLastActivityDateNull () |
| QSharedPointer< UserConfiguration > | configuration () const |
| void | setConfiguration (QSharedPointer< UserConfiguration > newConfiguration) |
| QSharedPointer< UserPolicy > | policy () const |
| void | setPolicy (QSharedPointer< UserPolicy > newPolicy) |
| std::optional< double > | primaryImageAspectRatio () const |
| Gets or sets the primary image aspect ratio. | |
| void | setPrimaryImageAspectRatio (std::optional< double > newPrimaryImageAspectRatio) |
| Gets or sets the primary image aspect ratio. | |
| bool | primaryImageAspectRatioNull () const |
| void | setPrimaryImageAspectRatioNull () |
Static Public Member Functions | |
| static UserDto | fromJson (QJsonObject source) |
Protected Attributes | |
| QString | m_name |
| QString | m_serverId |
| QString | m_serverName |
| QString | m_jellyfinId |
| QString | m_primaryImageTag |
| bool | m_hasPassword |
| bool | m_hasConfiguredPassword |
| bool | m_hasConfiguredEasyPassword |
| std::optional< bool > | m_enableAutoLogin = std::nullopt |
| QDateTime | m_lastLoginDate |
| QDateTime | m_lastActivityDate |
| QSharedPointer< UserConfiguration > | m_configuration = QSharedPointer<UserConfiguration>() |
| QSharedPointer< UserPolicy > | m_policy = QSharedPointer<UserPolicy>() |
| std::optional< double > | m_primaryImageAspectRatio = std::nullopt |
| Jellyfin::DTO::UserDto::UserDto | ( | QString | jellyfinId, |
| bool | hasPassword, | ||
| bool | hasConfiguredPassword, | ||
| bool | hasConfiguredEasyPassword, | ||
| QSharedPointer< UserConfiguration > | configuration, | ||
| QSharedPointer< UserPolicy > | policy ) |
| Jellyfin::DTO::UserDto::UserDto | ( | const UserDto & | other | ) |
| QSharedPointer< UserConfiguration > Jellyfin::DTO::UserDto::configuration | ( | ) | const |
| std::optional< bool > Jellyfin::DTO::UserDto::enableAutoLogin | ( | ) | const |
Gets or sets whether async login is enabled or not.
| bool Jellyfin::DTO::UserDto::enableAutoLoginNull | ( | ) | const |
|
static |
| bool Jellyfin::DTO::UserDto::hasConfiguredEasyPassword | ( | ) | const |
Gets or sets a value indicating whether this instance has configured easy password.
| bool Jellyfin::DTO::UserDto::hasConfiguredPassword | ( | ) | const |
Gets or sets a value indicating whether this instance has configured password.
| bool Jellyfin::DTO::UserDto::hasPassword | ( | ) | const |
Gets or sets a value indicating whether this instance has password.
| QString Jellyfin::DTO::UserDto::jellyfinId | ( | ) | const |
Gets or sets the id.
| QDateTime Jellyfin::DTO::UserDto::lastActivityDate | ( | ) | const |
Gets or sets the last activity date.
| bool Jellyfin::DTO::UserDto::lastActivityDateNull | ( | ) | const |
| QDateTime Jellyfin::DTO::UserDto::lastLoginDate | ( | ) | const |
Gets or sets the last login date.
| bool Jellyfin::DTO::UserDto::lastLoginDateNull | ( | ) | const |
| QString Jellyfin::DTO::UserDto::name | ( | ) | const |
Gets or sets the name.
| bool Jellyfin::DTO::UserDto::nameNull | ( | ) | const |
| QSharedPointer< UserPolicy > Jellyfin::DTO::UserDto::policy | ( | ) | const |
| std::optional< double > Jellyfin::DTO::UserDto::primaryImageAspectRatio | ( | ) | const |
Gets or sets the primary image aspect ratio.
| bool Jellyfin::DTO::UserDto::primaryImageAspectRatioNull | ( | ) | const |
| QString Jellyfin::DTO::UserDto::primaryImageTag | ( | ) | const |
Gets or sets the primary image tag.
| bool Jellyfin::DTO::UserDto::primaryImageTagNull | ( | ) | const |
| void Jellyfin::DTO::UserDto::replaceData | ( | UserDto & | other | ) |
Replaces the data being hold by this class with that of the other.
| QString Jellyfin::DTO::UserDto::serverId | ( | ) | const |
Gets or sets the server identifier.
| bool Jellyfin::DTO::UserDto::serverIdNull | ( | ) | const |
| QString Jellyfin::DTO::UserDto::serverName | ( | ) | const |
@brief Gets or sets the name of the server.
This is not used by the server and is for client-side usage only.
| bool Jellyfin::DTO::UserDto::serverNameNull | ( | ) | const |
| void Jellyfin::DTO::UserDto::setConfiguration | ( | QSharedPointer< UserConfiguration > | newConfiguration | ) |
| void Jellyfin::DTO::UserDto::setEnableAutoLogin | ( | std::optional< bool > | newEnableAutoLogin | ) |
Gets or sets whether async login is enabled or not.
| void Jellyfin::DTO::UserDto::setEnableAutoLoginNull | ( | ) |
| void Jellyfin::DTO::UserDto::setFromJson | ( | QJsonObject | source | ) |
| void Jellyfin::DTO::UserDto::setHasConfiguredEasyPassword | ( | bool | newHasConfiguredEasyPassword | ) |
Gets or sets a value indicating whether this instance has configured easy password.
| void Jellyfin::DTO::UserDto::setHasConfiguredPassword | ( | bool | newHasConfiguredPassword | ) |
Gets or sets a value indicating whether this instance has configured password.
| void Jellyfin::DTO::UserDto::setHasPassword | ( | bool | newHasPassword | ) |
Gets or sets a value indicating whether this instance has password.
| void Jellyfin::DTO::UserDto::setJellyfinId | ( | QString | newJellyfinId | ) |
Gets or sets the id.
| void Jellyfin::DTO::UserDto::setLastActivityDate | ( | QDateTime | newLastActivityDate | ) |
Gets or sets the last activity date.
| void Jellyfin::DTO::UserDto::setLastActivityDateNull | ( | ) |
| void Jellyfin::DTO::UserDto::setLastLoginDate | ( | QDateTime | newLastLoginDate | ) |
Gets or sets the last login date.
| void Jellyfin::DTO::UserDto::setLastLoginDateNull | ( | ) |
| void Jellyfin::DTO::UserDto::setName | ( | QString | newName | ) |
Gets or sets the name.
| void Jellyfin::DTO::UserDto::setNameNull | ( | ) |
| void Jellyfin::DTO::UserDto::setPolicy | ( | QSharedPointer< UserPolicy > | newPolicy | ) |
| void Jellyfin::DTO::UserDto::setPrimaryImageAspectRatio | ( | std::optional< double > | newPrimaryImageAspectRatio | ) |
Gets or sets the primary image aspect ratio.
| void Jellyfin::DTO::UserDto::setPrimaryImageAspectRatioNull | ( | ) |
| void Jellyfin::DTO::UserDto::setPrimaryImageTag | ( | QString | newPrimaryImageTag | ) |
Gets or sets the primary image tag.
| void Jellyfin::DTO::UserDto::setPrimaryImageTagNull | ( | ) |
| void Jellyfin::DTO::UserDto::setServerId | ( | QString | newServerId | ) |
Gets or sets the server identifier.
| void Jellyfin::DTO::UserDto::setServerIdNull | ( | ) |
| void Jellyfin::DTO::UserDto::setServerName | ( | QString | newServerName | ) |
@brief Gets or sets the name of the server.
This is not used by the server and is for client-side usage only.
| void Jellyfin::DTO::UserDto::setServerNameNull | ( | ) |
| QJsonObject Jellyfin::DTO::UserDto::toJson | ( | ) | const |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |