19#ifndef JELLYFIN_VIEWMODEL_USERMODEL_H
20#define JELLYFIN_VIEWMODEL_USERMODEL_H
22#include <QAbstractListModel>
37#define FWDPROP(type, propName, propSetName) JF_FWD_RW_PROP(type, propName, propSetName, this->m_parameters)
49 explicit UserModel (QObject *parent =
nullptr);
51 virtual QHash<int, QByteArray>
roleNames()
const override {
59 QVariant
data(
const QModelIndex &index,
int role)
const override;
Abstract model for displaying collections.
Definition apimodel.h:405
Definition apimodel.h:282
Definition requesttypes.h:14514
Definition usermodel.h:63
PublicUsersLoader(QObject *parent=nullptr)
Definition usermodel.cpp:47
bool canReload() const override
Determines if this model is able to reload.
Definition usermodel.cpp:50
Definition usermodel.h:39
virtual QHash< int, QByteArray > roleNames() const override
Definition usermodel.h:51
UserModel(QObject *parent=nullptr)
Definition usermodel.cpp:24
RoleNames
Definition usermodel.h:42
@ name
Definition usermodel.h:44
@ userId
Definition usermodel.h:43
@ hasPassword
Definition usermodel.h:45
@ primaryImageTag
Definition usermodel.h:46
QVariant data(const QModelIndex &index, int role) const override
Definition usermodel.cpp:27