Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
tvshows.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_TVSHOWS_H
31#define JELLYFIN_LOADER_HTTP_TVSHOWS_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 GetEpisodesLoader : public Jellyfin::Support::HttpLoader<BaseItemDtoQueryResult, GetEpisodesParams> {
58public:
59 explicit GetEpisodesLoader(ApiClient *apiClient = nullptr);
60
61protected:
62 QString path(const GetEpisodesParams& parameters) const override;
63 QUrlQuery query(const GetEpisodesParams& parameters) const override;
64 QByteArray body(const GetEpisodesParams& parameters) const override;
65 QNetworkAccessManager::Operation operation() const override;
66};
71class GetSeasonsLoader : public Jellyfin::Support::HttpLoader<BaseItemDtoQueryResult, GetSeasonsParams> {
72public:
73 explicit GetSeasonsLoader(ApiClient *apiClient = nullptr);
74
75protected:
76 QString path(const GetSeasonsParams& parameters) const override;
77 QUrlQuery query(const GetSeasonsParams& parameters) const override;
78 QByteArray body(const GetSeasonsParams& parameters) const override;
79 QNetworkAccessManager::Operation operation() const override;
80};
85class GetNextUpLoader : public Jellyfin::Support::HttpLoader<BaseItemDtoQueryResult, GetNextUpParams> {
86public:
87 explicit GetNextUpLoader(ApiClient *apiClient = nullptr);
88
89protected:
90 QString path(const GetNextUpParams& parameters) const override;
91 QUrlQuery query(const GetNextUpParams& parameters) const override;
92 QByteArray body(const GetNextUpParams& parameters) const override;
93 QNetworkAccessManager::Operation operation() const override;
94};
99class GetUpcomingEpisodesLoader : public Jellyfin::Support::HttpLoader<BaseItemDtoQueryResult, GetUpcomingEpisodesParams> {
100public:
101 explicit GetUpcomingEpisodesLoader(ApiClient *apiClient = nullptr);
102
103protected:
104 QString path(const GetUpcomingEpisodesParams& parameters) const override;
105 QUrlQuery query(const GetUpcomingEpisodesParams& parameters) const override;
106 QByteArray body(const GetUpcomingEpisodesParams& 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_TVSHOWS_H
An Api client for Jellyfin. Handles requests and authentication.
Definition apiclient.h:90
Definition requesttypes.h:4736
Definition requesttypes.h:13162
Definition requesttypes.h:15723
Definition requesttypes.h:18534
Gets episodes for a tv season.
Definition tvshows.h:57
QNetworkAccessManager::Operation operation() const override
Definition tvshows.cpp:103
QByteArray body(const GetEpisodesParams &parameters) const override
Definition tvshows.cpp:99
GetEpisodesLoader(ApiClient *apiClient=nullptr)
Definition tvshows.cpp:38
QUrlQuery query(const GetEpisodesParams &parameters) const override
Definition tvshows.cpp:47
QString path(const GetEpisodesParams &parameters) const override
Definition tvshows.cpp:41
Gets a list of next up episodes.
Definition tvshows.h:85
QByteArray body(const GetNextUpParams &parameters) const override
Definition tvshows.cpp:220
GetNextUpLoader(ApiClient *apiClient=nullptr)
Definition tvshows.cpp:165
QUrlQuery query(const GetNextUpParams &parameters) const override
Definition tvshows.cpp:174
QString path(const GetNextUpParams &parameters) const override
Definition tvshows.cpp:168
QNetworkAccessManager::Operation operation() const override
Definition tvshows.cpp:224
Gets seasons for a tv series.
Definition tvshows.h:71
QString path(const GetSeasonsParams &parameters) const override
Definition tvshows.cpp:112
GetSeasonsLoader(ApiClient *apiClient=nullptr)
Definition tvshows.cpp:109
QNetworkAccessManager::Operation operation() const override
Definition tvshows.cpp:159
QByteArray body(const GetSeasonsParams &parameters) const override
Definition tvshows.cpp:155
QUrlQuery query(const GetSeasonsParams &parameters) const override
Definition tvshows.cpp:118
Gets a list of upcoming episodes.
Definition tvshows.h:99
QNetworkAccessManager::Operation operation() const override
Definition tvshows.cpp:280
GetUpcomingEpisodesLoader(ApiClient *apiClient=nullptr)
Definition tvshows.cpp:230
QUrlQuery query(const GetUpcomingEpisodesParams &parameters) const override
Definition tvshows.cpp:239
QByteArray body(const GetUpcomingEpisodesParams &parameters) const override
Definition tvshows.cpp:276
QString path(const GetUpcomingEpisodesParams &parameters) const override
Definition tvshows.cpp:233
Definition loader.h:285
ApiClient * apiClient() const
Definition loader.h:95
Contains auto-generated Data Transfer Objects for the Jellyfin HTTP API.