19#ifndef JELLYFIN_VIEWMODEL_USER_H
20#define JELLYFIN_VIEWMODEL_USER_H
23#include <QSharedPointer>
34class User :
public QObject {
37 explicit User(QObject *parent =
nullptr, QSharedPointer<Model::User>
data = QSharedPointer<Model::User>::create());
48 QString
name()
const {
return m_data->name(); }
49 QString
serverId()
const {
return m_data->serverId(); }
50 QString
serverName()
const {
return m_data->serverName(); }
51 QString
userId()
const {
return m_data->jellyfinId(); }
57 QSharedPointer<Model::User>
data()
const {
return m_data; }
58 void setData(QSharedPointer<Model::User> newData);
71 QSharedPointer<Model::User> m_data;
79 explicit UserLoader(QObject *parent =
nullptr);
P m_parameters
Definition loader.h:177
QString userId
Definition user.h:80
void userIdChanged(const QString &newUserId) const
UserLoader(QObject *parent=nullptr)
Definition user.cpp:41
virtual bool canReload() const override
Subclasses should implement this to determine if they can load data from the server.
Definition user.cpp:50
void setUserId(QString newUserId)
Definition user.cpp:44
void hasConfiguredEasyPasswordChanged(bool newHasConfiguredEasyPasswordChanged)
QString primaryImageTag() const
Definition user.h:52
void serverNameChanged(QString newServerName)
void primaryImageTagChanged(QString newPrimaryImageTag)
void nameChanged(QString newName)
QString serverId() const
Definition user.h:49
bool hasPassword() const
Definition user.h:53
bool hasConfiguredEasyPassword
Definition user.h:46
QString userId
Definition user.h:42
bool hasConfiguredEasyPassword() const
Definition user.h:55
void hasPasswordChanged(bool newHasPassword)
QString primaryImageTag
Definition user.h:43
void hasConfiguredPasswordChanged(bool newHasConfiguredPassword)
bool hasPassword
Definition user.h:44
bool hasConfiguredPassword() const
Definition user.h:54
QString serverName
Definition user.h:41
void serverIdChanged(QString newServerId)
QString serverId
Definition user.h:40
QString serverName() const
Definition user.h:50
void userIdChanged(QString newUserId)
QString userId() const
Definition user.h:51
QSharedPointer< Model::User > data() const
Definition user.h:57
void setData(QSharedPointer< Model::User > newData)
Definition user.cpp:35
bool hasConfiguredPassword
Definition user.h:45
QString name
Definition user.h:39
DTO::UserDto User
Definition apimodel.cpp:33