Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
startup.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_STARTUP_H
31#define JELLYFIN_LOADER_HTTP_STARTUP_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 CompleteWizardLoader : public Jellyfin::Support::HttpLoader<void, CompleteWizardParams> {
57public:
58 explicit CompleteWizardLoader(ApiClient *apiClient = nullptr);
59
60protected:
61 QString path(const CompleteWizardParams& parameters) const override;
62 QUrlQuery query(const CompleteWizardParams& parameters) const override;
63 QByteArray body(const CompleteWizardParams& parameters) const override;
64 QNetworkAccessManager::Operation operation() const override;
65};
70class GetStartupConfigurationLoader : public Jellyfin::Support::HttpLoader<StartupConfigurationDto, GetStartupConfigurationParams> {
71public:
73
74protected:
75 QString path(const GetStartupConfigurationParams& parameters) const override;
76 QUrlQuery query(const GetStartupConfigurationParams& parameters) const override;
77 QByteArray body(const GetStartupConfigurationParams& parameters) const override;
78 QNetworkAccessManager::Operation operation() const override;
79};
84class UpdateInitialConfigurationLoader : public Jellyfin::Support::HttpLoader<void, UpdateInitialConfigurationParams> {
85public:
87
88protected:
89 QString path(const UpdateInitialConfigurationParams& parameters) const override;
90 QUrlQuery query(const UpdateInitialConfigurationParams& parameters) const override;
91 QByteArray body(const UpdateInitialConfigurationParams& parameters) const override;
92 QNetworkAccessManager::Operation operation() const override;
93};
98class GetFirstUser_2Loader : public Jellyfin::Support::HttpLoader<StartupUserDto, GetFirstUser_2Params> {
99public:
100 explicit GetFirstUser_2Loader(ApiClient *apiClient = nullptr);
101
102protected:
103 QString path(const GetFirstUser_2Params& parameters) const override;
104 QUrlQuery query(const GetFirstUser_2Params& parameters) const override;
105 QByteArray body(const GetFirstUser_2Params& parameters) const override;
106 QNetworkAccessManager::Operation operation() const override;
107};
112class SetRemoteAccessLoader : public Jellyfin::Support::HttpLoader<void, SetRemoteAccessParams> {
113public:
114 explicit SetRemoteAccessLoader(ApiClient *apiClient = nullptr);
115
116protected:
117 QString path(const SetRemoteAccessParams& parameters) const override;
118 QUrlQuery query(const SetRemoteAccessParams& parameters) const override;
119 QByteArray body(const SetRemoteAccessParams& parameters) const override;
120 QNetworkAccessManager::Operation operation() const override;
121};
126class GetFirstUserLoader : public Jellyfin::Support::HttpLoader<StartupUserDto, GetFirstUserParams> {
127public:
128 explicit GetFirstUserLoader(ApiClient *apiClient = nullptr);
129
130protected:
131 QString path(const GetFirstUserParams& parameters) const override;
132 QUrlQuery query(const GetFirstUserParams& parameters) const override;
133 QByteArray body(const GetFirstUserParams& parameters) const override;
134 QNetworkAccessManager::Operation operation() const override;
135};
140class UpdateStartupUserLoader : public Jellyfin::Support::HttpLoader<void, UpdateStartupUserParams> {
141public:
142 explicit UpdateStartupUserLoader(ApiClient *apiClient = nullptr);
143
144protected:
145 QString path(const UpdateStartupUserParams& parameters) const override;
146 QUrlQuery query(const UpdateStartupUserParams& parameters) const override;
147 QByteArray body(const UpdateStartupUserParams& parameters) const override;
148 QNetworkAccessManager::Operation operation() const override;
149};
150
151} // NS HTTP
152} // NS Loader
153} // NS Jellyfin
154
155#endif // JELLYFIN_LOADER_HTTP_STARTUP_H
An Api client for Jellyfin. Handles requests and authentication.
Definition apiclient.h:90
Definition requesttypes.h:669
Definition requesttypes.h:4973
Definition requesttypes.h:4986
Completes the startup wizard.
Definition startup.h:56
QString path(const CompleteWizardParams &parameters) const override
Definition startup.cpp:41
QUrlQuery query(const CompleteWizardParams &parameters) const override
Definition startup.cpp:47
CompleteWizardLoader(ApiClient *apiClient=nullptr)
Definition startup.cpp:38
QByteArray body(const CompleteWizardParams &parameters) const override
Definition startup.cpp:57
QNetworkAccessManager::Operation operation() const override
Definition startup.cpp:61
Gets the first user.
Definition startup.h:126
QUrlQuery query(const GetFirstUserParams &parameters) const override
Definition startup.cpp:192
QNetworkAccessManager::Operation operation() const override
Definition startup.cpp:206
GetFirstUserLoader(ApiClient *apiClient=nullptr)
Definition startup.cpp:183
QString path(const GetFirstUserParams &parameters) const override
Definition startup.cpp:186
QByteArray body(const GetFirstUserParams &parameters) const override
Definition startup.cpp:202
Gets the first user.
Definition startup.h:98
QByteArray body(const GetFirstUser_2Params &parameters) const override
Definition startup.cpp:144
QUrlQuery query(const GetFirstUser_2Params &parameters) const override
Definition startup.cpp:134
QNetworkAccessManager::Operation operation() const override
Definition startup.cpp:148
GetFirstUser_2Loader(ApiClient *apiClient=nullptr)
Definition startup.cpp:125
QString path(const GetFirstUser_2Params &parameters) const override
Definition startup.cpp:128
Gets the initial startup wizard configuration.
Definition startup.h:70
GetStartupConfigurationLoader(ApiClient *apiClient=nullptr)
Definition startup.cpp:67
QString path(const GetStartupConfigurationParams &parameters) const override
Definition startup.cpp:70
QNetworkAccessManager::Operation operation() const override
Definition startup.cpp:90
QByteArray body(const GetStartupConfigurationParams &parameters) const override
Definition startup.cpp:86
QUrlQuery query(const GetStartupConfigurationParams &parameters) const override
Definition startup.cpp:76
Sets remote access and UPnP.
Definition startup.h:112
QNetworkAccessManager::Operation operation() const override
Definition startup.cpp:177
QByteArray body(const SetRemoteAccessParams &parameters) const override
Definition startup.cpp:173
QUrlQuery query(const SetRemoteAccessParams &parameters) const override
Definition startup.cpp:163
QString path(const SetRemoteAccessParams &parameters) const override
Definition startup.cpp:157
SetRemoteAccessLoader(ApiClient *apiClient=nullptr)
Definition startup.cpp:154
Sets the initial startup wizard configuration.
Definition startup.h:84
UpdateInitialConfigurationLoader(ApiClient *apiClient=nullptr)
Definition startup.cpp:96
QUrlQuery query(const UpdateInitialConfigurationParams &parameters) const override
Definition startup.cpp:105
QNetworkAccessManager::Operation operation() const override
Definition startup.cpp:119
QByteArray body(const UpdateInitialConfigurationParams &parameters) const override
Definition startup.cpp:115
QString path(const UpdateInitialConfigurationParams &parameters) const override
Definition startup.cpp:99
Sets the user name and password.
Definition startup.h:140
QNetworkAccessManager::Operation operation() const override
Definition startup.cpp:235
QString path(const UpdateStartupUserParams &parameters) const override
Definition startup.cpp:215
UpdateStartupUserLoader(ApiClient *apiClient=nullptr)
Definition startup.cpp:212
QByteArray body(const UpdateStartupUserParams &parameters) const override
Definition startup.cpp:231
QUrlQuery query(const UpdateStartupUserParams &parameters) const override
Definition startup.cpp:221
Definition requesttypes.h:28966
Definition requesttypes.h:30043
Definition loader.h:285
ApiClient * apiClient() const
Definition loader.h:95
Contains auto-generated Data Transfer Objects for the Jellyfin HTTP API.