Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
playbackinfodto.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_PLAYBACKINFODTO_H
31#define JELLYFIN_DTO_PLAYBACKINFODTO_H
32
33#include <QJsonObject>
34#include <QJsonValue>
35#include <QSharedPointer>
36#include <QString>
37#include <optional>
38
41
42namespace Jellyfin {
43// Forward declaration
44class ApiClient;
45}
46namespace Jellyfin {
47namespace DTO {
48
49
51public:
53 QSharedPointer<DeviceProfile> deviceProfile
54 );
55
56 PlaybackInfoDto(const PlaybackInfoDto &other);
57
61 void replaceData(PlaybackInfoDto &other);
62
63 static PlaybackInfoDto fromJson(QJsonObject source);
64 void setFromJson(QJsonObject source);
65 QJsonObject toJson() const;
66
67 // Properties
71 QString userId() const;
75 void setUserId(QString newUserId);
76 bool userIdNull() const;
77 void setUserIdNull();
78
82 std::optional<qint32> maxStreamingBitrate() const;
86 void setMaxStreamingBitrate(std::optional<qint32> newMaxStreamingBitrate);
87 bool maxStreamingBitrateNull() const;
89
93 std::optional<qint64> startTimeTicks() const;
97 void setStartTimeTicks(std::optional<qint64> newStartTimeTicks);
98 bool startTimeTicksNull() const;
100
104 std::optional<qint32> audioStreamIndex() const;
108 void setAudioStreamIndex(std::optional<qint32> newAudioStreamIndex);
109 bool audioStreamIndexNull() const;
111
115 std::optional<qint32> subtitleStreamIndex() const;
119 void setSubtitleStreamIndex(std::optional<qint32> newSubtitleStreamIndex);
120 bool subtitleStreamIndexNull() const;
122
126 std::optional<qint32> maxAudioChannels() const;
130 void setMaxAudioChannels(std::optional<qint32> newMaxAudioChannels);
131 bool maxAudioChannelsNull() const;
133
137 QString mediaSourceId() const;
141 void setMediaSourceId(QString newMediaSourceId);
142 bool mediaSourceIdNull() const;
144
148 QString liveStreamId() const;
152 void setLiveStreamId(QString newLiveStreamId);
153 bool liveStreamIdNull() const;
154 void setLiveStreamIdNull();
155
156
157 QSharedPointer<DeviceProfile> deviceProfile() const;
158
159 void setDeviceProfile(QSharedPointer<DeviceProfile> newDeviceProfile);
160
164 std::optional<bool> enableDirectPlay() const;
168 void setEnableDirectPlay(std::optional<bool> newEnableDirectPlay);
169 bool enableDirectPlayNull() const;
171
175 std::optional<bool> enableDirectStream() const;
179 void setEnableDirectStream(std::optional<bool> newEnableDirectStream);
180 bool enableDirectStreamNull() const;
182
186 std::optional<bool> enableTranscoding() const;
190 void setEnableTranscoding(std::optional<bool> newEnableTranscoding);
191 bool enableTranscodingNull() const;
193
197 std::optional<bool> allowVideoStreamCopy() const;
201 void setAllowVideoStreamCopy(std::optional<bool> newAllowVideoStreamCopy);
202 bool allowVideoStreamCopyNull() const;
204
208 std::optional<bool> allowAudioStreamCopy() const;
212 void setAllowAudioStreamCopy(std::optional<bool> newAllowAudioStreamCopy);
213 bool allowAudioStreamCopyNull() const;
215
219 std::optional<bool> autoOpenLiveStream() const;
223 void setAutoOpenLiveStream(std::optional<bool> newAutoOpenLiveStream);
224 bool autoOpenLiveStreamNull() const;
226
227
228protected:
229 QString m_userId;
230 std::optional<qint32> m_maxStreamingBitrate = std::nullopt;
231 std::optional<qint64> m_startTimeTicks = std::nullopt;
232 std::optional<qint32> m_audioStreamIndex = std::nullopt;
233 std::optional<qint32> m_subtitleStreamIndex = std::nullopt;
234 std::optional<qint32> m_maxAudioChannels = std::nullopt;
237 QSharedPointer<DeviceProfile> m_deviceProfile = QSharedPointer<DeviceProfile>();
238 std::optional<bool> m_enableDirectPlay = std::nullopt;
239 std::optional<bool> m_enableDirectStream = std::nullopt;
240 std::optional<bool> m_enableTranscoding = std::nullopt;
241 std::optional<bool> m_allowVideoStreamCopy = std::nullopt;
242 std::optional<bool> m_allowAudioStreamCopy = std::nullopt;
243 std::optional<bool> m_autoOpenLiveStream = std::nullopt;
244
245private:
246 // Private constructor which generates an invalid object, for use withing PlaybackInfoDto::fromJson();
248};
249
250
251} // NS DTO
252
253namespace Support {
254
256
257template <>
259
260template<>
262
263} // NS DTO
264} // NS Jellyfin
265
266#endif // JELLYFIN_DTO_PLAYBACKINFODTO_H
Definition playbackinfodto.h:50
bool allowVideoStreamCopyNull() const
Definition playbackinfodto.cpp:337
bool mediaSourceIdNull() const
Definition playbackinfodto.cpp:266
void setMaxStreamingBitrate(std::optional< qint32 > newMaxStreamingBitrate)
Gets or sets the max streaming bitrate.
Definition playbackinfodto.cpp:198
void setEnableDirectStream(std::optional< bool > newEnableDirectStream)
Gets or sets a value indicating whether to enable direct stream.
Definition playbackinfodto.cpp:308
QSharedPointer< DeviceProfile > m_deviceProfile
Definition playbackinfodto.h:237
std::optional< qint32 > maxAudioChannels() const
Gets or sets the max audio channels.
Definition playbackinfodto.cpp:248
std::optional< bool > autoOpenLiveStream() const
Gets or sets a value indicating whether to auto open the live stream.
Definition playbackinfodto.cpp:358
void setLiveStreamIdNull()
Definition playbackinfodto.cpp:283
QString liveStreamId() const
Gets or sets the live stream id.
Definition playbackinfodto.cpp:274
void setSubtitleStreamIndexNull()
Definition playbackinfodto.cpp:244
QString m_mediaSourceId
Definition playbackinfodto.h:235
void setAutoOpenLiveStreamNull()
Definition playbackinfodto.cpp:367
void setEnableTranscodingNull()
Definition playbackinfodto.cpp:328
std::optional< qint64 > startTimeTicks() const
Gets or sets the start time in ticks.
Definition playbackinfodto.cpp:209
std::optional< bool > m_allowAudioStreamCopy
Definition playbackinfodto.h:242
bool autoOpenLiveStreamNull() const
Definition playbackinfodto.cpp:363
void setMediaSourceIdNull()
Definition playbackinfodto.cpp:270
std::optional< bool > allowAudioStreamCopy() const
Gets or sets a value indicating whether to allow audio stream copy.
Definition playbackinfodto.cpp:345
void setEnableDirectStreamNull()
Definition playbackinfodto.cpp:315
void setEnableTranscoding(std::optional< bool > newEnableTranscoding)
Gets or sets a value indicating whether to enable transcoding.
Definition playbackinfodto.cpp:321
QString mediaSourceId() const
Gets or sets the media source id.
Definition playbackinfodto.cpp:261
void setStartTimeTicksNull()
Definition playbackinfodto.cpp:218
bool allowAudioStreamCopyNull() const
Definition playbackinfodto.cpp:350
void setLiveStreamId(QString newLiveStreamId)
Gets or sets the live stream id.
Definition playbackinfodto.cpp:276
void setAudioStreamIndex(std::optional< qint32 > newAudioStreamIndex)
Gets or sets the audio stream index.
Definition playbackinfodto.cpp:224
std::optional< bool > m_enableTranscoding
Definition playbackinfodto.h:240
std::optional< bool > enableDirectStream() const
Gets or sets a value indicating whether to enable direct stream.
Definition playbackinfodto.cpp:306
bool maxStreamingBitrateNull() const
Definition playbackinfodto.cpp:201
QString userId() const
Gets or sets the playback userId.
Definition playbackinfodto.cpp:183
QString m_liveStreamId
Definition playbackinfodto.h:236
std::optional< bool > enableDirectPlay() const
Gets or sets a value indicating whether to enable direct play.
Definition playbackinfodto.cpp:293
std::optional< bool > m_enableDirectPlay
Definition playbackinfodto.h:238
bool audioStreamIndexNull() const
Definition playbackinfodto.cpp:227
static PlaybackInfoDto fromJson(QJsonObject source)
Definition playbackinfodto.cpp:80
std::optional< qint32 > audioStreamIndex() const
Gets or sets the audio stream index.
Definition playbackinfodto.cpp:222
void setStartTimeTicks(std::optional< qint64 > newStartTimeTicks)
Gets or sets the start time in ticks.
Definition playbackinfodto.cpp:211
void setAllowVideoStreamCopy(std::optional< bool > newAllowVideoStreamCopy)
Gets or sets a value indicating whether to enable video stream copy.
Definition playbackinfodto.cpp:334
std::optional< qint64 > m_startTimeTicks
Definition playbackinfodto.h:231
bool userIdNull() const
Definition playbackinfodto.cpp:188
std::optional< bool > m_enableDirectStream
Definition playbackinfodto.h:239
std::optional< qint32 > subtitleStreamIndex() const
Gets or sets the subtitle stream index.
Definition playbackinfodto.cpp:235
bool liveStreamIdNull() const
Definition playbackinfodto.cpp:279
QSharedPointer< DeviceProfile > deviceProfile() const
Definition playbackinfodto.cpp:287
void setSubtitleStreamIndex(std::optional< qint32 > newSubtitleStreamIndex)
Gets or sets the subtitle stream index.
Definition playbackinfodto.cpp:237
void setMaxAudioChannels(std::optional< qint32 > newMaxAudioChannels)
Gets or sets the max audio channels.
Definition playbackinfodto.cpp:250
bool maxAudioChannelsNull() const
Definition playbackinfodto.cpp:253
void setUserId(QString newUserId)
Gets or sets the playback userId.
Definition playbackinfodto.cpp:185
bool startTimeTicksNull() const
Definition playbackinfodto.cpp:214
void setEnableDirectPlayNull()
Definition playbackinfodto.cpp:302
void setFromJson(QJsonObject source)
Definition playbackinfodto.cpp:87
void setMaxAudioChannelsNull()
Definition playbackinfodto.cpp:257
void setUserIdNull()
Definition playbackinfodto.cpp:192
void setMaxStreamingBitrateNull()
Definition playbackinfodto.cpp:205
std::optional< bool > allowVideoStreamCopy() const
Gets or sets a value indicating whether to enable video stream copy.
Definition playbackinfodto.cpp:332
std::optional< bool > enableTranscoding() const
Gets or sets a value indicating whether to enable transcoding.
Definition playbackinfodto.cpp:319
void replaceData(PlaybackInfoDto &other)
Definition playbackinfodto.cpp:62
std::optional< qint32 > m_subtitleStreamIndex
Definition playbackinfodto.h:233
bool enableDirectPlayNull() const
Definition playbackinfodto.cpp:298
void setEnableDirectPlay(std::optional< bool > newEnableDirectPlay)
Gets or sets a value indicating whether to enable direct play.
Definition playbackinfodto.cpp:295
bool enableDirectStreamNull() const
Definition playbackinfodto.cpp:311
void setAudioStreamIndexNull()
Definition playbackinfodto.cpp:231
std::optional< qint32 > m_maxStreamingBitrate
Definition playbackinfodto.h:230
void setDeviceProfile(QSharedPointer< DeviceProfile > newDeviceProfile)
Definition playbackinfodto.cpp:289
void setAllowAudioStreamCopy(std::optional< bool > newAllowAudioStreamCopy)
Gets or sets a value indicating whether to allow audio stream copy.
Definition playbackinfodto.cpp:347
std::optional< bool > m_allowVideoStreamCopy
Definition playbackinfodto.h:241
void setAllowVideoStreamCopyNull()
Definition playbackinfodto.cpp:341
std::optional< qint32 > maxStreamingBitrate() const
Gets or sets the max streaming bitrate.
Definition playbackinfodto.cpp:196
std::optional< qint32 > m_maxAudioChannels
Definition playbackinfodto.h:234
std::optional< qint32 > m_audioStreamIndex
Definition playbackinfodto.h:232
QJsonObject toJson() const
Definition playbackinfodto.cpp:106
bool enableTranscodingNull() const
Definition playbackinfodto.cpp:324
std::optional< bool > m_autoOpenLiveStream
Definition playbackinfodto.h:243
QString m_userId
Definition playbackinfodto.h:229
void setAllowAudioStreamCopyNull()
Definition playbackinfodto.cpp:354
void setMediaSourceId(QString newMediaSourceId)
Gets or sets the media source id.
Definition playbackinfodto.cpp:263
bool subtitleStreamIndexNull() const
Definition playbackinfodto.cpp:240
void setAutoOpenLiveStream(std::optional< bool > newAutoOpenLiveStream)
Gets or sets a value indicating whether to auto open the live stream.
Definition playbackinfodto.cpp:360
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