Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
plugins.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_PLUGINS_H
31#define JELLYFIN_LOADER_HTTP_PLUGINS_H
32
33#include <optional>
34
40
41namespace Jellyfin {
42// Forward declaration
43class ApiClient;
44}
45namespace Jellyfin {
46namespace Loader {
47namespace HTTP {
48
49using namespace Jellyfin::DTO;
50
55class GetPluginsLoader : public Jellyfin::Support::HttpLoader<QList<PluginInfo>, GetPluginsParams> {
56public:
57 explicit GetPluginsLoader(ApiClient *apiClient = nullptr);
58
59protected:
60 QString path(const GetPluginsParams& parameters) const override;
61 QUrlQuery query(const GetPluginsParams& parameters) const override;
62 QByteArray body(const GetPluginsParams& parameters) const override;
63 QNetworkAccessManager::Operation operation() const override;
64};
69class UninstallPluginLoader : public Jellyfin::Support::HttpLoader<void, UninstallPluginParams> {
70public:
71 explicit UninstallPluginLoader(ApiClient *apiClient = nullptr);
72
73protected:
74 QString path(const UninstallPluginParams& parameters) const override;
75 QUrlQuery query(const UninstallPluginParams& parameters) const override;
76 QByteArray body(const UninstallPluginParams& parameters) const override;
77 QNetworkAccessManager::Operation operation() const override;
78};
83class UninstallPluginByVersionLoader : public Jellyfin::Support::HttpLoader<void, UninstallPluginByVersionParams> {
84public:
86
87protected:
88 QString path(const UninstallPluginByVersionParams& parameters) const override;
89 QUrlQuery query(const UninstallPluginByVersionParams& parameters) const override;
90 QByteArray body(const UninstallPluginByVersionParams& parameters) const override;
91 QNetworkAccessManager::Operation operation() const override;
92};
97class DisablePluginLoader : public Jellyfin::Support::HttpLoader<void, DisablePluginParams> {
98public:
99 explicit DisablePluginLoader(ApiClient *apiClient = nullptr);
100
101protected:
102 QString path(const DisablePluginParams& parameters) const override;
103 QUrlQuery query(const DisablePluginParams& parameters) const override;
104 QByteArray body(const DisablePluginParams& parameters) const override;
105 QNetworkAccessManager::Operation operation() const override;
106};
111class EnablePluginLoader : public Jellyfin::Support::HttpLoader<void, EnablePluginParams> {
112public:
113 explicit EnablePluginLoader(ApiClient *apiClient = nullptr);
114
115protected:
116 QString path(const EnablePluginParams& parameters) const override;
117 QUrlQuery query(const EnablePluginParams& parameters) const override;
118 QByteArray body(const EnablePluginParams& parameters) const override;
119 QNetworkAccessManager::Operation operation() const override;
120};
125class GetPluginConfigurationLoader : public Jellyfin::Support::HttpLoader<BasePluginConfiguration, GetPluginConfigurationParams> {
126public:
128
129protected:
130 QString path(const GetPluginConfigurationParams& parameters) const override;
131 QUrlQuery query(const GetPluginConfigurationParams& parameters) const override;
132 QByteArray body(const GetPluginConfigurationParams& parameters) const override;
133 QNetworkAccessManager::Operation operation() const override;
134};
139class UpdatePluginConfigurationLoader : public Jellyfin::Support::HttpLoader<void, UpdatePluginConfigurationParams> {
140public:
142
143protected:
144 QString path(const UpdatePluginConfigurationParams& parameters) const override;
145 QUrlQuery query(const UpdatePluginConfigurationParams& parameters) const override;
146 QByteArray body(const UpdatePluginConfigurationParams& parameters) const override;
147 QNetworkAccessManager::Operation operation() const override;
148};
153class GetPluginManifestLoader : public Jellyfin::Support::HttpLoader<void, GetPluginManifestParams> {
154public:
155 explicit GetPluginManifestLoader(ApiClient *apiClient = nullptr);
156
157protected:
158 QString path(const GetPluginManifestParams& parameters) const override;
159 QUrlQuery query(const GetPluginManifestParams& parameters) const override;
160 QByteArray body(const GetPluginManifestParams& parameters) const override;
161 QNetworkAccessManager::Operation operation() const override;
162};
167class UpdatePluginSecurityInfoLoader : public Jellyfin::Support::HttpLoader<void, UpdatePluginSecurityInfoParams> {
168public:
170
171protected:
172 QString path(const UpdatePluginSecurityInfoParams& parameters) const override;
173 QUrlQuery query(const UpdatePluginSecurityInfoParams& parameters) const override;
174 QByteArray body(const UpdatePluginSecurityInfoParams& parameters) const override;
175 QNetworkAccessManager::Operation operation() const override;
176};
177
178} // NS HTTP
179} // NS Loader
180} // NS Jellyfin
181
182#endif // JELLYFIN_LOADER_HTTP_PLUGINS_H
An Api client for Jellyfin. Handles requests and authentication.
Definition apiclient.h:90
Definition requesttypes.h:1398
Definition requesttypes.h:1586
Definition requesttypes.h:14160
Definition requesttypes.h:14210
Definition requesttypes.h:14231
Disable a plugin.
Definition plugins.h:97
QByteArray body(const DisablePluginParams &parameters) const override
Definition plugins.cpp:144
QNetworkAccessManager::Operation operation() const override
Definition plugins.cpp:148
QString path(const DisablePluginParams &parameters) const override
Definition plugins.cpp:128
QUrlQuery query(const DisablePluginParams &parameters) const override
Definition plugins.cpp:134
DisablePluginLoader(ApiClient *apiClient=nullptr)
Definition plugins.cpp:125
Enables a disabled plugin.
Definition plugins.h:111
EnablePluginLoader(ApiClient *apiClient=nullptr)
Definition plugins.cpp:154
QByteArray body(const EnablePluginParams &parameters) const override
Definition plugins.cpp:173
QUrlQuery query(const EnablePluginParams &parameters) const override
Definition plugins.cpp:163
QNetworkAccessManager::Operation operation() const override
Definition plugins.cpp:177
QString path(const EnablePluginParams &parameters) const override
Definition plugins.cpp:157
Gets plugin configuration.
Definition plugins.h:125
QNetworkAccessManager::Operation operation() const override
Definition plugins.cpp:206
QString path(const GetPluginConfigurationParams &parameters) const override
Definition plugins.cpp:186
GetPluginConfigurationLoader(ApiClient *apiClient=nullptr)
Definition plugins.cpp:183
QUrlQuery query(const GetPluginConfigurationParams &parameters) const override
Definition plugins.cpp:192
QByteArray body(const GetPluginConfigurationParams &parameters) const override
Definition plugins.cpp:202
Gets a plugin's manifest.
Definition plugins.h:153
QString path(const GetPluginManifestParams &parameters) const override
Definition plugins.cpp:244
QNetworkAccessManager::Operation operation() const override
Definition plugins.cpp:264
QUrlQuery query(const GetPluginManifestParams &parameters) const override
Definition plugins.cpp:250
GetPluginManifestLoader(ApiClient *apiClient=nullptr)
Definition plugins.cpp:241
QByteArray body(const GetPluginManifestParams &parameters) const override
Definition plugins.cpp:260
Gets a list of currently installed plugins.
Definition plugins.h:55
QNetworkAccessManager::Operation operation() const override
Definition plugins.cpp:61
QString path(const GetPluginsParams &parameters) const override
Definition plugins.cpp:41
GetPluginsLoader(ApiClient *apiClient=nullptr)
Definition plugins.cpp:38
QUrlQuery query(const GetPluginsParams &parameters) const override
Definition plugins.cpp:47
QByteArray body(const GetPluginsParams &parameters) const override
Definition plugins.cpp:57
Uninstalls a plugin by version.
Definition plugins.h:83
QByteArray body(const UninstallPluginByVersionParams &parameters) const override
Definition plugins.cpp:115
QString path(const UninstallPluginByVersionParams &parameters) const override
Definition plugins.cpp:99
QNetworkAccessManager::Operation operation() const override
Definition plugins.cpp:119
UninstallPluginByVersionLoader(ApiClient *apiClient=nullptr)
Definition plugins.cpp:96
QUrlQuery query(const UninstallPluginByVersionParams &parameters) const override
Definition plugins.cpp:105
Uninstalls a plugin.
Definition plugins.h:69
UninstallPluginLoader(ApiClient *apiClient=nullptr)
Definition plugins.cpp:67
QUrlQuery query(const UninstallPluginParams &parameters) const override
Definition plugins.cpp:76
QNetworkAccessManager::Operation operation() const override
Definition plugins.cpp:90
QByteArray body(const UninstallPluginParams &parameters) const override
Definition plugins.cpp:86
QString path(const UninstallPluginParams &parameters) const override
Definition plugins.cpp:70
Updates plugin configuration.
Definition plugins.h:139
QNetworkAccessManager::Operation operation() const override
Definition plugins.cpp:235
QString path(const UpdatePluginConfigurationParams &parameters) const override
Definition plugins.cpp:215
QUrlQuery query(const UpdatePluginConfigurationParams &parameters) const override
Definition plugins.cpp:221
QByteArray body(const UpdatePluginConfigurationParams &parameters) const override
Definition plugins.cpp:231
UpdatePluginConfigurationLoader(ApiClient *apiClient=nullptr)
Definition plugins.cpp:212
Updates plugin security info.
Definition plugins.h:167
QByteArray body(const UpdatePluginSecurityInfoParams &parameters) const override
Definition plugins.cpp:289
QNetworkAccessManager::Operation operation() const override
Definition plugins.cpp:293
QUrlQuery query(const UpdatePluginSecurityInfoParams &parameters) const override
Definition plugins.cpp:279
QString path(const UpdatePluginSecurityInfoParams &parameters) const override
Definition plugins.cpp:273
UpdatePluginSecurityInfoLoader(ApiClient *apiClient=nullptr)
Definition plugins.cpp:270
Definition requesttypes.h:29536
Definition loader.h:285
ApiClient * apiClient() const
Definition loader.h:95
Contains auto-generated Data Transfer Objects for the Jellyfin HTTP API.