1
0
Fork 0
mirror of https://github.com/HenkKalkwater/harbour-sailfin.git synced 2025-09-04 01:42:44 +00:00

WIP: HttpLoader seems to work, Model still borked

This commit is contained in:
Chris Josten 2021-03-28 04:00:00 +02:00
parent e421adf733
commit 729e343661
1412 changed files with 13967 additions and 33794 deletions

View file

@ -35,8 +35,11 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {

View file

@ -35,17 +35,23 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
#include "JellyfinQt/dto/listingsproviderinfo.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {
using namespace Jellyfin::DTO;
/**
* @brief Adds a listings provider.
*/
class AddListingProviderLoader : public Jellyfin::Support::HttpLoader<Jellyfin::DTO::ListingsProviderInfo, AddListingProviderParams> {
class AddListingProviderLoader : public Jellyfin::Support::HttpLoader<ListingsProviderInfo, AddListingProviderParams> {
public:
explicit AddListingProviderLoader(ApiClient *apiClient = nullptr);

View file

@ -35,8 +35,11 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {

View file

@ -35,8 +35,11 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {

View file

@ -35,8 +35,11 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {

View file

@ -35,17 +35,23 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
#include "JellyfinQt/dto/tunerhostinfo.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {
using namespace Jellyfin::DTO;
/**
* @brief Adds a tuner host.
*/
class AddTunerHostLoader : public Jellyfin::Support::HttpLoader<Jellyfin::DTO::TunerHostInfo, AddTunerHostParams> {
class AddTunerHostLoader : public Jellyfin::Support::HttpLoader<TunerHostInfo, AddTunerHostParams> {
public:
explicit AddTunerHostLoader(ApiClient *apiClient = nullptr);

View file

@ -35,8 +35,11 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {

View file

@ -35,8 +35,11 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {

View file

@ -35,8 +35,11 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {

View file

@ -35,17 +35,23 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
#include "JellyfinQt/dto/authenticationresult.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {
using namespace Jellyfin::DTO;
/**
* @brief Authenticates a user.
*/
class AuthenticateUserLoader : public Jellyfin::Support::HttpLoader<Jellyfin::DTO::AuthenticationResult, AuthenticateUserParams> {
class AuthenticateUserLoader : public Jellyfin::Support::HttpLoader<AuthenticationResult, AuthenticateUserParams> {
public:
explicit AuthenticateUserLoader(ApiClient *apiClient = nullptr);

View file

@ -35,17 +35,23 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
#include "JellyfinQt/dto/authenticationresult.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {
using namespace Jellyfin::DTO;
/**
* @brief Authenticates a user by name.
*/
class AuthenticateUserByNameLoader : public Jellyfin::Support::HttpLoader<Jellyfin::DTO::AuthenticationResult, AuthenticateUserByNameParams> {
class AuthenticateUserByNameLoader : public Jellyfin::Support::HttpLoader<AuthenticationResult, AuthenticateUserByNameParams> {
public:
explicit AuthenticateUserByNameLoader(ApiClient *apiClient = nullptr);

View file

@ -35,17 +35,23 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
#include "JellyfinQt/dto/authenticationresult.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {
using namespace Jellyfin::DTO;
/**
* @brief Authenticates a user with quick connect.
*/
class AuthenticateWithQuickConnectLoader : public Jellyfin::Support::HttpLoader<Jellyfin::DTO::AuthenticationResult, AuthenticateWithQuickConnectParams> {
class AuthenticateWithQuickConnectLoader : public Jellyfin::Support::HttpLoader<AuthenticationResult, AuthenticateWithQuickConnectParams> {
public:
explicit AuthenticateWithQuickConnectLoader(ApiClient *apiClient = nullptr);

View file

@ -35,13 +35,29 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {
using namespace Jellyfin::DTO;
/**
* @brief Authorizes a pending quick connect request.
*/
class AuthorizeLoader : public Jellyfin::Support::HttpLoader<bool, AuthorizeParams> {
public:
explicit AuthorizeLoader(ApiClient *apiClient = nullptr);
protected:
QString path(const AuthorizeParams& parameters) const override;
QUrlQuery query(const AuthorizeParams& parameters) const override;
};
} // NS HTTP
} // NS Loader

View file

@ -35,8 +35,11 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {

View file

@ -35,8 +35,11 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {

View file

@ -35,8 +35,11 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {

View file

@ -35,8 +35,11 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {

View file

@ -35,8 +35,11 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {

View file

@ -35,8 +35,11 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {

View file

@ -35,17 +35,23 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
#include "JellyfinQt/dto/quickconnectresult.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {
using namespace Jellyfin::DTO;
/**
* @brief Attempts to retrieve authentication information.
*/
class ConnectLoader : public Jellyfin::Support::HttpLoader<Jellyfin::DTO::QuickConnectResult, ConnectParams> {
class ConnectLoader : public Jellyfin::Support::HttpLoader<QuickConnectResult, ConnectParams> {
public:
explicit ConnectLoader(ApiClient *apiClient = nullptr);

View file

@ -35,8 +35,11 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {

View file

@ -35,17 +35,23 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
#include "JellyfinQt/dto/collectioncreationresult.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {
using namespace Jellyfin::DTO;
/**
* @brief Creates a new collection.
*/
class CreateCollectionLoader : public Jellyfin::Support::HttpLoader<Jellyfin::DTO::CollectionCreationResult, CreateCollectionParams> {
class CreateCollectionLoader : public Jellyfin::Support::HttpLoader<CollectionCreationResult, CreateCollectionParams> {
public:
explicit CreateCollectionLoader(ApiClient *apiClient = nullptr);

View file

@ -35,8 +35,11 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {

View file

@ -35,17 +35,23 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
#include "JellyfinQt/dto/playlistcreationresult.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {
using namespace Jellyfin::DTO;
/**
* @brief Creates a new playlist.
*/
class CreatePlaylistLoader : public Jellyfin::Support::HttpLoader<Jellyfin::DTO::PlaylistCreationResult, CreatePlaylistParams> {
class CreatePlaylistLoader : public Jellyfin::Support::HttpLoader<PlaylistCreationResult, CreatePlaylistParams> {
public:
explicit CreatePlaylistLoader(ApiClient *apiClient = nullptr);

View file

@ -35,8 +35,11 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {

View file

@ -35,8 +35,11 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {

View file

@ -35,8 +35,11 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {

View file

@ -35,17 +35,23 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
#include "JellyfinQt/dto/userdto.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {
using namespace Jellyfin::DTO;
/**
* @brief Creates a user.
*/
class CreateUserByNameLoader : public Jellyfin::Support::HttpLoader<Jellyfin::DTO::UserDto, CreateUserByNameParams> {
class CreateUserByNameLoader : public Jellyfin::Support::HttpLoader<UserDto, CreateUserByNameParams> {
public:
explicit CreateUserByNameLoader(ApiClient *apiClient = nullptr);

View file

@ -35,13 +35,29 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {
using namespace Jellyfin::DTO;
/**
* @brief Deauthorize all quick connect devices for the current user.
*/
class DeauthorizeLoader : public Jellyfin::Support::HttpLoader<qint32, DeauthorizeParams> {
public:
explicit DeauthorizeLoader(ApiClient *apiClient = nullptr);
protected:
QString path(const DeauthorizeParams& parameters) const override;
QUrlQuery query(const DeauthorizeParams& parameters) const override;
};
} // NS HTTP
} // NS Loader

View file

@ -35,8 +35,11 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {

View file

@ -35,8 +35,11 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {

View file

@ -35,8 +35,11 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {

View file

@ -35,8 +35,11 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {

View file

@ -35,8 +35,11 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {

View file

@ -35,8 +35,11 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {

View file

@ -35,8 +35,11 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {

View file

@ -35,8 +35,11 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {

View file

@ -35,8 +35,11 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {

View file

@ -35,8 +35,11 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {

View file

@ -35,8 +35,11 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {

View file

@ -35,8 +35,11 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {

View file

@ -35,8 +35,11 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {

View file

@ -35,8 +35,11 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {

View file

@ -35,17 +35,23 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
#include "JellyfinQt/dto/useritemdatadto.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {
using namespace Jellyfin::DTO;
/**
* @brief Deletes a user's saved personal rating for an item.
*/
class DeleteUserItemRatingLoader : public Jellyfin::Support::HttpLoader<Jellyfin::DTO::UserItemDataDto, DeleteUserItemRatingParams> {
class DeleteUserItemRatingLoader : public Jellyfin::Support::HttpLoader<UserItemDataDto, DeleteUserItemRatingParams> {
public:
explicit DeleteUserItemRatingLoader(ApiClient *apiClient = nullptr);

View file

@ -35,8 +35,11 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {

View file

@ -35,13 +35,30 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
#include "JellyfinQt/dto/tunerhostinfo.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {
using namespace Jellyfin::DTO;
/**
* @brief Discover tuners.
*/
class DiscoverTunersLoader : public Jellyfin::Support::HttpLoader<QList<TunerHostInfo>, DiscoverTunersParams> {
public:
explicit DiscoverTunersLoader(ApiClient *apiClient = nullptr);
protected:
QString path(const DiscoverTunersParams& parameters) const override;
QUrlQuery query(const DiscoverTunersParams& parameters) const override;
};
} // NS HTTP
} // NS Loader

View file

@ -35,13 +35,30 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
#include "JellyfinQt/dto/tunerhostinfo.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {
using namespace Jellyfin::DTO;
/**
* @brief Discover tuners.
*/
class DiscvoverTunersLoader : public Jellyfin::Support::HttpLoader<QList<TunerHostInfo>, DiscvoverTunersParams> {
public:
explicit DiscvoverTunersLoader(ApiClient *apiClient = nullptr);
protected:
QString path(const DiscvoverTunersParams& parameters) const override;
QUrlQuery query(const DiscvoverTunersParams& parameters) const override;
};
} // NS HTTP
} // NS Loader

View file

@ -35,8 +35,11 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {

View file

@ -35,8 +35,11 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {

View file

@ -35,8 +35,11 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {

View file

@ -35,8 +35,11 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {

View file

@ -35,17 +35,23 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
#include "JellyfinQt/dto/forgotpasswordresult.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {
using namespace Jellyfin::DTO;
/**
* @brief Initiates the forgot password process for a local user.
*/
class ForgotPasswordLoader : public Jellyfin::Support::HttpLoader<Jellyfin::DTO::ForgotPasswordResult, ForgotPasswordParams> {
class ForgotPasswordLoader : public Jellyfin::Support::HttpLoader<ForgotPasswordResult, ForgotPasswordParams> {
public:
explicit ForgotPasswordLoader(ApiClient *apiClient = nullptr);

View file

@ -35,17 +35,23 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
#include "JellyfinQt/dto/pinredeemresult.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {
using namespace Jellyfin::DTO;
/**
* @brief Redeems a forgot password pin.
*/
class ForgotPasswordPinLoader : public Jellyfin::Support::HttpLoader<Jellyfin::DTO::PinRedeemResult, ForgotPasswordPinParams> {
class ForgotPasswordPinLoader : public Jellyfin::Support::HttpLoader<PinRedeemResult, ForgotPasswordPinParams> {
public:
explicit ForgotPasswordPinLoader(ApiClient *apiClient = nullptr);

View file

@ -35,17 +35,23 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
#include "JellyfinQt/dto/searchhintresult.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {
using namespace Jellyfin::DTO;
/**
* @brief Gets the search hint result.
*/
class GetLoader : public Jellyfin::Support::HttpLoader<Jellyfin::DTO::SearchHintResult, GetParams> {
class GetLoader : public Jellyfin::Support::HttpLoader<SearchHintResult, GetParams> {
public:
explicit GetLoader(ApiClient *apiClient = nullptr);

View file

@ -35,17 +35,23 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
#include "JellyfinQt/dto/baseitemdtoqueryresult.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {
using namespace Jellyfin::DTO;
/**
* @brief Gets additional parts for a video.
*/
class GetAdditionalPartLoader : public Jellyfin::Support::HttpLoader<Jellyfin::DTO::BaseItemDtoQueryResult, GetAdditionalPartParams> {
class GetAdditionalPartLoader : public Jellyfin::Support::HttpLoader<BaseItemDtoQueryResult, GetAdditionalPartParams> {
public:
explicit GetAdditionalPartLoader(ApiClient *apiClient = nullptr);

View file

@ -35,17 +35,23 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
#include "JellyfinQt/dto/baseitemdtoqueryresult.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {
using namespace Jellyfin::DTO;
/**
* @brief Gets all album artists from a given item, folder, or the entire library.
*/
class GetAlbumArtistsLoader : public Jellyfin::Support::HttpLoader<Jellyfin::DTO::BaseItemDtoQueryResult, GetAlbumArtistsParams> {
class GetAlbumArtistsLoader : public Jellyfin::Support::HttpLoader<BaseItemDtoQueryResult, GetAlbumArtistsParams> {
public:
explicit GetAlbumArtistsLoader(ApiClient *apiClient = nullptr);

View file

@ -35,13 +35,30 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
#include "JellyfinQt/dto/channelfeatures.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {
using namespace Jellyfin::DTO;
/**
* @brief Get all channel features.
*/
class GetAllChannelFeaturesLoader : public Jellyfin::Support::HttpLoader<QList<ChannelFeatures>, GetAllChannelFeaturesParams> {
public:
explicit GetAllChannelFeaturesLoader(ApiClient *apiClient = nullptr);
protected:
QString path(const GetAllChannelFeaturesParams& parameters) const override;
QUrlQuery query(const GetAllChannelFeaturesParams& parameters) const override;
};
} // NS HTTP
} // NS Loader

View file

@ -35,13 +35,30 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
#include "JellyfinQt/dto/baseitemdto.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {
using namespace Jellyfin::DTO;
/**
* @brief Gets all parents of an item.
*/
class GetAncestorsLoader : public Jellyfin::Support::HttpLoader<QList<BaseItemDto>, GetAncestorsParams> {
public:
explicit GetAncestorsLoader(ApiClient *apiClient = nullptr);
protected:
QString path(const GetAncestorsParams& parameters) const override;
QUrlQuery query(const GetAncestorsParams& parameters) const override;
};
} // NS HTTP
} // NS Loader

View file

@ -35,17 +35,23 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
#include "JellyfinQt/dto/baseitemdto.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {
using namespace Jellyfin::DTO;
/**
* @brief Gets an artist by name.
*/
class GetArtistByNameLoader : public Jellyfin::Support::HttpLoader<Jellyfin::DTO::BaseItemDto, GetArtistByNameParams> {
class GetArtistByNameLoader : public Jellyfin::Support::HttpLoader<BaseItemDto, GetArtistByNameParams> {
public:
explicit GetArtistByNameLoader(ApiClient *apiClient = nullptr);

View file

@ -35,8 +35,11 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {

View file

@ -35,17 +35,23 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
#include "JellyfinQt/dto/baseitemdtoqueryresult.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {
using namespace Jellyfin::DTO;
/**
* @brief Gets all artists from a given item, folder, or the entire library.
*/
class GetArtistsLoader : public Jellyfin::Support::HttpLoader<Jellyfin::DTO::BaseItemDtoQueryResult, GetArtistsParams> {
class GetArtistsLoader : public Jellyfin::Support::HttpLoader<BaseItemDtoQueryResult, GetArtistsParams> {
public:
explicit GetArtistsLoader(ApiClient *apiClient = nullptr);

View file

@ -35,8 +35,11 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {

View file

@ -35,8 +35,11 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {

View file

@ -35,8 +35,11 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {

View file

@ -35,13 +35,30 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
#include "JellyfinQt/dto/nameidpair.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {
using namespace Jellyfin::DTO;
/**
* @brief Get all auth providers.
*/
class GetAuthProvidersLoader : public Jellyfin::Support::HttpLoader<QList<NameIdPair>, GetAuthProvidersParams> {
public:
explicit GetAuthProvidersLoader(ApiClient *apiClient = nullptr);
protected:
QString path(const GetAuthProvidersParams& parameters) const override;
QUrlQuery query(const GetAuthProvidersParams& parameters) const override;
};
} // NS HTTP
} // NS Loader

View file

@ -35,8 +35,11 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {

View file

@ -35,13 +35,30 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
#include "JellyfinQt/dto/remotesearchresult.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {
using namespace Jellyfin::DTO;
/**
* @brief Get book remote search.
*/
class GetBookRemoteSearchResultsLoader : public Jellyfin::Support::HttpLoader<QList<RemoteSearchResult>, GetBookRemoteSearchResultsParams> {
public:
explicit GetBookRemoteSearchResultsLoader(ApiClient *apiClient = nullptr);
protected:
QString path(const GetBookRemoteSearchResultsParams& parameters) const override;
QUrlQuery query(const GetBookRemoteSearchResultsParams& parameters) const override;
};
} // NS HTTP
} // NS Loader

View file

@ -35,13 +35,30 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
#include "JellyfinQt/dto/remotesearchresult.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {
using namespace Jellyfin::DTO;
/**
* @brief Get box set remote search.
*/
class GetBoxSetRemoteSearchResultsLoader : public Jellyfin::Support::HttpLoader<QList<RemoteSearchResult>, GetBoxSetRemoteSearchResultsParams> {
public:
explicit GetBoxSetRemoteSearchResultsLoader(ApiClient *apiClient = nullptr);
protected:
QString path(const GetBoxSetRemoteSearchResultsParams& parameters) const override;
QUrlQuery query(const GetBoxSetRemoteSearchResultsParams& parameters) const override;
};
} // NS HTTP
} // NS Loader

View file

@ -35,13 +35,29 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {
using namespace Jellyfin::DTO;
/**
* @brief Gets branding css.
*/
class GetBrandingCssLoader : public Jellyfin::Support::HttpLoader<QString, GetBrandingCssParams> {
public:
explicit GetBrandingCssLoader(ApiClient *apiClient = nullptr);
protected:
QString path(const GetBrandingCssParams& parameters) const override;
QUrlQuery query(const GetBrandingCssParams& parameters) const override;
};
} // NS HTTP
} // NS Loader

View file

@ -35,13 +35,29 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {
using namespace Jellyfin::DTO;
/**
* @brief Gets branding css.
*/
class GetBrandingCss_2Loader : public Jellyfin::Support::HttpLoader<QString, GetBrandingCss_2Params> {
public:
explicit GetBrandingCss_2Loader(ApiClient *apiClient = nullptr);
protected:
QString path(const GetBrandingCss_2Params& parameters) const override;
QUrlQuery query(const GetBrandingCss_2Params& parameters) const override;
};
} // NS HTTP
} // NS Loader

View file

@ -35,17 +35,23 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
#include "JellyfinQt/dto/brandingoptions.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {
using namespace Jellyfin::DTO;
/**
* @brief Gets branding configuration.
*/
class GetBrandingOptionsLoader : public Jellyfin::Support::HttpLoader<Jellyfin::DTO::BrandingOptions, GetBrandingOptionsParams> {
class GetBrandingOptionsLoader : public Jellyfin::Support::HttpLoader<BrandingOptions, GetBrandingOptionsParams> {
public:
explicit GetBrandingOptionsLoader(ApiClient *apiClient = nullptr);

View file

@ -35,17 +35,23 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
#include "JellyfinQt/dto/baseitemdto.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {
using namespace Jellyfin::DTO;
/**
* @brief Gets a live tv channel.
*/
class GetChannelLoader : public Jellyfin::Support::HttpLoader<Jellyfin::DTO::BaseItemDto, GetChannelParams> {
class GetChannelLoader : public Jellyfin::Support::HttpLoader<BaseItemDto, GetChannelParams> {
public:
explicit GetChannelLoader(ApiClient *apiClient = nullptr);

View file

@ -35,17 +35,23 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
#include "JellyfinQt/dto/channelfeatures.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {
using namespace Jellyfin::DTO;
/**
* @brief Get channel features.
*/
class GetChannelFeaturesLoader : public Jellyfin::Support::HttpLoader<Jellyfin::DTO::ChannelFeatures, GetChannelFeaturesParams> {
class GetChannelFeaturesLoader : public Jellyfin::Support::HttpLoader<ChannelFeatures, GetChannelFeaturesParams> {
public:
explicit GetChannelFeaturesLoader(ApiClient *apiClient = nullptr);

View file

@ -35,17 +35,23 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
#include "JellyfinQt/dto/baseitemdtoqueryresult.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {
using namespace Jellyfin::DTO;
/**
* @brief Get channel items.
*/
class GetChannelItemsLoader : public Jellyfin::Support::HttpLoader<Jellyfin::DTO::BaseItemDtoQueryResult, GetChannelItemsParams> {
class GetChannelItemsLoader : public Jellyfin::Support::HttpLoader<BaseItemDtoQueryResult, GetChannelItemsParams> {
public:
explicit GetChannelItemsLoader(ApiClient *apiClient = nullptr);

View file

@ -35,17 +35,23 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
#include "JellyfinQt/dto/channelmappingoptionsdto.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {
using namespace Jellyfin::DTO;
/**
* @brief Get channel mapping options.
*/
class GetChannelMappingOptionsLoader : public Jellyfin::Support::HttpLoader<Jellyfin::DTO::ChannelMappingOptionsDto, GetChannelMappingOptionsParams> {
class GetChannelMappingOptionsLoader : public Jellyfin::Support::HttpLoader<ChannelMappingOptionsDto, GetChannelMappingOptionsParams> {
public:
explicit GetChannelMappingOptionsLoader(ApiClient *apiClient = nullptr);

View file

@ -35,17 +35,23 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
#include "JellyfinQt/dto/baseitemdtoqueryresult.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {
using namespace Jellyfin::DTO;
/**
* @brief Gets available channels.
*/
class GetChannelsLoader : public Jellyfin::Support::HttpLoader<Jellyfin::DTO::BaseItemDtoQueryResult, GetChannelsParams> {
class GetChannelsLoader : public Jellyfin::Support::HttpLoader<BaseItemDtoQueryResult, GetChannelsParams> {
public:
explicit GetChannelsLoader(ApiClient *apiClient = nullptr);

View file

@ -35,17 +35,23 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
#include "JellyfinQt/dto/serverconfiguration.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {
using namespace Jellyfin::DTO;
/**
* @brief Gets application configuration.
*/
class GetConfigurationLoader : public Jellyfin::Support::HttpLoader<Jellyfin::DTO::ServerConfiguration, GetConfigurationParams> {
class GetConfigurationLoader : public Jellyfin::Support::HttpLoader<ServerConfiguration, GetConfigurationParams> {
public:
explicit GetConfigurationLoader(ApiClient *apiClient = nullptr);

View file

@ -35,13 +35,30 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
#include "JellyfinQt/dto/configurationpageinfo.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {
using namespace Jellyfin::DTO;
/**
* @brief Gets the configuration pages.
*/
class GetConfigurationPagesLoader : public Jellyfin::Support::HttpLoader<QList<ConfigurationPageInfo>, GetConfigurationPagesParams> {
public:
explicit GetConfigurationPagesLoader(ApiClient *apiClient = nullptr);
protected:
QString path(const GetConfigurationPagesParams& parameters) const override;
QUrlQuery query(const GetConfigurationPagesParams& parameters) const override;
};
} // NS HTTP
} // NS Loader

View file

@ -35,8 +35,11 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {

View file

@ -35,8 +35,11 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {

View file

@ -35,8 +35,11 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {

View file

@ -35,8 +35,11 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {

View file

@ -35,8 +35,11 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {

View file

@ -35,8 +35,11 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {

View file

@ -35,13 +35,30 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
#include "JellyfinQt/dto/countryinfo.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {
using namespace Jellyfin::DTO;
/**
* @brief Gets known countries.
*/
class GetCountriesLoader : public Jellyfin::Support::HttpLoader<QList<CountryInfo>, GetCountriesParams> {
public:
explicit GetCountriesLoader(ApiClient *apiClient = nullptr);
protected:
QString path(const GetCountriesParams& parameters) const override;
QUrlQuery query(const GetCountriesParams& parameters) const override;
};
} // NS HTTP
} // NS Loader

View file

@ -35,17 +35,23 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
#include "JellyfinQt/dto/baseitemdtoqueryresult.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {
using namespace Jellyfin::DTO;
/**
* @brief Gets critic review for an item.
*/
class GetCriticReviewsLoader : public Jellyfin::Support::HttpLoader<Jellyfin::DTO::BaseItemDtoQueryResult, GetCriticReviewsParams> {
class GetCriticReviewsLoader : public Jellyfin::Support::HttpLoader<BaseItemDtoQueryResult, GetCriticReviewsParams> {
public:
explicit GetCriticReviewsLoader(ApiClient *apiClient = nullptr);

View file

@ -35,13 +35,30 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
#include "JellyfinQt/dto/culturedto.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {
using namespace Jellyfin::DTO;
/**
* @brief Gets known cultures.
*/
class GetCulturesLoader : public Jellyfin::Support::HttpLoader<QList<CultureDto>, GetCulturesParams> {
public:
explicit GetCulturesLoader(ApiClient *apiClient = nullptr);
protected:
QString path(const GetCulturesParams& parameters) const override;
QUrlQuery query(const GetCulturesParams& parameters) const override;
};
} // NS HTTP
} // NS Loader

View file

@ -35,17 +35,23 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
#include "JellyfinQt/dto/userdto.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {
using namespace Jellyfin::DTO;
/**
* @brief Gets the user based on auth token.
*/
class GetCurrentUserLoader : public Jellyfin::Support::HttpLoader<Jellyfin::DTO::UserDto, GetCurrentUserParams> {
class GetCurrentUserLoader : public Jellyfin::Support::HttpLoader<UserDto, GetCurrentUserParams> {
public:
explicit GetCurrentUserLoader(ApiClient *apiClient = nullptr);

View file

@ -35,8 +35,11 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {

View file

@ -35,17 +35,23 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
#include "JellyfinQt/dto/defaultdirectorybrowserinfodto.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {
using namespace Jellyfin::DTO;
/**
* @brief Get Default directory browser.
*/
class GetDefaultDirectoryBrowserLoader : public Jellyfin::Support::HttpLoader<Jellyfin::DTO::DefaultDirectoryBrowserInfoDto, GetDefaultDirectoryBrowserParams> {
class GetDefaultDirectoryBrowserLoader : public Jellyfin::Support::HttpLoader<DefaultDirectoryBrowserInfoDto, GetDefaultDirectoryBrowserParams> {
public:
explicit GetDefaultDirectoryBrowserLoader(ApiClient *apiClient = nullptr);

View file

@ -35,17 +35,23 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
#include "JellyfinQt/dto/listingsproviderinfo.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {
using namespace Jellyfin::DTO;
/**
* @brief Gets default listings provider info.
*/
class GetDefaultListingProviderLoader : public Jellyfin::Support::HttpLoader<Jellyfin::DTO::ListingsProviderInfo, GetDefaultListingProviderParams> {
class GetDefaultListingProviderLoader : public Jellyfin::Support::HttpLoader<ListingsProviderInfo, GetDefaultListingProviderParams> {
public:
explicit GetDefaultListingProviderLoader(ApiClient *apiClient = nullptr);

View file

@ -35,17 +35,23 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
#include "JellyfinQt/dto/metadataoptions.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {
using namespace Jellyfin::DTO;
/**
* @brief Gets a default MetadataOptions object.
*/
class GetDefaultMetadataOptionsLoader : public Jellyfin::Support::HttpLoader<Jellyfin::DTO::MetadataOptions, GetDefaultMetadataOptionsParams> {
class GetDefaultMetadataOptionsLoader : public Jellyfin::Support::HttpLoader<MetadataOptions, GetDefaultMetadataOptionsParams> {
public:
explicit GetDefaultMetadataOptionsLoader(ApiClient *apiClient = nullptr);

View file

@ -35,17 +35,23 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
#include "JellyfinQt/dto/deviceprofile.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {
using namespace Jellyfin::DTO;
/**
* @brief Gets the default profile.
*/
class GetDefaultProfileLoader : public Jellyfin::Support::HttpLoader<Jellyfin::DTO::DeviceProfile, GetDefaultProfileParams> {
class GetDefaultProfileLoader : public Jellyfin::Support::HttpLoader<DeviceProfile, GetDefaultProfileParams> {
public:
explicit GetDefaultProfileLoader(ApiClient *apiClient = nullptr);

View file

@ -35,17 +35,23 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
#include "JellyfinQt/dto/seriestimerinfodto.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {
using namespace Jellyfin::DTO;
/**
* @brief Gets the default values for a new timer.
*/
class GetDefaultTimerLoader : public Jellyfin::Support::HttpLoader<Jellyfin::DTO::SeriesTimerInfoDto, GetDefaultTimerParams> {
class GetDefaultTimerLoader : public Jellyfin::Support::HttpLoader<SeriesTimerInfoDto, GetDefaultTimerParams> {
public:
explicit GetDefaultTimerLoader(ApiClient *apiClient = nullptr);

View file

@ -35,8 +35,11 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {

View file

@ -35,8 +35,11 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {

View file

@ -35,17 +35,23 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
#include "JellyfinQt/dto/deviceinfo.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {
using namespace Jellyfin::DTO;
/**
* @brief Get info for a device.
*/
class GetDeviceInfoLoader : public Jellyfin::Support::HttpLoader<Jellyfin::DTO::DeviceInfo, GetDeviceInfoParams> {
class GetDeviceInfoLoader : public Jellyfin::Support::HttpLoader<DeviceInfo, GetDeviceInfoParams> {
public:
explicit GetDeviceInfoLoader(ApiClient *apiClient = nullptr);

View file

@ -35,17 +35,23 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
#include "JellyfinQt/dto/deviceoptions.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {
using namespace Jellyfin::DTO;
/**
* @brief Get options for a device.
*/
class GetDeviceOptionsLoader : public Jellyfin::Support::HttpLoader<Jellyfin::DTO::DeviceOptions, GetDeviceOptionsParams> {
class GetDeviceOptionsLoader : public Jellyfin::Support::HttpLoader<DeviceOptions, GetDeviceOptionsParams> {
public:
explicit GetDeviceOptionsLoader(ApiClient *apiClient = nullptr);

View file

@ -35,17 +35,23 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
#include "JellyfinQt/dto/deviceinfoqueryresult.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {
using namespace Jellyfin::DTO;
/**
* @brief Get Devices.
*/
class GetDevicesLoader : public Jellyfin::Support::HttpLoader<Jellyfin::DTO::DeviceInfoQueryResult, GetDevicesParams> {
class GetDevicesLoader : public Jellyfin::Support::HttpLoader<DeviceInfoQueryResult, GetDevicesParams> {
public:
explicit GetDevicesLoader(ApiClient *apiClient = nullptr);

View file

@ -35,13 +35,30 @@
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/support/loader.h"
#include "JellyfinQt/loader/requesttypes.h"
#include "JellyfinQt/apiclient.h"
#include "JellyfinQt/dto/filesystementryinfo.h"
namespace Jellyfin {
// Forward declaration
class ApiClient;
}
namespace Jellyfin {
namespace Loader {
namespace HTTP {
using namespace Jellyfin::DTO;
/**
* @brief Gets the contents of a given directory in the file system.
*/
class GetDirectoryContentsLoader : public Jellyfin::Support::HttpLoader<QList<FileSystemEntryInfo>, GetDirectoryContentsParams> {
public:
explicit GetDirectoryContentsLoader(ApiClient *apiClient = nullptr);
protected:
QString path(const GetDirectoryContentsParams& parameters) const override;
QUrlQuery query(const GetDirectoryContentsParams& parameters) const override;
};
} // NS HTTP
} // NS Loader

Some files were not shown because too many files have changed in this diff Show more