Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
dlna.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_DLNA_H
31#define JELLYFIN_LOADER_HTTP_DLNA_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 GetProfileInfosLoader : public Jellyfin::Support::HttpLoader<QList<DeviceProfileInfo>, GetProfileInfosParams> {
57public:
58 explicit GetProfileInfosLoader(ApiClient *apiClient = nullptr);
59
60protected:
61 QString path(const GetProfileInfosParams& parameters) const override;
62 QUrlQuery query(const GetProfileInfosParams& parameters) const override;
63 QByteArray body(const GetProfileInfosParams& parameters) const override;
64 QNetworkAccessManager::Operation operation() const override;
65};
70class CreateProfileLoader : public Jellyfin::Support::HttpLoader<void, CreateProfileParams> {
71public:
72 explicit CreateProfileLoader(ApiClient *apiClient = nullptr);
73
74protected:
75 QString path(const CreateProfileParams& parameters) const override;
76 QUrlQuery query(const CreateProfileParams& parameters) const override;
77 QByteArray body(const CreateProfileParams& parameters) const override;
78 QNetworkAccessManager::Operation operation() const override;
79};
84class GetProfileLoader : public Jellyfin::Support::HttpLoader<DeviceProfile, GetProfileParams> {
85public:
86 explicit GetProfileLoader(ApiClient *apiClient = nullptr);
87
88protected:
89 QString path(const GetProfileParams& parameters) const override;
90 QUrlQuery query(const GetProfileParams& parameters) const override;
91 QByteArray body(const GetProfileParams& parameters) const override;
92 QNetworkAccessManager::Operation operation() const override;
93};
98class DeleteProfileLoader : public Jellyfin::Support::HttpLoader<void, DeleteProfileParams> {
99public:
100 explicit DeleteProfileLoader(ApiClient *apiClient = nullptr);
101
102protected:
103 QString path(const DeleteProfileParams& parameters) const override;
104 QUrlQuery query(const DeleteProfileParams& parameters) const override;
105 QByteArray body(const DeleteProfileParams& parameters) const override;
106 QNetworkAccessManager::Operation operation() const override;
107};
112class UpdateProfileLoader : public Jellyfin::Support::HttpLoader<void, UpdateProfileParams> {
113public:
114 explicit UpdateProfileLoader(ApiClient *apiClient = nullptr);
115
116protected:
117 QString path(const UpdateProfileParams& parameters) const override;
118 QUrlQuery query(const UpdateProfileParams& parameters) const override;
119 QByteArray body(const UpdateProfileParams& parameters) const override;
120 QNetworkAccessManager::Operation operation() const override;
121};
126class GetDefaultProfileLoader : public Jellyfin::Support::HttpLoader<DeviceProfile, GetDefaultProfileParams> {
127public:
128 explicit GetDefaultProfileLoader(ApiClient *apiClient = nullptr);
129
130protected:
131 QString path(const GetDefaultProfileParams& parameters) const override;
132 QUrlQuery query(const GetDefaultProfileParams& parameters) const override;
133 QByteArray body(const GetDefaultProfileParams& 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_DLNA_H
An Api client for Jellyfin. Handles requests and authentication.
Definition apiclient.h:90
Definition requesttypes.h:892
Definition requesttypes.h:1178
Definition requesttypes.h:4458
Definition requesttypes.h:14435
Definition requesttypes.h:14414
Creates a profile.
Definition dlna.h:70
QByteArray body(const CreateProfileParams &parameters) const override
Definition dlna.cpp:86
CreateProfileLoader(ApiClient *apiClient=nullptr)
Definition dlna.cpp:67
QNetworkAccessManager::Operation operation() const override
Definition dlna.cpp:90
QUrlQuery query(const CreateProfileParams &parameters) const override
Definition dlna.cpp:76
QString path(const CreateProfileParams &parameters) const override
Definition dlna.cpp:70
Deletes a profile.
Definition dlna.h:98
DeleteProfileLoader(ApiClient *apiClient=nullptr)
Definition dlna.cpp:125
QUrlQuery query(const DeleteProfileParams &parameters) const override
Definition dlna.cpp:134
QString path(const DeleteProfileParams &parameters) const override
Definition dlna.cpp:128
QNetworkAccessManager::Operation operation() const override
Definition dlna.cpp:148
QByteArray body(const DeleteProfileParams &parameters) const override
Definition dlna.cpp:144
Gets the default profile.
Definition dlna.h:126
QString path(const GetDefaultProfileParams &parameters) const override
Definition dlna.cpp:186
QNetworkAccessManager::Operation operation() const override
Definition dlna.cpp:206
GetDefaultProfileLoader(ApiClient *apiClient=nullptr)
Definition dlna.cpp:183
QByteArray body(const GetDefaultProfileParams &parameters) const override
Definition dlna.cpp:202
QUrlQuery query(const GetDefaultProfileParams &parameters) const override
Definition dlna.cpp:192
Get profile infos.
Definition dlna.h:56
QUrlQuery query(const GetProfileInfosParams &parameters) const override
Definition dlna.cpp:47
QNetworkAccessManager::Operation operation() const override
Definition dlna.cpp:61
QString path(const GetProfileInfosParams &parameters) const override
Definition dlna.cpp:41
QByteArray body(const GetProfileInfosParams &parameters) const override
Definition dlna.cpp:57
GetProfileInfosLoader(ApiClient *apiClient=nullptr)
Definition dlna.cpp:38
Gets a single profile.
Definition dlna.h:84
QByteArray body(const GetProfileParams &parameters) const override
Definition dlna.cpp:115
QString path(const GetProfileParams &parameters) const override
Definition dlna.cpp:99
QUrlQuery query(const GetProfileParams &parameters) const override
Definition dlna.cpp:105
GetProfileLoader(ApiClient *apiClient=nullptr)
Definition dlna.cpp:96
QNetworkAccessManager::Operation operation() const override
Definition dlna.cpp:119
Updates a profile.
Definition dlna.h:112
UpdateProfileLoader(ApiClient *apiClient=nullptr)
Definition dlna.cpp:154
QString path(const UpdateProfileParams &parameters) const override
Definition dlna.cpp:157
QUrlQuery query(const UpdateProfileParams &parameters) const override
Definition dlna.cpp:163
QByteArray body(const UpdateProfileParams &parameters) const override
Definition dlna.cpp:173
QNetworkAccessManager::Operation operation() const override
Definition dlna.cpp:177
Definition requesttypes.h:29983
Definition loader.h:285
ApiClient * apiClient() const
Definition loader.h:95
Contains auto-generated Data Transfer Objects for the Jellyfin HTTP API.