Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
|
#include <item.h>
Signals | |
void | itemIdChanged (const QString &newItemId) const |
Signals inherited from Jellyfin::ViewModel::LoaderBase | |
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 | |
ItemLoader (QObject *parent=nullptr) | |
QString | itemId () const |
void | setItemId (QString newItemId) |
virtual bool | canReload () const override |
Subclasses should implement this to determine if they can load data from the server. | |
Public Member Functions inherited from Jellyfin::ViewModel::Loader< ViewModel::Item, DTO::BaseItemDto, Jellyfin::Loader::GetItemParams > | |
Loader (Support::Loader< DTO::BaseItemDto, Jellyfin::Loader::GetItemParams > *loaderImpl, QObject *parent=nullptr) | |
Loader (ApiClient *apiClient, Support::Loader< DTO::BaseItemDto, Jellyfin::Loader::GetItemParams > *loaderImpl, QObject *parent=nullptr) | |
ViewModel::Item * | 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. | |
Public Member Functions inherited from Jellyfin::ViewModel::LoaderBase | |
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 | itemId |
Properties inherited from Jellyfin::ViewModel::LoaderBase | |
ApiClient * | apiClient |
Jellyfin::ViewModel::LoaderBase::Status | status |
QString | errorString |
bool | autoReload |
QObject * | data |
|
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.
|
inline |
|
signal |
void Jellyfin::ViewModel::ItemLoader::setItemId | ( | QString | newItemId | ) |
|
readwrite |