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,8 @@ public:
|
|||
protected:
|
||||
QString path(const GetArtistsParams& parameters) const override;
|
||||
QUrlQuery query(const GetArtistsParams& parameters) const override;
|
||||
QByteArray body(const GetArtistsParams& parameters) const override;
|
||||
QNetworkAccessManager::Operation operation() const override;
|
||||
};
|
||||
/**
|
||||
* @brief Gets an artist by name.
|
||||
|
@ -72,6 +74,8 @@ public:
|
|||
protected:
|
||||
QString path(const GetArtistByNameParams& parameters) const override;
|
||||
QUrlQuery query(const GetArtistByNameParams& parameters) const override;
|
||||
QByteArray body(const GetArtistByNameParams& parameters) const override;
|
||||
QNetworkAccessManager::Operation operation() const override;
|
||||
};
|
||||
/**
|
||||
* @brief Gets all album artists from a given item, folder, or the entire library.
|
||||
|
@ -84,6 +88,8 @@ public:
|
|||
protected:
|
||||
QString path(const GetAlbumArtistsParams& parameters) const override;
|
||||
QUrlQuery query(const GetAlbumArtistsParams& parameters) const override;
|
||||
QByteArray body(const GetAlbumArtistsParams& parameters) const override;
|
||||
QNetworkAccessManager::Operation operation() const override;
|
||||
};
|
||||
|
||||
} // NS HTTP
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue