Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
Jellyfin::Loader::HTTP::GetRemoteImageProvidersLoader Class Reference

Gets available remote image providers for an item. More...

#include <remoteimage.h>

Inheritance diagram for Jellyfin::Loader::HTTP::GetRemoteImageProvidersLoader:
Jellyfin::Support::HttpLoader< QList< ImageProviderInfo >, GetRemoteImageProvidersParams > Jellyfin::Support::HttpLoaderBase< QList< ImageProviderInfo >, GetRemoteImageProvidersParams > Jellyfin::Support::Loader< QList< ImageProviderInfo >, GetRemoteImageProvidersParams > Jellyfin::Support::LoaderBase

Public Member Functions

 GetRemoteImageProvidersLoader (ApiClient *apiClient=nullptr)
 
- Public Member Functions inherited from Jellyfin::Support::HttpLoader< QList< ImageProviderInfo >, GetRemoteImageProvidersParams >
 HttpLoader (Jellyfin::ApiClient *apiClient)
 
virtual void load () override
 load Loads the given resource asynchronously.
 
virtual void cancel () override
 
bool isAvailable () const override
 Heuristic to determine if this resource can be loaded via this loaded.
 
- Public Member Functions inherited from Jellyfin::Support::HttpLoaderBase< QList< ImageProviderInfo >, GetRemoteImageProvidersParams >
 HttpLoaderBase (Jellyfin::ApiClient *apiClient)
 
Loader< QList< ImageProviderInfo >, GetRemoteImageProvidersParams >::ResultType parseResponse (int, QByteArray response)
 
- Public Member Functions inherited from Jellyfin::Support::Loader< QList< ImageProviderInfo >, GetRemoteImageProvidersParams >
 Loader (ApiClient *apiClient)
 
QList< ImageProviderInforesult () const
 Retrieves the loaded resource. Only valid after the ready signal has been emitted.
 
bool hasResult () const
 
void setParameters (const GetRemoteImageProvidersParams &parameters)
 Sets the parameters for this loader.
 
- Public Member Functions inherited from Jellyfin::Support::LoaderBase
bool isRunning () const
 
void setApiClient (ApiClient *newApiClient)
 
ApiClientapiClient () const
 

Protected Member Functions

QString path (const GetRemoteImageProvidersParams &parameters) const override
 
QUrlQuery query (const GetRemoteImageProvidersParams &parameters) const override
 
QByteArray body (const GetRemoteImageProvidersParams &parameters) const override
 
QNetworkAccessManager::Operation operation () const override
 
- Protected Member Functions inherited from Jellyfin::Support::HttpLoader< QList< ImageProviderInfo >, GetRemoteImageProvidersParams >
virtual QString path (const GetRemoteImageProvidersParams &parameters) const=0
 Subclasses should override this method to return the path to this endpoint, with all path parameters inserted.
 
virtual QUrlQuery query (const GetRemoteImageProvidersParams &parameters) const=0
 
virtual QByteArray body (const GetRemoteImageProvidersParams &parameters) const=0
 
- Protected Member Functions inherited from Jellyfin::Support::Loader< QList< ImageProviderInfo >, GetRemoteImageProvidersParams >
ResultType createFailureResult ()
 
ResultType createSuccessResult (QList< ImageProviderInfo > &&result)
 
- Protected Member Functions inherited from Jellyfin::Support::LoaderBase
 LoaderBase (ApiClient *apiClient)
 
void stopWithError (QString message=QString())
 

Additional Inherited Members

- Public Types inherited from Jellyfin::Support::Loader< QList< ImageProviderInfo >, GetRemoteImageProvidersParams >
using ResultType
 
- Signals inherited from Jellyfin::Support::LoaderBase
void error (QString message=QString())
 Emitted when an error has occurred during loading and no result is available.
 
void ready ()
 Emitted when data was successfully loaded.
 
- Static Protected Member Functions inherited from Jellyfin::Support::Loader< QList< ImageProviderInfo >, GetRemoteImageProvidersParams >
static QList< ImageProviderInfocreateDummyResponse ()
 
- Protected Attributes inherited from Jellyfin::Support::Loader< QList< ImageProviderInfo >, GetRemoteImageProvidersParams >
std::optional< GetRemoteImageProvidersParams > m_parameters
 
ResultType m_result
 
- Protected Attributes inherited from Jellyfin::Support::LoaderBase
Jellyfin::ApiClientm_apiClient
 
bool m_isRunning = false
 

Detailed Description

Gets available remote image providers for an item.

Constructor & Destructor Documentation

◆ GetRemoteImageProvidersLoader()

Jellyfin::Loader::HTTP::GetRemoteImageProvidersLoader::GetRemoteImageProvidersLoader ( ApiClient * apiClient = nullptr)
explicit

Member Function Documentation

◆ body()

QByteArray Jellyfin::Loader::HTTP::GetRemoteImageProvidersLoader::body ( const GetRemoteImageProvidersParams & parameters) const
overrideprotected

◆ operation()

QNetworkAccessManager::Operation Jellyfin::Loader::HTTP::GetRemoteImageProvidersLoader::operation ( ) const
overrideprotectedvirtual

◆ path()

QString Jellyfin::Loader::HTTP::GetRemoteImageProvidersLoader::path ( const GetRemoteImageProvidersParams & parameters) const
overrideprotected

◆ query()

QUrlQuery Jellyfin::Loader::HTTP::GetRemoteImageProvidersLoader::query ( const GetRemoteImageProvidersParams & parameters) const
overrideprotected

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