Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
package.h
Go to the documentation of this file.
1/*
2 * Sailfin: a Jellyfin client written using Qt
3 * Copyright (C) 2021 Chris Josten and the Sailfin Contributors.
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19/*
20 * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET
21 * OVERWRITTEN AT SOME POINT!
22 *
23 * If there is a bug in this file, please fix the code generator used to generate this file found in
24 * core/openapigenerator.d.
25 *
26 * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that
27 * file with a newer file if needed instead of manually updating the files.
28 */
29
30#ifndef JELLYFIN_LOADER_HTTP_PACKAGE_H
31#define JELLYFIN_LOADER_HTTP_PACKAGE_H
32
33#include <optional>
34
41
42namespace Jellyfin {
43// Forward declaration
44class ApiClient;
45}
46namespace Jellyfin {
47namespace Loader {
48namespace HTTP {
49
50using namespace Jellyfin::DTO;
51
56class GetPackagesLoader : public Jellyfin::Support::HttpLoader<QList<PackageInfo>, GetPackagesParams> {
57public:
58 explicit GetPackagesLoader(ApiClient *apiClient = nullptr);
59
60protected:
61 QString path(const GetPackagesParams& parameters) const override;
62 QUrlQuery query(const GetPackagesParams& parameters) const override;
63 QByteArray body(const GetPackagesParams& parameters) const override;
64 QNetworkAccessManager::Operation operation() const override;
65};
70class GetPackageInfoLoader : public Jellyfin::Support::HttpLoader<PackageInfo, GetPackageInfoParams> {
71public:
72 explicit GetPackageInfoLoader(ApiClient *apiClient = nullptr);
73
74protected:
75 QString path(const GetPackageInfoParams& parameters) const override;
76 QUrlQuery query(const GetPackageInfoParams& parameters) const override;
77 QByteArray body(const GetPackageInfoParams& parameters) const override;
78 QNetworkAccessManager::Operation operation() const override;
79};
84class InstallPackageLoader : public Jellyfin::Support::HttpLoader<void, InstallPackageParams> {
85public:
86 explicit InstallPackageLoader(ApiClient *apiClient = nullptr);
87
88protected:
89 QString path(const InstallPackageParams& parameters) const override;
90 QUrlQuery query(const InstallPackageParams& parameters) const override;
91 QByteArray body(const InstallPackageParams& parameters) const override;
92 QNetworkAccessManager::Operation operation() const override;
93};
98class CancelPackageInstallationLoader : public Jellyfin::Support::HttpLoader<void, CancelPackageInstallationParams> {
99public:
101
102protected:
103 QString path(const CancelPackageInstallationParams& parameters) const override;
104 QUrlQuery query(const CancelPackageInstallationParams& parameters) const override;
105 QByteArray body(const CancelPackageInstallationParams& parameters) const override;
106 QNetworkAccessManager::Operation operation() const override;
107};
112class GetRepositoriesLoader : public Jellyfin::Support::HttpLoader<QList<RepositoryInfo>, GetRepositoriesParams> {
113public:
114 explicit GetRepositoriesLoader(ApiClient *apiClient = nullptr);
115
116protected:
117 QString path(const GetRepositoriesParams& parameters) const override;
118 QUrlQuery query(const GetRepositoriesParams& parameters) const override;
119 QByteArray body(const GetRepositoriesParams& parameters) const override;
120 QNetworkAccessManager::Operation operation() const override;
121};
126class SetRepositoriesLoader : public Jellyfin::Support::HttpLoader<void, SetRepositoriesParams> {
127public:
128 explicit SetRepositoriesLoader(ApiClient *apiClient = nullptr);
129
130protected:
131 QString path(const SetRepositoriesParams& parameters) const override;
132 QUrlQuery query(const SetRepositoriesParams& parameters) const override;
133 QByteArray body(const SetRepositoriesParams& parameters) const override;
134 QNetworkAccessManager::Operation operation() const override;
135};
136
137} // NS HTTP
138} // NS Loader
139} // NS Jellyfin
140
141#endif // JELLYFIN_LOADER_HTTP_PACKAGE_H
An Api client for Jellyfin. Handles requests and authentication.
Definition apiclient.h:90
Definition requesttypes.h:13363
Definition requesttypes.h:13394
Definition requesttypes.h:15525
Cancels a package installation.
Definition package.h:98
QUrlQuery query(const CancelPackageInstallationParams &parameters) const override
Definition package.cpp:146
QByteArray body(const CancelPackageInstallationParams &parameters) const override
Definition package.cpp:156
QNetworkAccessManager::Operation operation() const override
Definition package.cpp:160
CancelPackageInstallationLoader(ApiClient *apiClient=nullptr)
Definition package.cpp:137
QString path(const CancelPackageInstallationParams &parameters) const override
Definition package.cpp:140
Gets a package by name or assembly GUID.
Definition package.h:70
QNetworkAccessManager::Operation operation() const override
Definition package.cpp:93
QString path(const GetPackageInfoParams &parameters) const override
Definition package.cpp:70
GetPackageInfoLoader(ApiClient *apiClient=nullptr)
Definition package.cpp:67
QUrlQuery query(const GetPackageInfoParams &parameters) const override
Definition package.cpp:76
QByteArray body(const GetPackageInfoParams &parameters) const override
Definition package.cpp:89
Gets available packages.
Definition package.h:56
QNetworkAccessManager::Operation operation() const override
Definition package.cpp:61
QString path(const GetPackagesParams &parameters) const override
Definition package.cpp:41
QUrlQuery query(const GetPackagesParams &parameters) const override
Definition package.cpp:47
GetPackagesLoader(ApiClient *apiClient=nullptr)
Definition package.cpp:38
QByteArray body(const GetPackagesParams &parameters) const override
Definition package.cpp:57
Gets all package repositories.
Definition package.h:112
GetRepositoriesLoader(ApiClient *apiClient=nullptr)
Definition package.cpp:166
QString path(const GetRepositoriesParams &parameters) const override
Definition package.cpp:169
QByteArray body(const GetRepositoriesParams &parameters) const override
Definition package.cpp:185
QUrlQuery query(const GetRepositoriesParams &parameters) const override
Definition package.cpp:175
QNetworkAccessManager::Operation operation() const override
Definition package.cpp:189
Installs a package.
Definition package.h:84
InstallPackageLoader(ApiClient *apiClient=nullptr)
Definition package.cpp:99
QNetworkAccessManager::Operation operation() const override
Definition package.cpp:131
QByteArray body(const InstallPackageParams &parameters) const override
Definition package.cpp:127
QString path(const InstallPackageParams &parameters) const override
Definition package.cpp:102
QUrlQuery query(const InstallPackageParams &parameters) const override
Definition package.cpp:108
Sets the enabled and existing package repositories.
Definition package.h:126
QByteArray body(const SetRepositoriesParams &parameters) const override
Definition package.cpp:214
QUrlQuery query(const SetRepositoriesParams &parameters) const override
Definition package.cpp:204
SetRepositoriesLoader(ApiClient *apiClient=nullptr)
Definition package.cpp:195
QString path(const SetRepositoriesParams &parameters) const override
Definition package.cpp:198
QNetworkAccessManager::Operation operation() const override
Definition package.cpp:218
Definition requesttypes.h:27029
Definition requesttypes.h:28988
Definition loader.h:285
ApiClient * apiClient() const
Definition loader.h:95
Contains auto-generated Data Transfer Objects for the Jellyfin HTTP API.