mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2025-09-04 01:42:44 +00:00
Refractor ApiClient and add support for body params
ApiClient was refractored to use PIMPL. This is mainly done to reduce compile times whenever the implementation of ApiClient itself changes, since a lot of files include it. The loaders have gained support for body parameters, this was somehow omitted before.
This commit is contained in:
parent
1453cbbc63
commit
96ecd8e7d8
116 changed files with 4437 additions and 106 deletions
|
@ -60,6 +60,16 @@ QUrlQuery GetDevicesLoader::query(const GetDevicesParams ¶ms) const {
|
|||
return result;
|
||||
}
|
||||
|
||||
QByteArray GetDevicesLoader::body(const GetDevicesParams ¶ms) const {
|
||||
return QByteArray();
|
||||
}
|
||||
|
||||
QNetworkAccessManager::Operation GetDevicesLoader::operation() const {
|
||||
// HTTP method Get
|
||||
return QNetworkAccessManager::GetOperation;
|
||||
|
||||
}
|
||||
|
||||
GetDeviceInfoLoader::GetDeviceInfoLoader(ApiClient *apiClient)
|
||||
: Jellyfin::Support::HttpLoader<DeviceInfo, GetDeviceInfoParams>(apiClient) {}
|
||||
|
||||
|
@ -80,6 +90,16 @@ QUrlQuery GetDeviceInfoLoader::query(const GetDeviceInfoParams ¶ms) const {
|
|||
return result;
|
||||
}
|
||||
|
||||
QByteArray GetDeviceInfoLoader::body(const GetDeviceInfoParams ¶ms) const {
|
||||
return QByteArray();
|
||||
}
|
||||
|
||||
QNetworkAccessManager::Operation GetDeviceInfoLoader::operation() const {
|
||||
// HTTP method Get
|
||||
return QNetworkAccessManager::GetOperation;
|
||||
|
||||
}
|
||||
|
||||
GetDeviceOptionsLoader::GetDeviceOptionsLoader(ApiClient *apiClient)
|
||||
: Jellyfin::Support::HttpLoader<DeviceOptions, GetDeviceOptionsParams>(apiClient) {}
|
||||
|
||||
|
@ -100,6 +120,16 @@ QUrlQuery GetDeviceOptionsLoader::query(const GetDeviceOptionsParams ¶ms) co
|
|||
return result;
|
||||
}
|
||||
|
||||
QByteArray GetDeviceOptionsLoader::body(const GetDeviceOptionsParams ¶ms) const {
|
||||
return QByteArray();
|
||||
}
|
||||
|
||||
QNetworkAccessManager::Operation GetDeviceOptionsLoader::operation() const {
|
||||
// HTTP method Get
|
||||
return QNetworkAccessManager::GetOperation;
|
||||
|
||||
}
|
||||
|
||||
|
||||
} // NS HTTP
|
||||
} // NS Loader
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue