Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
channels.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_CHANNELS_H
31#define JELLYFIN_LOADER_HTTP_CHANNELS_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 GetChannelsLoader : public Jellyfin::Support::HttpLoader<BaseItemDtoQueryResult, GetChannelsParams> {
59public:
60 explicit GetChannelsLoader(ApiClient *apiClient = nullptr);
61
62protected:
63 QString path(const GetChannelsParams& parameters) const override;
64 QUrlQuery query(const GetChannelsParams& parameters) const override;
65 QByteArray body(const GetChannelsParams& parameters) const override;
66 QNetworkAccessManager::Operation operation() const override;
67};
72class GetChannelFeaturesLoader : public Jellyfin::Support::HttpLoader<ChannelFeatures, GetChannelFeaturesParams> {
73public:
74 explicit GetChannelFeaturesLoader(ApiClient *apiClient = nullptr);
75
76protected:
77 QString path(const GetChannelFeaturesParams& parameters) const override;
78 QUrlQuery query(const GetChannelFeaturesParams& parameters) const override;
79 QByteArray body(const GetChannelFeaturesParams& parameters) const override;
80 QNetworkAccessManager::Operation operation() const override;
81};
86class GetChannelItemsLoader : public Jellyfin::Support::HttpLoader<BaseItemDtoQueryResult, GetChannelItemsParams> {
87public:
88 explicit GetChannelItemsLoader(ApiClient *apiClient = nullptr);
89
90protected:
91 QString path(const GetChannelItemsParams& parameters) const override;
92 QUrlQuery query(const GetChannelItemsParams& parameters) const override;
93 QByteArray body(const GetChannelItemsParams& parameters) const override;
94 QNetworkAccessManager::Operation operation() const override;
95};
100class GetAllChannelFeaturesLoader : public Jellyfin::Support::HttpLoader<QList<ChannelFeatures>, GetAllChannelFeaturesParams> {
101public:
103
104protected:
105 QString path(const GetAllChannelFeaturesParams& parameters) const override;
106 QUrlQuery query(const GetAllChannelFeaturesParams& parameters) const override;
107 QByteArray body(const GetAllChannelFeaturesParams& parameters) const override;
108 QNetworkAccessManager::Operation operation() const override;
109};
114class GetLatestChannelItemsLoader : public Jellyfin::Support::HttpLoader<BaseItemDtoQueryResult, GetLatestChannelItemsParams> {
115public:
117
118protected:
119 QString path(const GetLatestChannelItemsParams& parameters) const override;
120 QUrlQuery query(const GetLatestChannelItemsParams& parameters) const override;
121 QByteArray body(const GetLatestChannelItemsParams& parameters) const override;
122 QNetworkAccessManager::Operation operation() const override;
123};
124
125} // NS HTTP
126} // NS Loader
127} // NS Jellyfin
128
129#endif // JELLYFIN_LOADER_HTTP_CHANNELS_H
An Api client for Jellyfin. Handles requests and authentication.
Definition apiclient.h:90
Definition requesttypes.h:2194
Definition requesttypes.h:3946
Definition requesttypes.h:3967
Definition requesttypes.h:4091
Definition requesttypes.h:9764
Get all channel features.
Definition channels.h:100
QUrlQuery query(const GetAllChannelFeaturesParams &parameters) const override
Definition channels.cpp:176
QNetworkAccessManager::Operation operation() const override
Definition channels.cpp:190
QString path(const GetAllChannelFeaturesParams &parameters) const override
Definition channels.cpp:170
GetAllChannelFeaturesLoader(ApiClient *apiClient=nullptr)
Definition channels.cpp:167
QByteArray body(const GetAllChannelFeaturesParams &parameters) const override
Definition channels.cpp:186
Get channel features.
Definition channels.h:72
QUrlQuery query(const GetChannelFeaturesParams &parameters) const override
Definition channels.cpp:94
QNetworkAccessManager::Operation operation() const override
Definition channels.cpp:108
GetChannelFeaturesLoader(ApiClient *apiClient=nullptr)
Definition channels.cpp:85
QByteArray body(const GetChannelFeaturesParams &parameters) const override
Definition channels.cpp:104
QString path(const GetChannelFeaturesParams &parameters) const override
Definition channels.cpp:88
Get channel items.
Definition channels.h:86
QByteArray body(const GetChannelItemsParams &parameters) const override
Definition channels.cpp:157
GetChannelItemsLoader(ApiClient *apiClient=nullptr)
Definition channels.cpp:114
QUrlQuery query(const GetChannelItemsParams &parameters) const override
Definition channels.cpp:123
QNetworkAccessManager::Operation operation() const override
Definition channels.cpp:161
QString path(const GetChannelItemsParams &parameters) const override
Definition channels.cpp:117
Gets available channels.
Definition channels.h:58
QUrlQuery query(const GetChannelsParams &parameters) const override
Definition channels.cpp:47
GetChannelsLoader(ApiClient *apiClient=nullptr)
Definition channels.cpp:38
QString path(const GetChannelsParams &parameters) const override
Definition channels.cpp:41
QNetworkAccessManager::Operation operation() const override
Definition channels.cpp:79
QByteArray body(const GetChannelsParams &parameters) const override
Definition channels.cpp:75
Gets latest channel items.
Definition channels.h:114
QUrlQuery query(const GetLatestChannelItemsParams &parameters) const override
Definition channels.cpp:205
QByteArray body(const GetLatestChannelItemsParams &parameters) const override
Definition channels.cpp:233
QString path(const GetLatestChannelItemsParams &parameters) const override
Definition channels.cpp:199
GetLatestChannelItemsLoader(ApiClient *apiClient=nullptr)
Definition channels.cpp:196
QNetworkAccessManager::Operation operation() const override
Definition channels.cpp:237
Definition loader.h:285
ApiClient * apiClient() const
Definition loader.h:95
Contains auto-generated Data Transfer Objects for the Jellyfin HTTP API.