Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
system.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_SYSTEM_H
31#define JELLYFIN_LOADER_HTTP_SYSTEM_H
32
33#include <optional>
34
43
44namespace Jellyfin {
45// Forward declaration
46class ApiClient;
47}
48namespace Jellyfin {
49namespace Loader {
50namespace HTTP {
51
52using namespace Jellyfin::DTO;
53
58class GetEndpointInfoLoader : public Jellyfin::Support::HttpLoader<EndPointInfo, GetEndpointInfoParams> {
59public:
60 explicit GetEndpointInfoLoader(ApiClient *apiClient = nullptr);
61
62protected:
63 QString path(const GetEndpointInfoParams& parameters) const override;
64 QUrlQuery query(const GetEndpointInfoParams& parameters) const override;
65 QByteArray body(const GetEndpointInfoParams& parameters) const override;
66 QNetworkAccessManager::Operation operation() const override;
67};
72class GetSystemInfoLoader : public Jellyfin::Support::HttpLoader<SystemInfo, GetSystemInfoParams> {
73public:
74 explicit GetSystemInfoLoader(ApiClient *apiClient = nullptr);
75
76protected:
77 QString path(const GetSystemInfoParams& parameters) const override;
78 QUrlQuery query(const GetSystemInfoParams& parameters) const override;
79 QByteArray body(const GetSystemInfoParams& parameters) const override;
80 QNetworkAccessManager::Operation operation() const override;
81};
86class GetPublicSystemInfoLoader : public Jellyfin::Support::HttpLoader<PublicSystemInfo, GetPublicSystemInfoParams> {
87public:
89
90protected:
91 QString path(const GetPublicSystemInfoParams& parameters) const override;
92 QUrlQuery query(const GetPublicSystemInfoParams& parameters) const override;
93 QByteArray body(const GetPublicSystemInfoParams& parameters) const override;
94 QNetworkAccessManager::Operation operation() const override;
95};
100class GetServerLogsLoader : public Jellyfin::Support::HttpLoader<QList<LogFile>, GetServerLogsParams> {
101public:
102 explicit GetServerLogsLoader(ApiClient *apiClient = nullptr);
103
104protected:
105 QString path(const GetServerLogsParams& parameters) const override;
106 QUrlQuery query(const GetServerLogsParams& parameters) const override;
107 QByteArray body(const GetServerLogsParams& parameters) const override;
108 QNetworkAccessManager::Operation operation() const override;
109};
114class GetPingSystemLoader : public Jellyfin::Support::HttpLoader<QString, GetPingSystemParams> {
115public:
116 explicit GetPingSystemLoader(ApiClient *apiClient = nullptr);
117
118protected:
119 QString path(const GetPingSystemParams& parameters) const override;
120 QUrlQuery query(const GetPingSystemParams& parameters) const override;
121 QByteArray body(const GetPingSystemParams& parameters) const override;
122 QNetworkAccessManager::Operation operation() const override;
123};
128class PostPingSystemLoader : public Jellyfin::Support::HttpLoader<QString, PostPingSystemParams> {
129public:
130 explicit PostPingSystemLoader(ApiClient *apiClient = nullptr);
131
132protected:
133 QString path(const PostPingSystemParams& parameters) const override;
134 QUrlQuery query(const PostPingSystemParams& parameters) const override;
135 QByteArray body(const PostPingSystemParams& parameters) const override;
136 QNetworkAccessManager::Operation operation() const override;
137};
142class RestartApplicationLoader : public Jellyfin::Support::HttpLoader<void, RestartApplicationParams> {
143public:
144 explicit RestartApplicationLoader(ApiClient *apiClient = nullptr);
145
146protected:
147 QString path(const RestartApplicationParams& parameters) const override;
148 QUrlQuery query(const RestartApplicationParams& parameters) const override;
149 QByteArray body(const RestartApplicationParams& parameters) const override;
150 QNetworkAccessManager::Operation operation() const override;
151};
156class ShutdownApplicationLoader : public Jellyfin::Support::HttpLoader<void, ShutdownApplicationParams> {
157public:
158 explicit ShutdownApplicationLoader(ApiClient *apiClient = nullptr);
159
160protected:
161 QString path(const ShutdownApplicationParams& parameters) const override;
162 QUrlQuery query(const ShutdownApplicationParams& parameters) const override;
163 QByteArray body(const ShutdownApplicationParams& parameters) const override;
164 QNetworkAccessManager::Operation operation() const override;
165};
170class GetWakeOnLanInfoLoader : public Jellyfin::Support::HttpLoader<QList<WakeOnLanInfo>, GetWakeOnLanInfoParams> {
171public:
172 explicit GetWakeOnLanInfoLoader(ApiClient *apiClient = nullptr);
173
174protected:
175 QString path(const GetWakeOnLanInfoParams& parameters) const override;
176 QUrlQuery query(const GetWakeOnLanInfoParams& parameters) const override;
177 QByteArray body(const GetWakeOnLanInfoParams& parameters) const override;
178 QNetworkAccessManager::Operation operation() const override;
179};
180
181} // NS HTTP
182} // NS Loader
183} // NS Jellyfin
184
185#endif // JELLYFIN_LOADER_HTTP_SYSTEM_H
An Api client for Jellyfin. Handles requests and authentication.
Definition apiclient.h:90
Definition requesttypes.h:4723
Definition requesttypes.h:14019
Definition requesttypes.h:14501
Definition requesttypes.h:15910
Definition requesttypes.h:17241
Definition requesttypes.h:21124
Gets information about the request endpoint.
Definition system.h:58
GetEndpointInfoLoader(ApiClient *apiClient=nullptr)
Definition system.cpp:38
QUrlQuery query(const GetEndpointInfoParams &parameters) const override
Definition system.cpp:47
QByteArray body(const GetEndpointInfoParams &parameters) const override
Definition system.cpp:57
QString path(const GetEndpointInfoParams &parameters) const override
Definition system.cpp:41
QNetworkAccessManager::Operation operation() const override
Definition system.cpp:61
Pings the system.
Definition system.h:114
QUrlQuery query(const GetPingSystemParams &parameters) const override
Definition system.cpp:163
GetPingSystemLoader(ApiClient *apiClient=nullptr)
Definition system.cpp:154
QNetworkAccessManager::Operation operation() const override
Definition system.cpp:177
QByteArray body(const GetPingSystemParams &parameters) const override
Definition system.cpp:173
QString path(const GetPingSystemParams &parameters) const override
Definition system.cpp:157
Gets public information about the server.
Definition system.h:86
QNetworkAccessManager::Operation operation() const override
Definition system.cpp:119
GetPublicSystemInfoLoader(ApiClient *apiClient=nullptr)
Definition system.cpp:96
QByteArray body(const GetPublicSystemInfoParams &parameters) const override
Definition system.cpp:115
QString path(const GetPublicSystemInfoParams &parameters) const override
Definition system.cpp:99
QUrlQuery query(const GetPublicSystemInfoParams &parameters) const override
Definition system.cpp:105
Gets a list of available server log files.
Definition system.h:100
GetServerLogsLoader(ApiClient *apiClient=nullptr)
Definition system.cpp:125
QString path(const GetServerLogsParams &parameters) const override
Definition system.cpp:128
QUrlQuery query(const GetServerLogsParams &parameters) const override
Definition system.cpp:134
QNetworkAccessManager::Operation operation() const override
Definition system.cpp:148
QByteArray body(const GetServerLogsParams &parameters) const override
Definition system.cpp:144
Gets information about the server.
Definition system.h:72
QNetworkAccessManager::Operation operation() const override
Definition system.cpp:90
QString path(const GetSystemInfoParams &parameters) const override
Definition system.cpp:70
QUrlQuery query(const GetSystemInfoParams &parameters) const override
Definition system.cpp:76
GetSystemInfoLoader(ApiClient *apiClient=nullptr)
Definition system.cpp:67
QByteArray body(const GetSystemInfoParams &parameters) const override
Definition system.cpp:86
Gets wake on lan information.
Definition system.h:170
GetWakeOnLanInfoLoader(ApiClient *apiClient=nullptr)
Definition system.cpp:270
QByteArray body(const GetWakeOnLanInfoParams &parameters) const override
Definition system.cpp:289
QUrlQuery query(const GetWakeOnLanInfoParams &parameters) const override
Definition system.cpp:279
QNetworkAccessManager::Operation operation() const override
Definition system.cpp:293
QString path(const GetWakeOnLanInfoParams &parameters) const override
Definition system.cpp:273
Pings the system.
Definition system.h:128
PostPingSystemLoader(ApiClient *apiClient=nullptr)
Definition system.cpp:183
QNetworkAccessManager::Operation operation() const override
Definition system.cpp:206
QString path(const PostPingSystemParams &parameters) const override
Definition system.cpp:186
QByteArray body(const PostPingSystemParams &parameters) const override
Definition system.cpp:202
QUrlQuery query(const PostPingSystemParams &parameters) const override
Definition system.cpp:192
Restarts the application.
Definition system.h:142
QString path(const RestartApplicationParams &parameters) const override
Definition system.cpp:215
QByteArray body(const RestartApplicationParams &parameters) const override
Definition system.cpp:231
QUrlQuery query(const RestartApplicationParams &parameters) const override
Definition system.cpp:221
RestartApplicationLoader(ApiClient *apiClient=nullptr)
Definition system.cpp:212
QNetworkAccessManager::Operation operation() const override
Definition system.cpp:235
Shuts down the application.
Definition system.h:156
QString path(const ShutdownApplicationParams &parameters) const override
Definition system.cpp:244
QUrlQuery query(const ShutdownApplicationParams &parameters) const override
Definition system.cpp:250
ShutdownApplicationLoader(ApiClient *apiClient=nullptr)
Definition system.cpp:241
QNetworkAccessManager::Operation operation() const override
Definition system.cpp:264
QByteArray body(const ShutdownApplicationParams &parameters) const override
Definition system.cpp:260
Definition requesttypes.h:28016
Definition requesttypes.h:28598
Definition requesttypes.h:29031
Definition loader.h:285
ApiClient * apiClient() const
Definition loader.h:95
Contains auto-generated Data Transfer Objects for the Jellyfin HTTP API.