Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
Jellyfin::Support::HttpLoaderBase< void, P > Class Template Reference

#include <loader.h>

Inheritance diagram for Jellyfin::Support::HttpLoaderBase< void, P >:
Jellyfin::Support::Loader< void, P > Jellyfin::Support::LoaderBase

Public Member Functions

 HttpLoaderBase (Jellyfin::ApiClient *apiClient)
 
Loader< void, P >::ResultType parseResponse (int statusCode, QByteArray response)
 
- Public Member Functions inherited from Jellyfin::Support::Loader< void, P >
 Loader (ApiClient *apiClient)
 
void result () const
 
bool hasResult () const
 
void setParameters (const P &parameters)
 Sets the parameters for this loader.
 
- Public Member Functions inherited from Jellyfin::Support::LoaderBase
virtual void load ()
 load Loads the given resource asynchronously.
 
virtual void cancel ()
 
bool isRunning () const
 
virtual bool isAvailable () const
 Heuristic to determine if this resource can be loaded via this loaded.
 
void setApiClient (ApiClient *newApiClient)
 
ApiClientapiClient () const
 

Additional Inherited Members

- Public Types inherited from Jellyfin::Support::Loader< void, P >
using ResultType = bool
 
- 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.
 
- Protected Member Functions inherited from Jellyfin::Support::Loader< void, P >
ResultType createFailureResult ()
 
ResultType createSuccessResult (void)
 
- Protected Member Functions inherited from Jellyfin::Support::LoaderBase
 LoaderBase (ApiClient *apiClient)
 
void stopWithError (QString message=QString())
 
- Static Protected Member Functions inherited from Jellyfin::Support::Loader< void, P >
static void createDummyResponse ()
 
- Protected Attributes inherited from Jellyfin::Support::Loader< void, P >
std::optional< P > m_parameters
 
ResultType m_result
 
- Protected Attributes inherited from Jellyfin::Support::LoaderBase
Jellyfin::ApiClientm_apiClient
 
bool m_isRunning = false
 

Constructor & Destructor Documentation

◆ HttpLoaderBase()

template<typename P >
Jellyfin::Support::HttpLoaderBase< void, P >::HttpLoaderBase ( Jellyfin::ApiClient * apiClient)
inlineexplicit

Member Function Documentation

◆ parseResponse()

template<typename P >
Loader< void, P >::ResultType Jellyfin::Support::HttpLoaderBase< void, P >::parseResponse ( int statusCode,
QByteArray response )
inline

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