Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
playstate.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_PLAYSTATE_H
31#define JELLYFIN_LOADER_HTTP_PLAYSTATE_H
32
33#include <optional>
34
40
41namespace Jellyfin {
42// Forward declaration
43class ApiClient;
44}
45namespace Jellyfin {
46namespace Loader {
47namespace HTTP {
48
49using namespace Jellyfin::DTO;
50
55class ReportPlaybackStartLoader : public Jellyfin::Support::HttpLoader<void, ReportPlaybackStartParams> {
56public:
58
59protected:
60 QString path(const ReportPlaybackStartParams& parameters) const override;
61 QUrlQuery query(const ReportPlaybackStartParams& parameters) const override;
62 QByteArray body(const ReportPlaybackStartParams& parameters) const override;
63 QNetworkAccessManager::Operation operation() const override;
64};
69class PingPlaybackSessionLoader : public Jellyfin::Support::HttpLoader<void, PingPlaybackSessionParams> {
70public:
72
73protected:
74 QString path(const PingPlaybackSessionParams& parameters) const override;
75 QUrlQuery query(const PingPlaybackSessionParams& parameters) const override;
76 QByteArray body(const PingPlaybackSessionParams& parameters) const override;
77 QNetworkAccessManager::Operation operation() const override;
78};
83class ReportPlaybackProgressLoader : public Jellyfin::Support::HttpLoader<void, ReportPlaybackProgressParams> {
84public:
86
87protected:
88 QString path(const ReportPlaybackProgressParams& parameters) const override;
89 QUrlQuery query(const ReportPlaybackProgressParams& parameters) const override;
90 QByteArray body(const ReportPlaybackProgressParams& parameters) const override;
91 QNetworkAccessManager::Operation operation() const override;
92};
97class ReportPlaybackStoppedLoader : public Jellyfin::Support::HttpLoader<void, ReportPlaybackStoppedParams> {
98public:
100
101protected:
102 QString path(const ReportPlaybackStoppedParams& parameters) const override;
103 QUrlQuery query(const ReportPlaybackStoppedParams& parameters) const override;
104 QByteArray body(const ReportPlaybackStoppedParams& parameters) const override;
105 QNetworkAccessManager::Operation operation() const override;
106};
111class MarkPlayedItemLoader : public Jellyfin::Support::HttpLoader<UserItemDataDto, MarkPlayedItemParams> {
112public:
113 explicit MarkPlayedItemLoader(ApiClient *apiClient = nullptr);
114
115protected:
116 QString path(const MarkPlayedItemParams& parameters) const override;
117 QUrlQuery query(const MarkPlayedItemParams& parameters) const override;
118 QByteArray body(const MarkPlayedItemParams& parameters) const override;
119 QNetworkAccessManager::Operation operation() const override;
120};
125class MarkUnplayedItemLoader : public Jellyfin::Support::HttpLoader<UserItemDataDto, MarkUnplayedItemParams> {
126public:
127 explicit MarkUnplayedItemLoader(ApiClient *apiClient = nullptr);
128
129protected:
130 QString path(const MarkUnplayedItemParams& parameters) const override;
131 QUrlQuery query(const MarkUnplayedItemParams& parameters) const override;
132 QByteArray body(const MarkUnplayedItemParams& parameters) const override;
133 QNetworkAccessManager::Operation operation() const override;
134};
139class OnPlaybackStartLoader : public Jellyfin::Support::HttpLoader<void, OnPlaybackStartParams> {
140public:
141 explicit OnPlaybackStartLoader(ApiClient *apiClient = nullptr);
142
143protected:
144 QString path(const OnPlaybackStartParams& parameters) const override;
145 QUrlQuery query(const OnPlaybackStartParams& parameters) const override;
146 QByteArray body(const OnPlaybackStartParams& parameters) const override;
147 QNetworkAccessManager::Operation operation() const override;
148};
153class OnPlaybackStoppedLoader : public Jellyfin::Support::HttpLoader<void, OnPlaybackStoppedParams> {
154public:
155 explicit OnPlaybackStoppedLoader(ApiClient *apiClient = nullptr);
156
157protected:
158 QString path(const OnPlaybackStoppedParams& parameters) const override;
159 QUrlQuery query(const OnPlaybackStoppedParams& parameters) const override;
160 QByteArray body(const OnPlaybackStoppedParams& parameters) const override;
161 QNetworkAccessManager::Operation operation() const override;
162};
167class OnPlaybackProgressLoader : public Jellyfin::Support::HttpLoader<void, OnPlaybackProgressParams> {
168public:
169 explicit OnPlaybackProgressLoader(ApiClient *apiClient = nullptr);
170
171protected:
172 QString path(const OnPlaybackProgressParams& parameters) const override;
173 QUrlQuery query(const OnPlaybackProgressParams& parameters) const override;
174 QByteArray body(const OnPlaybackProgressParams& parameters) const override;
175 QNetworkAccessManager::Operation operation() const override;
176};
177
178} // NS HTTP
179} // NS Loader
180} // NS Jellyfin
181
182#endif // JELLYFIN_LOADER_HTTP_PLAYSTATE_H
An Api client for Jellyfin. Handles requests and authentication.
Definition apiclient.h:90
Marks an item as played for user.
Definition playstate.h:111
QString path(const MarkPlayedItemParams &parameters) const override
Definition playstate.cpp:160
QUrlQuery query(const MarkPlayedItemParams &parameters) const override
Definition playstate.cpp:166
QByteArray body(const MarkPlayedItemParams &parameters) const override
Definition playstate.cpp:179
MarkPlayedItemLoader(ApiClient *apiClient=nullptr)
Definition playstate.cpp:157
QNetworkAccessManager::Operation operation() const override
Definition playstate.cpp:183
Marks an item as unplayed for user.
Definition playstate.h:125
QByteArray body(const MarkUnplayedItemParams &parameters) const override
Definition playstate.cpp:208
QString path(const MarkUnplayedItemParams &parameters) const override
Definition playstate.cpp:192
QNetworkAccessManager::Operation operation() const override
Definition playstate.cpp:212
MarkUnplayedItemLoader(ApiClient *apiClient=nullptr)
Definition playstate.cpp:189
QUrlQuery query(const MarkUnplayedItemParams &parameters) const override
Definition playstate.cpp:198
Reports a user's playback progress.
Definition playstate.h:167
QNetworkAccessManager::Operation operation() const override
Definition playstate.cpp:368
QByteArray body(const OnPlaybackProgressParams &parameters) const override
Definition playstate.cpp:364
QString path(const OnPlaybackProgressParams &parameters) const override
Definition playstate.cpp:315
QUrlQuery query(const OnPlaybackProgressParams &parameters) const override
Definition playstate.cpp:321
OnPlaybackProgressLoader(ApiClient *apiClient=nullptr)
Definition playstate.cpp:312
Reports that a user has begun playing an item.
Definition playstate.h:139
QUrlQuery query(const OnPlaybackStartParams &parameters) const override
Definition playstate.cpp:227
OnPlaybackStartLoader(ApiClient *apiClient=nullptr)
Definition playstate.cpp:218
QString path(const OnPlaybackStartParams &parameters) const override
Definition playstate.cpp:221
QNetworkAccessManager::Operation operation() const override
Definition playstate.cpp:262
QByteArray body(const OnPlaybackStartParams &parameters) const override
Definition playstate.cpp:258
Reports that a user has stopped playing an item.
Definition playstate.h:153
QString path(const OnPlaybackStoppedParams &parameters) const override
Definition playstate.cpp:271
QUrlQuery query(const OnPlaybackStoppedParams &parameters) const override
Definition playstate.cpp:277
OnPlaybackStoppedLoader(ApiClient *apiClient=nullptr)
Definition playstate.cpp:268
QByteArray body(const OnPlaybackStoppedParams &parameters) const override
Definition playstate.cpp:302
QNetworkAccessManager::Operation operation() const override
Definition playstate.cpp:306
Pings a playback session.
Definition playstate.h:69
QNetworkAccessManager::Operation operation() const override
Definition playstate.cpp:93
QString path(const PingPlaybackSessionParams &parameters) const override
Definition playstate.cpp:70
PingPlaybackSessionLoader(ApiClient *apiClient=nullptr)
Definition playstate.cpp:67
QByteArray body(const PingPlaybackSessionParams &parameters) const override
Definition playstate.cpp:89
QUrlQuery query(const PingPlaybackSessionParams &parameters) const override
Definition playstate.cpp:76
Reports playback progress within a session.
Definition playstate.h:83
ReportPlaybackProgressLoader(ApiClient *apiClient=nullptr)
Definition playstate.cpp:99
QUrlQuery query(const ReportPlaybackProgressParams &parameters) const override
Definition playstate.cpp:108
QNetworkAccessManager::Operation operation() const override
Definition playstate.cpp:122
QString path(const ReportPlaybackProgressParams &parameters) const override
Definition playstate.cpp:102
QByteArray body(const ReportPlaybackProgressParams &parameters) const override
Definition playstate.cpp:118
Reports playback has started within a session.
Definition playstate.h:55
QNetworkAccessManager::Operation operation() const override
Definition playstate.cpp:61
QUrlQuery query(const ReportPlaybackStartParams &parameters) const override
Definition playstate.cpp:47
QByteArray body(const ReportPlaybackStartParams &parameters) const override
Definition playstate.cpp:57
ReportPlaybackStartLoader(ApiClient *apiClient=nullptr)
Definition playstate.cpp:38
QString path(const ReportPlaybackStartParams &parameters) const override
Definition playstate.cpp:41
Reports playback has stopped within a session.
Definition playstate.h:97
ReportPlaybackStoppedLoader(ApiClient *apiClient=nullptr)
Definition playstate.cpp:128
QByteArray body(const ReportPlaybackStoppedParams &parameters) const override
Definition playstate.cpp:147
QNetworkAccessManager::Operation operation() const override
Definition playstate.cpp:151
QUrlQuery query(const ReportPlaybackStoppedParams &parameters) const override
Definition playstate.cpp:137
QString path(const ReportPlaybackStoppedParams &parameters) const override
Definition playstate.cpp:131
Definition requesttypes.h:27109
Definition requesttypes.h:27148
Definition requesttypes.h:27235
Definition requesttypes.h:27374
Definition requesttypes.h:27473
Definition requesttypes.h:27684
Definition requesttypes.h:28467
Definition requesttypes.h:28489
Definition requesttypes.h:28511
Definition loader.h:285
ApiClient * apiClient() const
Definition loader.h:95
Contains auto-generated Data Transfer Objects for the Jellyfin HTTP API.