Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
image.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_IMAGE_H
31#define JELLYFIN_LOADER_HTTP_IMAGE_H
32
33#include <optional>
34
39
40namespace Jellyfin {
41// Forward declaration
42class ApiClient;
43}
44namespace Jellyfin {
45namespace Loader {
46namespace HTTP {
47
48using namespace Jellyfin::DTO;
49
54class GetItemImageInfosLoader : public Jellyfin::Support::HttpLoader<QList<ImageInfo>, GetItemImageInfosParams> {
55public:
56 explicit GetItemImageInfosLoader(ApiClient *apiClient = nullptr);
57
58protected:
59 QString path(const GetItemImageInfosParams& parameters) const override;
60 QUrlQuery query(const GetItemImageInfosParams& parameters) const override;
61 QByteArray body(const GetItemImageInfosParams& parameters) const override;
62 QNetworkAccessManager::Operation operation() const override;
63};
68class DeleteItemImageLoader : public Jellyfin::Support::HttpLoader<void, DeleteItemImageParams> {
69public:
70 explicit DeleteItemImageLoader(ApiClient *apiClient = nullptr);
71
72protected:
73 QString path(const DeleteItemImageParams& parameters) const override;
74 QUrlQuery query(const DeleteItemImageParams& parameters) const override;
75 QByteArray body(const DeleteItemImageParams& parameters) const override;
76 QNetworkAccessManager::Operation operation() const override;
77};
82class SetItemImageLoader : public Jellyfin::Support::HttpLoader<void, SetItemImageParams> {
83public:
84 explicit SetItemImageLoader(ApiClient *apiClient = nullptr);
85
86protected:
87 QString path(const SetItemImageParams& parameters) const override;
88 QUrlQuery query(const SetItemImageParams& parameters) const override;
89 QByteArray body(const SetItemImageParams& parameters) const override;
90 QNetworkAccessManager::Operation operation() const override;
91};
96class DeleteItemImageByIndexLoader : public Jellyfin::Support::HttpLoader<void, DeleteItemImageByIndexParams> {
97public:
99
100protected:
101 QString path(const DeleteItemImageByIndexParams& parameters) const override;
102 QUrlQuery query(const DeleteItemImageByIndexParams& parameters) const override;
103 QByteArray body(const DeleteItemImageByIndexParams& parameters) const override;
104 QNetworkAccessManager::Operation operation() const override;
105};
110class SetItemImageByIndexLoader : public Jellyfin::Support::HttpLoader<void, SetItemImageByIndexParams> {
111public:
112 explicit SetItemImageByIndexLoader(ApiClient *apiClient = nullptr);
113
114protected:
115 QString path(const SetItemImageByIndexParams& parameters) const override;
116 QUrlQuery query(const SetItemImageByIndexParams& parameters) const override;
117 QByteArray body(const SetItemImageByIndexParams& parameters) const override;
118 QNetworkAccessManager::Operation operation() const override;
119};
124class UpdateItemImageIndexLoader : public Jellyfin::Support::HttpLoader<void, UpdateItemImageIndexParams> {
125public:
127
128protected:
129 QString path(const UpdateItemImageIndexParams& parameters) const override;
130 QUrlQuery query(const UpdateItemImageIndexParams& parameters) const override;
131 QByteArray body(const UpdateItemImageIndexParams& parameters) const override;
132 QNetworkAccessManager::Operation operation() const override;
133};
138class PostUserImageLoader : public Jellyfin::Support::HttpLoader<void, PostUserImageParams> {
139public:
140 explicit PostUserImageLoader(ApiClient *apiClient = nullptr);
141
142protected:
143 QString path(const PostUserImageParams& parameters) const override;
144 QUrlQuery query(const PostUserImageParams& parameters) const override;
145 QByteArray body(const PostUserImageParams& parameters) const override;
146 QNetworkAccessManager::Operation operation() const override;
147};
152class DeleteUserImageLoader : public Jellyfin::Support::HttpLoader<void, DeleteUserImageParams> {
153public:
154 explicit DeleteUserImageLoader(ApiClient *apiClient = nullptr);
155
156protected:
157 QString path(const DeleteUserImageParams& parameters) const override;
158 QUrlQuery query(const DeleteUserImageParams& parameters) const override;
159 QByteArray body(const DeleteUserImageParams& parameters) const override;
160 QNetworkAccessManager::Operation operation() const override;
161};
166class PostUserImageByIndexLoader : public Jellyfin::Support::HttpLoader<void, PostUserImageByIndexParams> {
167public:
169
170protected:
171 QString path(const PostUserImageByIndexParams& parameters) const override;
172 QUrlQuery query(const PostUserImageByIndexParams& parameters) const override;
173 QByteArray body(const PostUserImageByIndexParams& parameters) const override;
174 QNetworkAccessManager::Operation operation() const override;
175};
180class DeleteUserImageByIndexLoader : public Jellyfin::Support::HttpLoader<void, DeleteUserImageByIndexParams> {
181public:
183
184protected:
185 QString path(const DeleteUserImageByIndexParams& parameters) const override;
186 QUrlQuery query(const DeleteUserImageByIndexParams& parameters) const override;
187 QByteArray body(const DeleteUserImageByIndexParams& parameters) const override;
188 QNetworkAccessManager::Operation operation() const override;
189};
190
191} // NS HTTP
192} // NS Loader
193} // NS Jellyfin
194
195#endif // JELLYFIN_LOADER_HTTP_IMAGE_H
An Api client for Jellyfin. Handles requests and authentication.
Definition apiclient.h:90
Definition requesttypes.h:1056
Definition requesttypes.h:1293
Definition requesttypes.h:8106
Delete an item's image.
Definition image.h:96
QUrlQuery query(const DeleteItemImageByIndexParams &parameters) const override
Definition image.cpp:137
QNetworkAccessManager::Operation operation() const override
Definition image.cpp:151
DeleteItemImageByIndexLoader(ApiClient *apiClient=nullptr)
Definition image.cpp:128
QString path(const DeleteItemImageByIndexParams &parameters) const override
Definition image.cpp:131
QByteArray body(const DeleteItemImageByIndexParams &parameters) const override
Definition image.cpp:147
Delete an item's image.
Definition image.h:68
DeleteItemImageLoader(ApiClient *apiClient=nullptr)
Definition image.cpp:67
QString path(const DeleteItemImageParams &parameters) const override
Definition image.cpp:70
QByteArray body(const DeleteItemImageParams &parameters) const override
Definition image.cpp:89
QUrlQuery query(const DeleteItemImageParams &parameters) const override
Definition image.cpp:76
QNetworkAccessManager::Operation operation() const override
Definition image.cpp:93
Delete the user's image.
Definition image.h:180
QString path(const DeleteUserImageByIndexParams &parameters) const override
Definition image.cpp:314
QByteArray body(const DeleteUserImageByIndexParams &parameters) const override
Definition image.cpp:330
QUrlQuery query(const DeleteUserImageByIndexParams &parameters) const override
Definition image.cpp:320
QNetworkAccessManager::Operation operation() const override
Definition image.cpp:334
DeleteUserImageByIndexLoader(ApiClient *apiClient=nullptr)
Definition image.cpp:311
Delete the user's image.
Definition image.h:152
QNetworkAccessManager::Operation operation() const override
Definition image.cpp:276
QString path(const DeleteUserImageParams &parameters) const override
Definition image.cpp:253
DeleteUserImageLoader(ApiClient *apiClient=nullptr)
Definition image.cpp:250
QUrlQuery query(const DeleteUserImageParams &parameters) const override
Definition image.cpp:259
QByteArray body(const DeleteUserImageParams &parameters) const override
Definition image.cpp:272
Get item image infos.
Definition image.h:54
GetItemImageInfosLoader(ApiClient *apiClient=nullptr)
Definition image.cpp:38
QString path(const GetItemImageInfosParams &parameters) const override
Definition image.cpp:41
QUrlQuery query(const GetItemImageInfosParams &parameters) const override
Definition image.cpp:47
QNetworkAccessManager::Operation operation() const override
Definition image.cpp:61
QByteArray body(const GetItemImageInfosParams &parameters) const override
Definition image.cpp:57
Sets the user image.
Definition image.h:166
QNetworkAccessManager::Operation operation() const override
Definition image.cpp:305
QUrlQuery query(const PostUserImageByIndexParams &parameters) const override
Definition image.cpp:291
PostUserImageByIndexLoader(ApiClient *apiClient=nullptr)
Definition image.cpp:282
QString path(const PostUserImageByIndexParams &parameters) const override
Definition image.cpp:285
QByteArray body(const PostUserImageByIndexParams &parameters) const override
Definition image.cpp:301
Sets the user image.
Definition image.h:138
QString path(const PostUserImageParams &parameters) const override
Definition image.cpp:221
QNetworkAccessManager::Operation operation() const override
Definition image.cpp:244
QUrlQuery query(const PostUserImageParams &parameters) const override
Definition image.cpp:227
QByteArray body(const PostUserImageParams &parameters) const override
Definition image.cpp:240
PostUserImageLoader(ApiClient *apiClient=nullptr)
Definition image.cpp:218
Set item image.
Definition image.h:110
QByteArray body(const SetItemImageByIndexParams &parameters) const override
Definition image.cpp:176
QUrlQuery query(const SetItemImageByIndexParams &parameters) const override
Definition image.cpp:166
QString path(const SetItemImageByIndexParams &parameters) const override
Definition image.cpp:160
SetItemImageByIndexLoader(ApiClient *apiClient=nullptr)
Definition image.cpp:157
QNetworkAccessManager::Operation operation() const override
Definition image.cpp:180
Set item image.
Definition image.h:82
SetItemImageLoader(ApiClient *apiClient=nullptr)
Definition image.cpp:99
QUrlQuery query(const SetItemImageParams &parameters) const override
Definition image.cpp:108
QNetworkAccessManager::Operation operation() const override
Definition image.cpp:122
QByteArray body(const SetItemImageParams &parameters) const override
Definition image.cpp:118
QString path(const SetItemImageParams &parameters) const override
Definition image.cpp:102
Updates the index for an item image.
Definition image.h:124
UpdateItemImageIndexLoader(ApiClient *apiClient=nullptr)
Definition image.cpp:186
QUrlQuery query(const UpdateItemImageIndexParams &parameters) const override
Definition image.cpp:195
QString path(const UpdateItemImageIndexParams &parameters) const override
Definition image.cpp:189
QNetworkAccessManager::Operation operation() const override
Definition image.cpp:212
QByteArray body(const UpdateItemImageIndexParams &parameters) const override
Definition image.cpp:208
Definition requesttypes.h:28146
Definition requesttypes.h:28107
Definition requesttypes.h:28908
Definition requesttypes.h:28879
Definition requesttypes.h:29796
Definition loader.h:285
ApiClient * apiClient() const
Definition loader.h:95
Contains auto-generated Data Transfer Objects for the Jellyfin HTTP API.