Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
configuration.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_CONFIGURATION_H
31#define JELLYFIN_LOADER_HTTP_CONFIGURATION_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 GetConfigurationLoader : public Jellyfin::Support::HttpLoader<ServerConfiguration, GetConfigurationParams> {
56public:
57 explicit GetConfigurationLoader(ApiClient *apiClient = nullptr);
58
59protected:
60 QString path(const GetConfigurationParams& parameters) const override;
61 QUrlQuery query(const GetConfigurationParams& parameters) const override;
62 QByteArray body(const GetConfigurationParams& parameters) const override;
63 QNetworkAccessManager::Operation operation() const override;
64};
69class UpdateConfigurationLoader : public Jellyfin::Support::HttpLoader<void, UpdateConfigurationParams> {
70public:
72
73protected:
74 QString path(const UpdateConfigurationParams& parameters) const override;
75 QUrlQuery query(const UpdateConfigurationParams& parameters) const override;
76 QByteArray body(const UpdateConfigurationParams& parameters) const override;
77 QNetworkAccessManager::Operation operation() const override;
78};
83class GetNamedConfigurationLoader : public Jellyfin::Support::HttpLoader<QString, GetNamedConfigurationParams> {
84public:
86
87protected:
88 QString path(const GetNamedConfigurationParams& parameters) const override;
89 QUrlQuery query(const GetNamedConfigurationParams& parameters) const override;
90 QByteArray body(const GetNamedConfigurationParams& parameters) const override;
91 QNetworkAccessManager::Operation operation() const override;
92};
97class UpdateNamedConfigurationLoader : public Jellyfin::Support::HttpLoader<void, UpdateNamedConfigurationParams> {
98public:
100
101protected:
102 QString path(const UpdateNamedConfigurationParams& parameters) const override;
103 QUrlQuery query(const UpdateNamedConfigurationParams& parameters) const override;
104 QByteArray body(const UpdateNamedConfigurationParams& parameters) const override;
105 QNetworkAccessManager::Operation operation() const override;
106};
111class GetDefaultMetadataOptionsLoader : public Jellyfin::Support::HttpLoader<MetadataOptions, GetDefaultMetadataOptionsParams> {
112public:
114
115protected:
116 QString path(const GetDefaultMetadataOptionsParams& parameters) const override;
117 QUrlQuery query(const GetDefaultMetadataOptionsParams& parameters) const override;
118 QByteArray body(const GetDefaultMetadataOptionsParams& parameters) const override;
119 QNetworkAccessManager::Operation operation() const override;
120};
125class UpdateMediaEncoderPathLoader : public Jellyfin::Support::HttpLoader<void, UpdateMediaEncoderPathParams> {
126public:
128
129protected:
130 QString path(const UpdateMediaEncoderPathParams& parameters) const override;
131 QUrlQuery query(const UpdateMediaEncoderPathParams& parameters) const override;
132 QByteArray body(const UpdateMediaEncoderPathParams& parameters) const override;
133 QNetworkAccessManager::Operation operation() const override;
134};
135
136} // NS HTTP
137} // NS Loader
138} // NS Jellyfin
139
140#endif // JELLYFIN_LOADER_HTTP_CONFIGURATION_H
An Api client for Jellyfin. Handles requests and authentication.
Definition apiclient.h:90
Definition requesttypes.h:4164
Definition requesttypes.h:13128
Gets application configuration.
Definition configuration.h:55
QByteArray body(const GetConfigurationParams &parameters) const override
Definition configuration.cpp:57
GetConfigurationLoader(ApiClient *apiClient=nullptr)
Definition configuration.cpp:38
QNetworkAccessManager::Operation operation() const override
Definition configuration.cpp:61
QUrlQuery query(const GetConfigurationParams &parameters) const override
Definition configuration.cpp:47
QString path(const GetConfigurationParams &parameters) const override
Definition configuration.cpp:41
Gets a default MetadataOptions object.
Definition configuration.h:111
QUrlQuery query(const GetDefaultMetadataOptionsParams &parameters) const override
Definition configuration.cpp:163
GetDefaultMetadataOptionsLoader(ApiClient *apiClient=nullptr)
Definition configuration.cpp:154
QString path(const GetDefaultMetadataOptionsParams &parameters) const override
Definition configuration.cpp:157
QNetworkAccessManager::Operation operation() const override
Definition configuration.cpp:177
QByteArray body(const GetDefaultMetadataOptionsParams &parameters) const override
Definition configuration.cpp:173
Gets a named configuration.
Definition configuration.h:83
QNetworkAccessManager::Operation operation() const override
Definition configuration.cpp:119
QUrlQuery query(const GetNamedConfigurationParams &parameters) const override
Definition configuration.cpp:105
QString path(const GetNamedConfigurationParams &parameters) const override
Definition configuration.cpp:99
GetNamedConfigurationLoader(ApiClient *apiClient=nullptr)
Definition configuration.cpp:96
QByteArray body(const GetNamedConfigurationParams &parameters) const override
Definition configuration.cpp:115
Updates application configuration.
Definition configuration.h:69
QUrlQuery query(const UpdateConfigurationParams &parameters) const override
Definition configuration.cpp:76
QNetworkAccessManager::Operation operation() const override
Definition configuration.cpp:90
QByteArray body(const UpdateConfigurationParams &parameters) const override
Definition configuration.cpp:86
UpdateConfigurationLoader(ApiClient *apiClient=nullptr)
Definition configuration.cpp:67
QString path(const UpdateConfigurationParams &parameters) const override
Definition configuration.cpp:70
Updates the path to the media encoder.
Definition configuration.h:125
QUrlQuery query(const UpdateMediaEncoderPathParams &parameters) const override
Definition configuration.cpp:192
QString path(const UpdateMediaEncoderPathParams &parameters) const override
Definition configuration.cpp:186
QByteArray body(const UpdateMediaEncoderPathParams &parameters) const override
Definition configuration.cpp:202
UpdateMediaEncoderPathLoader(ApiClient *apiClient=nullptr)
Definition configuration.cpp:183
QNetworkAccessManager::Operation operation() const override
Definition configuration.cpp:206
Updates named configuration.
Definition configuration.h:97
UpdateNamedConfigurationLoader(ApiClient *apiClient=nullptr)
Definition configuration.cpp:125
QUrlQuery query(const UpdateNamedConfigurationParams &parameters) const override
Definition configuration.cpp:134
QString path(const UpdateNamedConfigurationParams &parameters) const override
Definition configuration.cpp:128
QNetworkAccessManager::Operation operation() const override
Definition configuration.cpp:148
QByteArray body(const UpdateNamedConfigurationParams &parameters) const override
Definition configuration.cpp:144
Definition requesttypes.h:29615
Definition requesttypes.h:29865
Definition loader.h:285
ApiClient * apiClient() const
Definition loader.h:95
Contains auto-generated Data Transfer Objects for the Jellyfin HTTP API.