Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
openlivestreamdto.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_OPENLIVESTREAMDTO_H
31#define JELLYFIN_DTO_OPENLIVESTREAMDTO_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<DeviceProfile> deviceProfile
57 );
58
60
64 void replaceData(OpenLiveStreamDto &other);
65
66 static OpenLiveStreamDto fromJson(QJsonObject source);
67 void setFromJson(QJsonObject source);
68 QJsonObject toJson() const;
69
70 // Properties
74 QString openToken() const;
78 void setOpenToken(QString newOpenToken);
79 bool openTokenNull() const;
80 void setOpenTokenNull();
81
85 QString userId() const;
89 void setUserId(QString newUserId);
90 bool userIdNull() const;
91 void setUserIdNull();
92
96 QString playSessionId() const;
100 void setPlaySessionId(QString newPlaySessionId);
101 bool playSessionIdNull() const;
103
107 std::optional<qint32> maxStreamingBitrate() const;
111 void setMaxStreamingBitrate(std::optional<qint32> newMaxStreamingBitrate);
112 bool maxStreamingBitrateNull() const;
114
118 std::optional<qint64> startTimeTicks() const;
122 void setStartTimeTicks(std::optional<qint64> newStartTimeTicks);
123 bool startTimeTicksNull() const;
125
129 std::optional<qint32> audioStreamIndex() const;
133 void setAudioStreamIndex(std::optional<qint32> newAudioStreamIndex);
134 bool audioStreamIndexNull() const;
136
140 std::optional<qint32> subtitleStreamIndex() const;
144 void setSubtitleStreamIndex(std::optional<qint32> newSubtitleStreamIndex);
145 bool subtitleStreamIndexNull() const;
147
151 std::optional<qint32> maxAudioChannels() const;
155 void setMaxAudioChannels(std::optional<qint32> newMaxAudioChannels);
156 bool maxAudioChannelsNull() const;
158
162 QString itemId() const;
166 void setItemId(QString newItemId);
167 bool itemIdNull() const;
168 void setItemIdNull();
169
173 std::optional<bool> enableDirectPlay() const;
177 void setEnableDirectPlay(std::optional<bool> newEnableDirectPlay);
178 bool enableDirectPlayNull() const;
180
184 std::optional<bool> enableDirectStream() const;
188 void setEnableDirectStream(std::optional<bool> newEnableDirectStream);
189 bool enableDirectStreamNull() const;
191
192
193 QSharedPointer<DeviceProfile> deviceProfile() const;
194
195 void setDeviceProfile(QSharedPointer<DeviceProfile> newDeviceProfile);
196
204 void setDirectPlayProtocols(QList<MediaProtocol> newDirectPlayProtocols);
205 bool directPlayProtocolsNull() const;
207
208
209protected:
210 QString m_openToken;
211 QString m_userId;
213 std::optional<qint32> m_maxStreamingBitrate = std::nullopt;
214 std::optional<qint64> m_startTimeTicks = std::nullopt;
215 std::optional<qint32> m_audioStreamIndex = std::nullopt;
216 std::optional<qint32> m_subtitleStreamIndex = std::nullopt;
217 std::optional<qint32> m_maxAudioChannels = std::nullopt;
218 QString m_itemId;
219 std::optional<bool> m_enableDirectPlay = std::nullopt;
220 std::optional<bool> m_enableDirectStream = std::nullopt;
221 QSharedPointer<DeviceProfile> m_deviceProfile = QSharedPointer<DeviceProfile>();
223
224private:
225 // Private constructor which generates an invalid object, for use withing OpenLiveStreamDto::fromJson();
227};
228
229
230} // NS DTO
231
232namespace Support {
233
235
236template <>
238
239template<>
241
242} // NS DTO
243} // NS Jellyfin
244
245#endif // JELLYFIN_DTO_OPENLIVESTREAMDTO_H
Definition openlivestreamdto.h:53
QString m_userId
Definition openlivestreamdto.h:211
bool subtitleStreamIndexNull() const
Definition openlivestreamdto.cpp:250
void setPlaySessionIdNull()
Definition openlivestreamdto.cpp:202
void setUserIdNull()
Definition openlivestreamdto.cpp:189
bool audioStreamIndexNull() const
Definition openlivestreamdto.cpp:237
void setMaxAudioChannelsNull()
Definition openlivestreamdto.cpp:267
void setMaxStreamingBitrate(std::optional< qint32 > newMaxStreamingBitrate)
Gets or sets the max streaming bitrate.
Definition openlivestreamdto.cpp:208
std::optional< qint32 > m_maxAudioChannels
Definition openlivestreamdto.h:217
std::optional< qint32 > m_maxStreamingBitrate
Definition openlivestreamdto.h:213
std::optional< qint32 > maxStreamingBitrate() const
Gets or sets the max streaming bitrate.
Definition openlivestreamdto.cpp:206
bool enableDirectStreamNull() const
Definition openlivestreamdto.cpp:302
QSharedPointer< DeviceProfile > deviceProfile() const
Definition openlivestreamdto.cpp:310
bool maxStreamingBitrateNull() const
Definition openlivestreamdto.cpp:211
void setSubtitleStreamIndexNull()
Definition openlivestreamdto.cpp:254
void setEnableDirectStreamNull()
Definition openlivestreamdto.cpp:306
bool playSessionIdNull() const
Definition openlivestreamdto.cpp:198
QSharedPointer< DeviceProfile > m_deviceProfile
Definition openlivestreamdto.h:221
std::optional< bool > m_enableDirectStream
Definition openlivestreamdto.h:220
std::optional< qint32 > m_audioStreamIndex
Definition openlivestreamdto.h:215
std::optional< qint64 > startTimeTicks() const
Gets or sets the start time in ticks.
Definition openlivestreamdto.cpp:219
std::optional< qint32 > m_subtitleStreamIndex
Definition openlivestreamdto.h:216
std::optional< bool > m_enableDirectPlay
Definition openlivestreamdto.h:219
QString m_openToken
Definition openlivestreamdto.h:210
QString itemId() const
Gets or sets the item id.
Definition openlivestreamdto.cpp:271
bool startTimeTicksNull() const
Definition openlivestreamdto.cpp:224
void setDirectPlayProtocolsNull()
Definition openlivestreamdto.cpp:325
void setStartTimeTicks(std::optional< qint64 > newStartTimeTicks)
Gets or sets the start time in ticks.
Definition openlivestreamdto.cpp:221
QString openToken() const
Gets or sets the open token.
Definition openlivestreamdto.cpp:167
QString playSessionId() const
Gets or sets the play session id.
Definition openlivestreamdto.cpp:193
void setEnableDirectStream(std::optional< bool > newEnableDirectStream)
Gets or sets a value indicating whether to enale direct stream.
Definition openlivestreamdto.cpp:299
void setDirectPlayProtocols(QList< MediaProtocol > newDirectPlayProtocols)
Gets or sets the device play protocols.
Definition openlivestreamdto.cpp:318
void setItemId(QString newItemId)
Gets or sets the item id.
Definition openlivestreamdto.cpp:273
void setMaxAudioChannels(std::optional< qint32 > newMaxAudioChannels)
Gets or sets the max audio channels.
Definition openlivestreamdto.cpp:260
void setMaxStreamingBitrateNull()
Definition openlivestreamdto.cpp:215
void setItemIdNull()
Definition openlivestreamdto.cpp:280
bool enableDirectPlayNull() const
Definition openlivestreamdto.cpp:289
QList< MediaProtocol > m_directPlayProtocols
Definition openlivestreamdto.h:222
QList< MediaProtocol > directPlayProtocols() const
Gets or sets the device play protocols.
Definition openlivestreamdto.cpp:316
std::optional< qint32 > maxAudioChannels() const
Gets or sets the max audio channels.
Definition openlivestreamdto.cpp:258
void setAudioStreamIndex(std::optional< qint32 > newAudioStreamIndex)
Gets or sets the audio stream index.
Definition openlivestreamdto.cpp:234
QString userId() const
Gets or sets the user id.
Definition openlivestreamdto.cpp:180
void setEnableDirectPlayNull()
Definition openlivestreamdto.cpp:293
void setDeviceProfile(QSharedPointer< DeviceProfile > newDeviceProfile)
Definition openlivestreamdto.cpp:312
std::optional< qint64 > m_startTimeTicks
Definition openlivestreamdto.h:214
void setAudioStreamIndexNull()
Definition openlivestreamdto.cpp:241
bool directPlayProtocolsNull() const
Definition openlivestreamdto.cpp:321
std::optional< qint32 > subtitleStreamIndex() const
Gets or sets the subtitle stream index.
Definition openlivestreamdto.cpp:245
std::optional< bool > enableDirectStream() const
Gets or sets a value indicating whether to enale direct stream.
Definition openlivestreamdto.cpp:297
void setEnableDirectPlay(std::optional< bool > newEnableDirectPlay)
Gets or sets a value indicating whether to enable direct play.
Definition openlivestreamdto.cpp:286
bool userIdNull() const
Definition openlivestreamdto.cpp:185
void setSubtitleStreamIndex(std::optional< qint32 > newSubtitleStreamIndex)
Gets or sets the subtitle stream index.
Definition openlivestreamdto.cpp:247
std::optional< bool > enableDirectPlay() const
Gets or sets a value indicating whether to enable direct play.
Definition openlivestreamdto.cpp:284
void setOpenToken(QString newOpenToken)
Gets or sets the open token.
Definition openlivestreamdto.cpp:169
void setUserId(QString newUserId)
Gets or sets the user id.
Definition openlivestreamdto.cpp:182
void setFromJson(QJsonObject source)
Definition openlivestreamdto.cpp:83
void setStartTimeTicksNull()
Definition openlivestreamdto.cpp:228
bool maxAudioChannelsNull() const
Definition openlivestreamdto.cpp:263
void setPlaySessionId(QString newPlaySessionId)
Gets or sets the play session id.
Definition openlivestreamdto.cpp:195
QString m_playSessionId
Definition openlivestreamdto.h:212
QJsonObject toJson() const
Definition openlivestreamdto.cpp:100
static OpenLiveStreamDto fromJson(QJsonObject source)
Definition openlivestreamdto.cpp:76
void replaceData(OpenLiveStreamDto &other)
Definition openlivestreamdto.cpp:60
QString m_itemId
Definition openlivestreamdto.h:218
bool openTokenNull() const
Definition openlivestreamdto.cpp:172
bool itemIdNull() const
Definition openlivestreamdto.cpp:276
std::optional< qint32 > audioStreamIndex() const
Gets or sets the audio stream index.
Definition openlivestreamdto.cpp:232
void setOpenTokenNull()
Definition openlivestreamdto.cpp:176
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