![]() |
Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
|
#include <user.h>
Signals | |
void | userIdChanged (const QString &newUserId) const |
![]() | |
void | statusChanged (Jellyfin::ViewModel::LoaderBase::Status newStatus) |
void | apiClientChanged (ApiClient *newApiClient) |
void | errorStringChanged (QString newErrorString) |
void | autoReloadChanged (bool newAutoReload) |
void | dataChanged () |
void | ready () |
Convenience signal for status == RemoteData.Ready. | |
Public Member Functions | |
UserLoader (QObject *parent=nullptr) | |
QString | userId () const |
void | setUserId (QString newUserId) |
virtual bool | canReload () const override |
Subclasses should implement this to determine if they can load data from the server. | |
![]() | |
Loader (Support::Loader< R, P > *loaderImpl, QObject *parent=nullptr) | |
Loader (ApiClient *apiClient, Support::Loader< R, P > *loaderImpl, QObject *parent=nullptr) | |
T * | dataViewModel () const |
QObject * | data () const override |
void | reload () override |
Overload this method to reimplement the fetching mechanism to populate the RemoteData with data from the server. | |
![]() | |
LoaderBase (QObject *parent=nullptr) | |
LoaderBase (ApiClient *apiClient, QObject *parent=nullptr) | |
Status | status () const |
QString | errorString () const |
void | setApiClient (ApiClient *newApiClient) |
void | setExtraFields (const QStringList &extraFields) |
Properties | |
QString | userId |
![]() | |
ApiClient * | apiClient |
Jellyfin::ViewModel::LoaderBase::Status | status |
QString | errorString |
bool | autoReload |
QObject * | data |
Additional Inherited Members | |
![]() | |
enum | Status { Uninitialised , Loading , Ready , Error } |
![]() | |
![]() | |
void | setStatus (Status newStatus) |
void | setError (QNetworkReply::NetworkError error) |
void | setErrorString (const QString &newErrorString) |
void | reloadIfNeeded () |
void | classBegin () override |
void | componentComplete () override |
bool | isQmlParsing () const |
void | emitDataChanged () |
![]() | |
T * | m_dataViewModel |
P | m_parameters |
QScopedPointer< Support::Loader< R, P > > | m_loader = nullptr |
Subclasses should initialize this to a loader that actually loads stuff. | |
![]() | |
ApiClient * | m_apiClient = nullptr |
|
explicit |
|
overridevirtual |
Subclasses should implement this to determine if they can load data from the server.
Usage cases include checking if the required properties, such as the item id are set.
Reimplemented from Jellyfin::ViewModel::LoaderBase.
void Jellyfin::ViewModel::UserLoader::setUserId | ( | QString | newUserId | ) |
|
inline |
|
signal |
|
readwrite |