Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
librarystructure.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_LIBRARYSTRUCTURE_H
31#define JELLYFIN_LOADER_HTTP_LIBRARYSTRUCTURE_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 GetVirtualFoldersLoader : public Jellyfin::Support::HttpLoader<QList<VirtualFolderInfo>, GetVirtualFoldersParams> {
55public:
56 explicit GetVirtualFoldersLoader(ApiClient *apiClient = nullptr);
57
58protected:
59 QString path(const GetVirtualFoldersParams& parameters) const override;
60 QUrlQuery query(const GetVirtualFoldersParams& parameters) const override;
61 QByteArray body(const GetVirtualFoldersParams& parameters) const override;
62 QNetworkAccessManager::Operation operation() const override;
63};
68class AddVirtualFolderLoader : public Jellyfin::Support::HttpLoader<void, AddVirtualFolderParams> {
69public:
70 explicit AddVirtualFolderLoader(ApiClient *apiClient = nullptr);
71
72protected:
73 QString path(const AddVirtualFolderParams& parameters) const override;
74 QUrlQuery query(const AddVirtualFolderParams& parameters) const override;
75 QByteArray body(const AddVirtualFolderParams& parameters) const override;
76 QNetworkAccessManager::Operation operation() const override;
77};
82class RemoveVirtualFolderLoader : public Jellyfin::Support::HttpLoader<void, RemoveVirtualFolderParams> {
83public:
85
86protected:
87 QString path(const RemoveVirtualFolderParams& parameters) const override;
88 QUrlQuery query(const RemoveVirtualFolderParams& parameters) const override;
89 QByteArray body(const RemoveVirtualFolderParams& parameters) const override;
90 QNetworkAccessManager::Operation operation() const override;
91};
96class UpdateLibraryOptionsLoader : public Jellyfin::Support::HttpLoader<void, UpdateLibraryOptionsParams> {
97public:
99
100protected:
101 QString path(const UpdateLibraryOptionsParams& parameters) const override;
102 QUrlQuery query(const UpdateLibraryOptionsParams& parameters) const override;
103 QByteArray body(const UpdateLibraryOptionsParams& parameters) const override;
104 QNetworkAccessManager::Operation operation() const override;
105};
110class RenameVirtualFolderLoader : public Jellyfin::Support::HttpLoader<void, RenameVirtualFolderParams> {
111public:
112 explicit RenameVirtualFolderLoader(ApiClient *apiClient = nullptr);
113
114protected:
115 QString path(const RenameVirtualFolderParams& parameters) const override;
116 QUrlQuery query(const RenameVirtualFolderParams& parameters) const override;
117 QByteArray body(const RenameVirtualFolderParams& parameters) const override;
118 QNetworkAccessManager::Operation operation() const override;
119};
124class AddMediaPathLoader : public Jellyfin::Support::HttpLoader<void, AddMediaPathParams> {
125public:
126 explicit AddMediaPathLoader(ApiClient *apiClient = nullptr);
127
128protected:
129 QString path(const AddMediaPathParams& parameters) const override;
130 QUrlQuery query(const AddMediaPathParams& parameters) const override;
131 QByteArray body(const AddMediaPathParams& parameters) const override;
132 QNetworkAccessManager::Operation operation() const override;
133};
138class RemoveMediaPathLoader : public Jellyfin::Support::HttpLoader<void, RemoveMediaPathParams> {
139public:
140 explicit RemoveMediaPathLoader(ApiClient *apiClient = nullptr);
141
142protected:
143 QString path(const RemoveMediaPathParams& parameters) const override;
144 QUrlQuery query(const RemoveMediaPathParams& parameters) const override;
145 QByteArray body(const RemoveMediaPathParams& parameters) const override;
146 QNetworkAccessManager::Operation operation() const override;
147};
152class UpdateMediaPathLoader : public Jellyfin::Support::HttpLoader<void, UpdateMediaPathParams> {
153public:
154 explicit UpdateMediaPathLoader(ApiClient *apiClient = nullptr);
155
156protected:
157 QString path(const UpdateMediaPathParams& parameters) const override;
158 QUrlQuery query(const UpdateMediaPathParams& parameters) const override;
159 QByteArray body(const UpdateMediaPathParams& parameters) const override;
160 QNetworkAccessManager::Operation operation() const override;
161};
162
163} // NS HTTP
164} // NS Loader
165} // NS Jellyfin
166
167#endif // JELLYFIN_LOADER_HTTP_LIBRARYSTRUCTURE_H
An Api client for Jellyfin. Handles requests and authentication.
Definition apiclient.h:90
Definition requesttypes.h:203
Definition requesttypes.h:356
Definition requesttypes.h:21111
Add a media path to a library.
Definition librarystructure.h:124
QUrlQuery query(const AddMediaPathParams &parameters) const override
Definition librarystructure.cpp:219
QByteArray body(const AddMediaPathParams &parameters) const override
Definition librarystructure.cpp:232
QNetworkAccessManager::Operation operation() const override
Definition librarystructure.cpp:236
QString path(const AddMediaPathParams &parameters) const override
Definition librarystructure.cpp:213
AddMediaPathLoader(ApiClient *apiClient=nullptr)
Definition librarystructure.cpp:210
Adds a virtual folder.
Definition librarystructure.h:68
QNetworkAccessManager::Operation operation() const override
Definition librarystructure.cpp:102
QString path(const AddVirtualFolderParams &parameters) const override
Definition librarystructure.cpp:70
AddVirtualFolderLoader(ApiClient *apiClient=nullptr)
Definition librarystructure.cpp:67
QByteArray body(const AddVirtualFolderParams &parameters) const override
Definition librarystructure.cpp:98
QUrlQuery query(const AddVirtualFolderParams &parameters) const override
Definition librarystructure.cpp:76
Gets all virtual folders.
Definition librarystructure.h:54
QNetworkAccessManager::Operation operation() const override
Definition librarystructure.cpp:61
QString path(const GetVirtualFoldersParams &parameters) const override
Definition librarystructure.cpp:41
QUrlQuery query(const GetVirtualFoldersParams &parameters) const override
Definition librarystructure.cpp:47
GetVirtualFoldersLoader(ApiClient *apiClient=nullptr)
Definition librarystructure.cpp:38
QByteArray body(const GetVirtualFoldersParams &parameters) const override
Definition librarystructure.cpp:57
Remove a media path.
Definition librarystructure.h:138
QUrlQuery query(const RemoveMediaPathParams &parameters) const override
Definition librarystructure.cpp:251
RemoveMediaPathLoader(ApiClient *apiClient=nullptr)
Definition librarystructure.cpp:242
QByteArray body(const RemoveMediaPathParams &parameters) const override
Definition librarystructure.cpp:270
QNetworkAccessManager::Operation operation() const override
Definition librarystructure.cpp:274
QString path(const RemoveMediaPathParams &parameters) const override
Definition librarystructure.cpp:245
Removes a virtual folder.
Definition librarystructure.h:82
QNetworkAccessManager::Operation operation() const override
Definition librarystructure.cpp:137
QByteArray body(const RemoveVirtualFolderParams &parameters) const override
Definition librarystructure.cpp:133
RemoveVirtualFolderLoader(ApiClient *apiClient=nullptr)
Definition librarystructure.cpp:108
QUrlQuery query(const RemoveVirtualFolderParams &parameters) const override
Definition librarystructure.cpp:117
QString path(const RemoveVirtualFolderParams &parameters) const override
Definition librarystructure.cpp:111
Renames a virtual folder.
Definition librarystructure.h:110
QString path(const RenameVirtualFolderParams &parameters) const override
Definition librarystructure.cpp:175
RenameVirtualFolderLoader(ApiClient *apiClient=nullptr)
Definition librarystructure.cpp:172
QByteArray body(const RenameVirtualFolderParams &parameters) const override
Definition librarystructure.cpp:200
QUrlQuery query(const RenameVirtualFolderParams &parameters) const override
Definition librarystructure.cpp:181
QNetworkAccessManager::Operation operation() const override
Definition librarystructure.cpp:204
Update library options.
Definition librarystructure.h:96
QUrlQuery query(const UpdateLibraryOptionsParams &parameters) const override
Definition librarystructure.cpp:152
QNetworkAccessManager::Operation operation() const override
Definition librarystructure.cpp:166
QByteArray body(const UpdateLibraryOptionsParams &parameters) const override
Definition librarystructure.cpp:162
QString path(const UpdateLibraryOptionsParams &parameters) const override
Definition librarystructure.cpp:146
UpdateLibraryOptionsLoader(ApiClient *apiClient=nullptr)
Definition librarystructure.cpp:143
Updates a media path.
Definition librarystructure.h:152
QByteArray body(const UpdateMediaPathParams &parameters) const override
Definition librarystructure.cpp:302
QUrlQuery query(const UpdateMediaPathParams &parameters) const override
Definition librarystructure.cpp:289
QNetworkAccessManager::Operation operation() const override
Definition librarystructure.cpp:306
UpdateMediaPathLoader(ApiClient *apiClient=nullptr)
Definition librarystructure.cpp:280
QString path(const UpdateMediaPathParams &parameters) const override
Definition librarystructure.cpp:283
Definition requesttypes.h:28319
Definition requesttypes.h:28391
Definition requesttypes.h:28424
Definition requesttypes.h:29843
Definition requesttypes.h:29887
Definition loader.h:285
ApiClient * apiClient() const
Definition loader.h:95
Contains auto-generated Data Transfer Objects for the Jellyfin HTTP API.