Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
Jellyfin::ViewModel::UserModel Class Reference

#include <usermodel.h>

Inheritance diagram for Jellyfin::ViewModel::UserModel:
Jellyfin::ApiModel< Model::User > Jellyfin::BaseApiModel

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::Userat (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
 
BaseModelLoaderloader () 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
BaseModelLoaderloader
 

Member Enumeration Documentation

◆ RoleNames

Enumerator
userId 
name 
hasPassword 
primaryImageTag 

Constructor & Destructor Documentation

◆ UserModel()

Jellyfin::ViewModel::UserModel::UserModel ( QObject * parent = nullptr)
explicit

Member Function Documentation

◆ data()

QVariant Jellyfin::ViewModel::UserModel::data ( const QModelIndex & index,
int role ) const
override

◆ roleNames()

virtual QHash< int, QByteArray > Jellyfin::ViewModel::UserModel::roleNames ( ) const
inlineoverridevirtual

The documentation for this class was generated from the following files: