Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
mediainfo.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_MEDIAINFO_H
31#define JELLYFIN_LOADER_HTTP_MEDIAINFO_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 GetPlaybackInfoLoader : public Jellyfin::Support::HttpLoader<PlaybackInfoResponse, GetPlaybackInfoParams> {
57public:
58 explicit GetPlaybackInfoLoader(ApiClient *apiClient = nullptr);
59
60protected:
61 QString path(const GetPlaybackInfoParams& parameters) const override;
62 QUrlQuery query(const GetPlaybackInfoParams& parameters) const override;
63 QByteArray body(const GetPlaybackInfoParams& parameters) const override;
64 QNetworkAccessManager::Operation operation() const override;
65};
70class GetPostedPlaybackInfoLoader : public Jellyfin::Support::HttpLoader<PlaybackInfoResponse, GetPostedPlaybackInfoParams> {
71public:
73
74protected:
75 QString path(const GetPostedPlaybackInfoParams& parameters) const override;
76 QUrlQuery query(const GetPostedPlaybackInfoParams& parameters) const override;
77 QByteArray body(const GetPostedPlaybackInfoParams& parameters) const override;
78 QNetworkAccessManager::Operation operation() const override;
79};
84class CloseLiveStreamLoader : public Jellyfin::Support::HttpLoader<void, CloseLiveStreamParams> {
85public:
86 explicit CloseLiveStreamLoader(ApiClient *apiClient = nullptr);
87
88protected:
89 QString path(const CloseLiveStreamParams& parameters) const override;
90 QUrlQuery query(const CloseLiveStreamParams& parameters) const override;
91 QByteArray body(const CloseLiveStreamParams& parameters) const override;
92 QNetworkAccessManager::Operation operation() const override;
93};
98class OpenLiveStreamLoader : public Jellyfin::Support::HttpLoader<LiveStreamResponse, OpenLiveStreamParams> {
99public:
100 explicit OpenLiveStreamLoader(ApiClient *apiClient = nullptr);
101
102protected:
103 QString path(const OpenLiveStreamParams& parameters) const override;
104 QUrlQuery query(const OpenLiveStreamParams& parameters) const override;
105 QByteArray body(const OpenLiveStreamParams& parameters) const override;
106 QNetworkAccessManager::Operation operation() const override;
107};
108
109} // NS HTTP
110} // NS Loader
111} // NS Jellyfin
112
113#endif // JELLYFIN_LOADER_HTTP_MEDIAINFO_H
An Api client for Jellyfin. Handles requests and authentication.
Definition apiclient.h:90
Definition requesttypes.h:648
Definition requesttypes.h:14032
Definition requesttypes.h:14244
Closes a media source.
Definition mediainfo.h:84
QNetworkAccessManager::Operation operation() const override
Definition mediainfo.cpp:163
QByteArray body(const CloseLiveStreamParams &parameters) const override
Definition mediainfo.cpp:159
QUrlQuery query(const CloseLiveStreamParams &parameters) const override
Definition mediainfo.cpp:148
CloseLiveStreamLoader(ApiClient *apiClient=nullptr)
Definition mediainfo.cpp:139
QString path(const CloseLiveStreamParams &parameters) const override
Definition mediainfo.cpp:142
Gets live playback media info for an item.
Definition mediainfo.h:56
QNetworkAccessManager::Operation operation() const override
Definition mediainfo.cpp:62
GetPlaybackInfoLoader(ApiClient *apiClient=nullptr)
Definition mediainfo.cpp:38
QString path(const GetPlaybackInfoParams &parameters) const override
Definition mediainfo.cpp:41
QUrlQuery query(const GetPlaybackInfoParams &parameters) const override
Definition mediainfo.cpp:47
QByteArray body(const GetPlaybackInfoParams &parameters) const override
Definition mediainfo.cpp:58
Gets live playback media info for an item.
Definition mediainfo.h:70
QUrlQuery query(const GetPostedPlaybackInfoParams &parameters) const override
Definition mediainfo.cpp:77
QNetworkAccessManager::Operation operation() const override
Definition mediainfo.cpp:133
QString path(const GetPostedPlaybackInfoParams &parameters) const override
Definition mediainfo.cpp:71
GetPostedPlaybackInfoLoader(ApiClient *apiClient=nullptr)
Definition mediainfo.cpp:68
QByteArray body(const GetPostedPlaybackInfoParams &parameters) const override
Definition mediainfo.cpp:129
Opens a media source.
Definition mediainfo.h:98
QString path(const OpenLiveStreamParams &parameters) const override
Definition mediainfo.cpp:172
QUrlQuery query(const OpenLiveStreamParams &parameters) const override
Definition mediainfo.cpp:178
QNetworkAccessManager::Operation operation() const override
Definition mediainfo.cpp:225
OpenLiveStreamLoader(ApiClient *apiClient=nullptr)
Definition mediainfo.cpp:169
QByteArray body(const OpenLiveStreamParams &parameters) const override
Definition mediainfo.cpp:221
Definition requesttypes.h:27552
Definition loader.h:285
ApiClient * apiClient() const
Definition loader.h:95
Contains auto-generated Data Transfer Objects for the Jellyfin HTTP API.