Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
|
#include <usermodel.h>
Public Types | |
enum | RoleNames { userId = Qt::UserRole + 1 , name , hasPassword , primaryImageTag } |
Public Member Functions | |
UserModel (QObject *parent=nullptr) | |
virtual QHash< int, QByteArray > | roleNames () const override |
QVariant | data (const QModelIndex &index, int role) const override |
Public Member Functions inherited from Jellyfin::ApiModel< Model::User > | |
ApiModel (QObject *parent=nullptr) | |
Creates a new basemodel. | |
int | rowCount (const QModelIndex &index) const override |
QSharedPointer< Model::User > | at (int index) const |
int | size () const |
void | insert (int index, QSharedPointer< Model::User > object) |
void | append (QSharedPointer< Model::User > object) |
void | append (QList< QSharedPointer< Model::User > > &objects) |
QList< Model::User * > | mid (int pos, int length=-1) |
void | removeAt (int index) |
void | removeUntilEnd (int from) |
void | removeOne (QSharedPointer< Model::User > object) |
void | clear () override |
const QList< QSharedPointer< Model::User > > & | toList () |
virtual bool | canFetchMore (const QModelIndex &parent) const override |
virtual void | fetchMore (const QModelIndex &parent) override |
BaseModelLoader * | loader () const override |
void | setLoader (BaseModelLoader *newLoader) |
void | reload () override |
Public Member Functions inherited from Jellyfin::BaseApiModel | |
BaseApiModel (QObject *parent=nullptr) | |
void | disconnectOldLoader (BaseModelLoader *oldLoader) |
Additional Inherited Members | |
Public Slots inherited from Jellyfin::BaseApiModel | |
Signals inherited from Jellyfin::BaseApiModel | |
void | loaderChanged () |
Protected Slots inherited from Jellyfin::BaseApiModel | |
Protected Member Functions inherited from Jellyfin::ApiModel< Model::User > | |
void | loadingFinished () override |
Protected Attributes inherited from Jellyfin::ApiModel< Model::User > | |
QList< QSharedPointer< Model::User > > | m_array |
ModelLoader< Model::User > * | m_loader |
Properties inherited from Jellyfin::BaseApiModel | |
BaseModelLoader * | loader |
|
explicit |
|
override |
|
inlineoverridevirtual |