Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
devices.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_DEVICES_H
31#define JELLYFIN_LOADER_HTTP_DEVICES_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 GetDevicesLoader : public Jellyfin::Support::HttpLoader<DeviceInfoQueryResult, GetDevicesParams> {
57public:
58 explicit GetDevicesLoader(ApiClient *apiClient = nullptr);
59
60protected:
61 QString path(const GetDevicesParams& parameters) const override;
62 QUrlQuery query(const GetDevicesParams& parameters) const override;
63 QByteArray body(const GetDevicesParams& parameters) const override;
64 QNetworkAccessManager::Operation operation() const override;
65};
70class DeleteDeviceLoader : public Jellyfin::Support::HttpLoader<void, DeleteDeviceParams> {
71public:
72 explicit DeleteDeviceLoader(ApiClient *apiClient = nullptr);
73
74protected:
75 QString path(const DeleteDeviceParams& parameters) const override;
76 QUrlQuery query(const DeleteDeviceParams& parameters) const override;
77 QByteArray body(const DeleteDeviceParams& parameters) const override;
78 QNetworkAccessManager::Operation operation() const override;
79};
84class GetDeviceInfoLoader : public Jellyfin::Support::HttpLoader<DeviceInfo, GetDeviceInfoParams> {
85public:
86 explicit GetDeviceInfoLoader(ApiClient *apiClient = nullptr);
87
88protected:
89 QString path(const GetDeviceInfoParams& parameters) const override;
90 QUrlQuery query(const GetDeviceInfoParams& parameters) const override;
91 QByteArray body(const GetDeviceInfoParams& parameters) const override;
92 QNetworkAccessManager::Operation operation() const override;
93};
98class GetDeviceOptionsLoader : public Jellyfin::Support::HttpLoader<DeviceOptions, GetDeviceOptionsParams> {
99public:
100 explicit GetDeviceOptionsLoader(ApiClient *apiClient = nullptr);
101
102protected:
103 QString path(const GetDeviceOptionsParams& parameters) const override;
104 QUrlQuery query(const GetDeviceOptionsParams& parameters) const override;
105 QByteArray body(const GetDeviceOptionsParams& parameters) const override;
106 QNetworkAccessManager::Operation operation() const override;
107};
112class UpdateDeviceOptionsLoader : public Jellyfin::Support::HttpLoader<void, UpdateDeviceOptionsParams> {
113public:
114 explicit UpdateDeviceOptionsLoader(ApiClient *apiClient = nullptr);
115
116protected:
117 QString path(const UpdateDeviceOptionsParams& parameters) const override;
118 QUrlQuery query(const UpdateDeviceOptionsParams& parameters) const override;
119 QByteArray body(const UpdateDeviceOptionsParams& parameters) const override;
120 QNetworkAccessManager::Operation operation() const override;
121};
122
123} // NS HTTP
124} // NS Loader
125} // NS Jellyfin
126
127#endif // JELLYFIN_LOADER_HTTP_DEVICES_H
An Api client for Jellyfin. Handles requests and authentication.
Definition apiclient.h:90
Definition requesttypes.h:1014
Definition requesttypes.h:4536
Definition requesttypes.h:4557
Definition requesttypes.h:4578
Deletes a device.
Definition devices.h:70
DeleteDeviceLoader(ApiClient *apiClient=nullptr)
Definition devices.cpp:73
QNetworkAccessManager::Operation operation() const override
Definition devices.cpp:97
QUrlQuery query(const DeleteDeviceParams &parameters) const override
Definition devices.cpp:82
QByteArray body(const DeleteDeviceParams &parameters) const override
Definition devices.cpp:93
QString path(const DeleteDeviceParams &parameters) const override
Definition devices.cpp:76
Get info for a device.
Definition devices.h:84
QString path(const GetDeviceInfoParams &parameters) const override
Definition devices.cpp:106
GetDeviceInfoLoader(ApiClient *apiClient=nullptr)
Definition devices.cpp:103
QNetworkAccessManager::Operation operation() const override
Definition devices.cpp:127
QByteArray body(const GetDeviceInfoParams &parameters) const override
Definition devices.cpp:123
QUrlQuery query(const GetDeviceInfoParams &parameters) const override
Definition devices.cpp:112
Get options for a device.
Definition devices.h:98
QByteArray body(const GetDeviceOptionsParams &parameters) const override
Definition devices.cpp:153
QString path(const GetDeviceOptionsParams &parameters) const override
Definition devices.cpp:136
QNetworkAccessManager::Operation operation() const override
Definition devices.cpp:157
QUrlQuery query(const GetDeviceOptionsParams &parameters) const override
Definition devices.cpp:142
GetDeviceOptionsLoader(ApiClient *apiClient=nullptr)
Definition devices.cpp:133
Get Devices.
Definition devices.h:56
QString path(const GetDevicesParams &parameters) const override
Definition devices.cpp:41
QByteArray body(const GetDevicesParams &parameters) const override
Definition devices.cpp:63
QUrlQuery query(const GetDevicesParams &parameters) const override
Definition devices.cpp:47
QNetworkAccessManager::Operation operation() const override
Definition devices.cpp:67
GetDevicesLoader(ApiClient *apiClient=nullptr)
Definition devices.cpp:38
Update device options.
Definition devices.h:112
QUrlQuery query(const UpdateDeviceOptionsParams &parameters) const override
Definition devices.cpp:172
QNetworkAccessManager::Operation operation() const override
Definition devices.cpp:187
QByteArray body(const UpdateDeviceOptionsParams &parameters) const override
Definition devices.cpp:183
QString path(const UpdateDeviceOptionsParams &parameters) const override
Definition devices.cpp:166
UpdateDeviceOptionsLoader(ApiClient *apiClient=nullptr)
Definition devices.cpp:163
Definition requesttypes.h:29637
Definition loader.h:285
ApiClient * apiClient() const
Definition loader.h:95
Contains auto-generated Data Transfer Objects for the Jellyfin HTTP API.