Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
playbackstopinfo.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_DTO_PLAYBACKSTOPINFO_H
31#define JELLYFIN_DTO_PLAYBACKSTOPINFO_H
32
33#include <QJsonObject>
34#include <QJsonValue>
35#include <QList>
36#include <QSharedPointer>
37#include <QString>
38#include <QStringList>
39#include <optional>
40
44
45namespace Jellyfin {
46// Forward declaration
47class ApiClient;
48}
49namespace Jellyfin {
50namespace DTO {
51
52
54public:
56 QSharedPointer<BaseItemDto> item,
57 QString itemId,
58 bool failed
59 );
60
62
66 void replaceData(PlaybackStopInfo &other);
67
68 static PlaybackStopInfo fromJson(QJsonObject source);
69 void setFromJson(QJsonObject source);
70 QJsonObject toJson() const;
71
72 // Properties
73
74 QSharedPointer<BaseItemDto> item() const;
75
76 void setItem(QSharedPointer<BaseItemDto> newItem);
77
81 QString itemId() const;
85 void setItemId(QString newItemId);
86
90 QString sessionId() const;
94 void setSessionId(QString newSessionId);
95 bool sessionIdNull() const;
96 void setSessionIdNull();
97
101 QString mediaSourceId() const;
105 void setMediaSourceId(QString newMediaSourceId);
106 bool mediaSourceIdNull() const;
108
112 std::optional<qint64> positionTicks() const;
116 void setPositionTicks(std::optional<qint64> newPositionTicks);
117 bool positionTicksNull() const;
119
123 QString liveStreamId() const;
127 void setLiveStreamId(QString newLiveStreamId);
128 bool liveStreamIdNull() const;
129 void setLiveStreamIdNull();
130
134 QString playSessionId() const;
138 void setPlaySessionId(QString newPlaySessionId);
139 bool playSessionIdNull() const;
141
145 bool failed() const;
149 void setFailed(bool newFailed);
150
151
152 QString nextMediaType() const;
153
154 void setNextMediaType(QString newNextMediaType);
155 bool nextMediaTypeNull() const;
157
158
159 QString playlistItemId() const;
160
161 void setPlaylistItemId(QString newPlaylistItemId);
162 bool playlistItemIdNull() const;
164
165
167
168 void setNowPlayingQueue(QList<QueueItem> newNowPlayingQueue);
169 bool nowPlayingQueueNull() const;
171
172
173protected:
174 QSharedPointer<BaseItemDto> m_item = QSharedPointer<BaseItemDto>();
175 QString m_itemId;
176 QString m_sessionId;
178 std::optional<qint64> m_positionTicks = std::nullopt;
185
186private:
187 // Private constructor which generates an invalid object, for use withing PlaybackStopInfo::fromJson();
189};
190
191
192} // NS DTO
193
194namespace Support {
195
197
198template <>
200
201template<>
203
204} // NS DTO
205} // NS Jellyfin
206
207#endif // JELLYFIN_DTO_PLAYBACKSTOPINFO_H
Definition playbackstopinfo.h:53
void setPlaySessionIdNull()
Definition playbackstopinfo.cpp:220
QString m_mediaSourceId
Definition playbackstopinfo.h:177
QString m_sessionId
Definition playbackstopinfo.h:176
QString playlistItemId() const
Definition playbackstopinfo.cpp:243
QSharedPointer< BaseItemDto > item() const
Definition playbackstopinfo.cpp:147
bool playSessionIdNull() const
Definition playbackstopinfo.cpp:216
QString m_itemId
Definition playbackstopinfo.h:175
QString m_playlistItemId
Definition playbackstopinfo.h:183
QList< QueueItem > nowPlayingQueue() const
Definition playbackstopinfo.cpp:256
void setFromJson(QJsonObject source)
Definition playbackstopinfo.cpp:83
void setPositionTicks(std::optional< qint64 > newPositionTicks)
Gets or sets the position ticks.
Definition playbackstopinfo.cpp:187
bool m_failed
Definition playbackstopinfo.h:181
bool sessionIdNull() const
Definition playbackstopinfo.cpp:164
QString playSessionId() const
Gets or sets the play session identifier.
Definition playbackstopinfo.cpp:211
void setFailed(bool newFailed)
Gets or sets a value indicating whether this MediaBrowser.Model.Session.PlaybackStopInfo is failed.
Definition playbackstopinfo.cpp:226
QString liveStreamId() const
Gets or sets the live stream identifier.
Definition playbackstopinfo.cpp:198
QList< QueueItem > m_nowPlayingQueue
Definition playbackstopinfo.h:184
void setPositionTicksNull()
Definition playbackstopinfo.cpp:194
void setItemId(QString newItemId)
Gets or sets the item identifier.
Definition playbackstopinfo.cpp:155
bool mediaSourceIdNull() const
Definition playbackstopinfo.cpp:177
void setPlaySessionId(QString newPlaySessionId)
Gets or sets the play session identifier.
Definition playbackstopinfo.cpp:213
QSharedPointer< BaseItemDto > m_item
Definition playbackstopinfo.h:174
void replaceData(PlaybackStopInfo &other)
Definition playbackstopinfo.cpp:62
bool playlistItemIdNull() const
Definition playbackstopinfo.cpp:248
void setMediaSourceId(QString newMediaSourceId)
Gets or sets the media version identifier.
Definition playbackstopinfo.cpp:174
void setLiveStreamIdNull()
Definition playbackstopinfo.cpp:207
void setPlaylistItemId(QString newPlaylistItemId)
Definition playbackstopinfo.cpp:245
void setNextMediaTypeNull()
Definition playbackstopinfo.cpp:239
QString nextMediaType() const
Definition playbackstopinfo.cpp:230
void setNextMediaType(QString newNextMediaType)
Definition playbackstopinfo.cpp:232
void setNowPlayingQueueNull()
Definition playbackstopinfo.cpp:265
static PlaybackStopInfo fromJson(QJsonObject source)
Definition playbackstopinfo.cpp:76
void setMediaSourceIdNull()
Definition playbackstopinfo.cpp:181
QString m_playSessionId
Definition playbackstopinfo.h:180
bool positionTicksNull() const
Definition playbackstopinfo.cpp:190
bool nowPlayingQueueNull() const
Definition playbackstopinfo.cpp:261
QString mediaSourceId() const
Gets or sets the media version identifier.
Definition playbackstopinfo.cpp:172
std::optional< qint64 > m_positionTicks
Definition playbackstopinfo.h:178
QString itemId() const
Gets or sets the item identifier.
Definition playbackstopinfo.cpp:153
bool liveStreamIdNull() const
Definition playbackstopinfo.cpp:203
void setPlaylistItemIdNull()
Definition playbackstopinfo.cpp:252
QString m_nextMediaType
Definition playbackstopinfo.h:182
void setSessionIdNull()
Definition playbackstopinfo.cpp:168
void setItem(QSharedPointer< BaseItemDto > newItem)
Definition playbackstopinfo.cpp:149
QJsonObject toJson() const
Definition playbackstopinfo.cpp:98
QString m_liveStreamId
Definition playbackstopinfo.h:179
void setLiveStreamId(QString newLiveStreamId)
Gets or sets the live stream identifier.
Definition playbackstopinfo.cpp:200
bool nextMediaTypeNull() const
Definition playbackstopinfo.cpp:235
std::optional< qint64 > positionTicks() const
Gets or sets the position ticks.
Definition playbackstopinfo.cpp:185
bool failed() const
Gets or sets a value indicating whether this MediaBrowser.Model.Session.PlaybackStopInfo is failed.
Definition playbackstopinfo.cpp:224
void setNowPlayingQueue(QList< QueueItem > newNowPlayingQueue)
Definition playbackstopinfo.cpp:258
void setSessionId(QString newSessionId)
Gets or sets the session id.
Definition playbackstopinfo.cpp:161
QString sessionId() const
Gets or sets the session id.
Definition playbackstopinfo.cpp:159
Definition mediaplayer2.h:20
AccessSchedule fromJsonValue(const QJsonValue &source, convertType< AccessSchedule >)
Definition accessschedule.cpp:133
QJsonValue toJsonValue(const AccessSchedule &source, convertType< AccessSchedule >)
Definition accessschedule.cpp:139
Definition jsonconvimpl.h:45