Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
environment.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_ENVIRONMENT_H
31#define JELLYFIN_LOADER_HTTP_ENVIRONMENT_H
32
33#include <optional>
34
42
43namespace Jellyfin {
44// Forward declaration
45class ApiClient;
46}
47namespace Jellyfin {
48namespace Loader {
49namespace HTTP {
50
51using namespace Jellyfin::DTO;
52
57class GetDefaultDirectoryBrowserLoader : public Jellyfin::Support::HttpLoader<DefaultDirectoryBrowserInfoDto, GetDefaultDirectoryBrowserParams> {
58public:
60
61protected:
62 QString path(const GetDefaultDirectoryBrowserParams& parameters) const override;
63 QUrlQuery query(const GetDefaultDirectoryBrowserParams& parameters) const override;
64 QByteArray body(const GetDefaultDirectoryBrowserParams& parameters) const override;
65 QNetworkAccessManager::Operation operation() const override;
66};
71class GetDirectoryContentsLoader : public Jellyfin::Support::HttpLoader<QList<FileSystemEntryInfo>, GetDirectoryContentsParams> {
72public:
74
75protected:
76 QString path(const GetDirectoryContentsParams& parameters) const override;
77 QUrlQuery query(const GetDirectoryContentsParams& parameters) const override;
78 QByteArray body(const GetDirectoryContentsParams& parameters) const override;
79 QNetworkAccessManager::Operation operation() const override;
80};
85class GetDrivesLoader : public Jellyfin::Support::HttpLoader<QList<FileSystemEntryInfo>, GetDrivesParams> {
86public:
87 explicit GetDrivesLoader(ApiClient *apiClient = nullptr);
88
89protected:
90 QString path(const GetDrivesParams& parameters) const override;
91 QUrlQuery query(const GetDrivesParams& parameters) const override;
92 QByteArray body(const GetDrivesParams& parameters) const override;
93 QNetworkAccessManager::Operation operation() const override;
94};
99class GetNetworkSharesLoader : public Jellyfin::Support::HttpLoader<QList<FileSystemEntryInfo>, GetNetworkSharesParams> {
100public:
101 explicit GetNetworkSharesLoader(ApiClient *apiClient = nullptr);
102
103protected:
104 QString path(const GetNetworkSharesParams& parameters) const override;
105 QUrlQuery query(const GetNetworkSharesParams& parameters) const override;
106 QByteArray body(const GetNetworkSharesParams& parameters) const override;
107 QNetworkAccessManager::Operation operation() const override;
108};
113class GetParentPathLoader : public Jellyfin::Support::HttpLoader<QString, GetParentPathParams> {
114public:
115 explicit GetParentPathLoader(ApiClient *apiClient = nullptr);
116
117protected:
118 QString path(const GetParentPathParams& parameters) const override;
119 QUrlQuery query(const GetParentPathParams& parameters) const override;
120 QByteArray body(const GetParentPathParams& parameters) const override;
121 QNetworkAccessManager::Operation operation() const override;
122};
127class ValidatePathLoader : public Jellyfin::Support::HttpLoader<void, ValidatePathParams> {
128public:
129 explicit ValidatePathLoader(ApiClient *apiClient = nullptr);
130
131protected:
132 QString path(const ValidatePathParams& parameters) const override;
133 QUrlQuery query(const ValidatePathParams& parameters) const override;
134 QByteArray body(const ValidatePathParams& parameters) const override;
135 QNetworkAccessManager::Operation operation() const override;
136};
137
138} // NS HTTP
139} // NS Loader
140} // NS Jellyfin
141
142#endif // JELLYFIN_LOADER_HTTP_ENVIRONMENT_H
An Api client for Jellyfin. Handles requests and authentication.
Definition apiclient.h:90
Definition requesttypes.h:4611
Definition requesttypes.h:4710
Definition requesttypes.h:13149
Definition requesttypes.h:13407
Get Default directory browser.
Definition environment.h:57
QString path(const GetDefaultDirectoryBrowserParams &parameters) const override
Definition environment.cpp:41
QByteArray body(const GetDefaultDirectoryBrowserParams &parameters) const override
Definition environment.cpp:57
QNetworkAccessManager::Operation operation() const override
Definition environment.cpp:61
GetDefaultDirectoryBrowserLoader(ApiClient *apiClient=nullptr)
Definition environment.cpp:38
QUrlQuery query(const GetDefaultDirectoryBrowserParams &parameters) const override
Definition environment.cpp:47
Gets the contents of a given directory in the file system.
Definition environment.h:71
QNetworkAccessManager::Operation operation() const override
Definition environment.cpp:97
QByteArray body(const GetDirectoryContentsParams &parameters) const override
Definition environment.cpp:93
GetDirectoryContentsLoader(ApiClient *apiClient=nullptr)
Definition environment.cpp:67
QUrlQuery query(const GetDirectoryContentsParams &parameters) const override
Definition environment.cpp:76
QString path(const GetDirectoryContentsParams &parameters) const override
Definition environment.cpp:70
Gets available drives from the server's file system.
Definition environment.h:85
QString path(const GetDrivesParams &parameters) const override
Definition environment.cpp:106
QUrlQuery query(const GetDrivesParams &parameters) const override
Definition environment.cpp:112
GetDrivesLoader(ApiClient *apiClient=nullptr)
Definition environment.cpp:103
QNetworkAccessManager::Operation operation() const override
Definition environment.cpp:126
QByteArray body(const GetDrivesParams &parameters) const override
Definition environment.cpp:122
Gets network paths.
Definition environment.h:99
QUrlQuery query(const GetNetworkSharesParams &parameters) const override
Definition environment.cpp:141
QString path(const GetNetworkSharesParams &parameters) const override
Definition environment.cpp:135
QByteArray body(const GetNetworkSharesParams &parameters) const override
Definition environment.cpp:151
GetNetworkSharesLoader(ApiClient *apiClient=nullptr)
Definition environment.cpp:132
QNetworkAccessManager::Operation operation() const override
Definition environment.cpp:155
Gets the parent path of a given path.
Definition environment.h:113
QNetworkAccessManager::Operation operation() const override
Definition environment.cpp:185
QString path(const GetParentPathParams &parameters) const override
Definition environment.cpp:164
QUrlQuery query(const GetParentPathParams &parameters) const override
Definition environment.cpp:170
QByteArray body(const GetParentPathParams &parameters) const override
Definition environment.cpp:181
GetParentPathLoader(ApiClient *apiClient=nullptr)
Definition environment.cpp:161
Validates path.
Definition environment.h:127
QByteArray body(const ValidatePathParams &parameters) const override
Definition environment.cpp:210
QString path(const ValidatePathParams &parameters) const override
Definition environment.cpp:194
ValidatePathLoader(ApiClient *apiClient=nullptr)
Definition environment.cpp:191
QNetworkAccessManager::Operation operation() const override
Definition environment.cpp:214
QUrlQuery query(const ValidatePathParams &parameters) const override
Definition environment.cpp:200
Definition requesttypes.h:30344
Definition loader.h:285
ApiClient * apiClient() const
Definition loader.h:95
Contains auto-generated Data Transfer Objects for the Jellyfin HTTP API.