Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
localization.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_LOCALIZATION_H
31#define JELLYFIN_LOADER_HTTP_LOCALIZATION_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 GetCountriesLoader : public Jellyfin::Support::HttpLoader<QList<CountryInfo>, GetCountriesParams> {
58public:
59 explicit GetCountriesLoader(ApiClient *apiClient = nullptr);
60
61protected:
62 QString path(const GetCountriesParams& parameters) const override;
63 QUrlQuery query(const GetCountriesParams& parameters) const override;
64 QByteArray body(const GetCountriesParams& parameters) const override;
65 QNetworkAccessManager::Operation operation() const override;
66};
71class GetCulturesLoader : public Jellyfin::Support::HttpLoader<QList<CultureDto>, GetCulturesParams> {
72public:
73 explicit GetCulturesLoader(ApiClient *apiClient = nullptr);
74
75protected:
76 QString path(const GetCulturesParams& parameters) const override;
77 QUrlQuery query(const GetCulturesParams& parameters) const override;
78 QByteArray body(const GetCulturesParams& parameters) const override;
79 QNetworkAccessManager::Operation operation() const override;
80};
85class GetLocalizationOptionsLoader : public Jellyfin::Support::HttpLoader<QList<LocalizationOption>, GetLocalizationOptionsParams> {
86public:
88
89protected:
90 QString path(const GetLocalizationOptionsParams& parameters) const override;
91 QUrlQuery query(const GetLocalizationOptionsParams& parameters) const override;
92 QByteArray body(const GetLocalizationOptionsParams& parameters) const override;
93 QNetworkAccessManager::Operation operation() const override;
94};
99class GetParentalRatingsLoader : public Jellyfin::Support::HttpLoader<QList<ParentalRating>, GetParentalRatingsParams> {
100public:
101 explicit GetParentalRatingsLoader(ApiClient *apiClient = nullptr);
102
103protected:
104 QString path(const GetParentalRatingsParams& parameters) const override;
105 QUrlQuery query(const GetParentalRatingsParams& parameters) const override;
106 QByteArray body(const GetParentalRatingsParams& parameters) const override;
107 QNetworkAccessManager::Operation operation() const override;
108};
109
110} // NS HTTP
111} // NS Loader
112} // NS Jellyfin
113
114#endif // JELLYFIN_LOADER_HTTP_LOCALIZATION_H
An Api client for Jellyfin. Handles requests and authentication.
Definition apiclient.h:90
Definition requesttypes.h:4336
Definition requesttypes.h:4370
Definition requesttypes.h:11173
Definition requesttypes.h:13428
Gets known countries.
Definition localization.h:57
GetCountriesLoader(ApiClient *apiClient=nullptr)
Definition localization.cpp:38
QUrlQuery query(const GetCountriesParams &parameters) const override
Definition localization.cpp:47
QNetworkAccessManager::Operation operation() const override
Definition localization.cpp:61
QByteArray body(const GetCountriesParams &parameters) const override
Definition localization.cpp:57
QString path(const GetCountriesParams &parameters) const override
Definition localization.cpp:41
Gets known cultures.
Definition localization.h:71
QByteArray body(const GetCulturesParams &parameters) const override
Definition localization.cpp:86
QUrlQuery query(const GetCulturesParams &parameters) const override
Definition localization.cpp:76
GetCulturesLoader(ApiClient *apiClient=nullptr)
Definition localization.cpp:67
QString path(const GetCulturesParams &parameters) const override
Definition localization.cpp:70
QNetworkAccessManager::Operation operation() const override
Definition localization.cpp:90
Gets localization options.
Definition localization.h:85
QNetworkAccessManager::Operation operation() const override
Definition localization.cpp:119
QByteArray body(const GetLocalizationOptionsParams &parameters) const override
Definition localization.cpp:115
QUrlQuery query(const GetLocalizationOptionsParams &parameters) const override
Definition localization.cpp:105
GetLocalizationOptionsLoader(ApiClient *apiClient=nullptr)
Definition localization.cpp:96
QString path(const GetLocalizationOptionsParams &parameters) const override
Definition localization.cpp:99
Gets known parental ratings.
Definition localization.h:99
GetParentalRatingsLoader(ApiClient *apiClient=nullptr)
Definition localization.cpp:125
QString path(const GetParentalRatingsParams &parameters) const override
Definition localization.cpp:128
QUrlQuery query(const GetParentalRatingsParams &parameters) const override
Definition localization.cpp:134
QNetworkAccessManager::Operation operation() const override
Definition localization.cpp:148
QByteArray body(const GetParentalRatingsParams &parameters) const override
Definition localization.cpp:144
Definition loader.h:285
ApiClient * apiClient() const
Definition loader.h:95
Contains auto-generated Data Transfer Objects for the Jellyfin HTTP API.