Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
tunerhostinfo.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_TUNERHOSTINFO_H
31#define JELLYFIN_DTO_TUNERHOSTINFO_H
32
33#include <QJsonObject>
34#include <QJsonValue>
35#include <QString>
36#include <optional>
37
39
40namespace Jellyfin {
41// Forward declaration
42class ApiClient;
43}
44namespace Jellyfin {
45namespace DTO {
46
47
49public:
57 qint32 tunerCount,
58 bool ignoreDts
59 );
60
61 TunerHostInfo(const TunerHostInfo &other);
62
66 void replaceData(TunerHostInfo &other);
67
68 static TunerHostInfo fromJson(QJsonObject source);
69 void setFromJson(QJsonObject source);
70 QJsonObject toJson() const;
71
72 // Properties
73
74 QString jellyfinId() const;
75
76 void setJellyfinId(QString newJellyfinId);
77 bool jellyfinIdNull() const;
78 void setJellyfinIdNull();
79
80
81 QString url() const;
82
83 void setUrl(QString newUrl);
84 bool urlNull() const;
85 void setUrlNull();
86
87
88 QString type() const;
89
90 void setType(QString newType);
91 bool typeNull() const;
92 void setTypeNull();
93
94
95 QString deviceId() const;
96
97 void setDeviceId(QString newDeviceId);
98 bool deviceIdNull() const;
99 void setDeviceIdNull();
100
101
102 QString friendlyName() const;
103
104 void setFriendlyName(QString newFriendlyName);
105 bool friendlyNameNull() const;
106 void setFriendlyNameNull();
107
108
109 bool importFavoritesOnly() const;
110
111 void setImportFavoritesOnly(bool newImportFavoritesOnly);
112
113
114 bool allowHWTranscoding() const;
115
116 void setAllowHWTranscoding(bool newAllowHWTranscoding);
117
118
120
121 void setAllowFmp4TranscodingContainer(bool newAllowFmp4TranscodingContainer);
122
123
124 bool allowStreamSharing() const;
125
126 void setAllowStreamSharing(bool newAllowStreamSharing);
127
128
129 qint32 fallbackMaxStreamingBitrate() const;
130
131 void setFallbackMaxStreamingBitrate(qint32 newFallbackMaxStreamingBitrate);
132
133
134 bool enableStreamLooping() const;
135
136 void setEnableStreamLooping(bool newEnableStreamLooping);
137
138
139 QString source() const;
140
141 void setSource(QString newSource);
142 bool sourceNull() const;
143 void setSourceNull();
144
145
146 qint32 tunerCount() const;
147
148 void setTunerCount(qint32 newTunerCount);
149
150
151 QString userAgent() const;
152
153 void setUserAgent(QString newUserAgent);
154 bool userAgentNull() const;
155 void setUserAgentNull();
156
157
158 bool ignoreDts() const;
159
160 void setIgnoreDts(bool newIgnoreDts);
161
162
163protected:
165 QString m_url;
166 QString m_type;
167 QString m_deviceId;
175 QString m_source;
177 QString m_userAgent;
179
180private:
181 // Private constructor which generates an invalid object, for use withing TunerHostInfo::fromJson();
183};
184
185
186} // NS DTO
187
188namespace Support {
189
191
192template <>
194
195template<>
196QJsonValue toJsonValue(const TunerHostInfo &source, convertType<TunerHostInfo>);
197
198} // NS DTO
199} // NS Jellyfin
200
201#endif // JELLYFIN_DTO_TUNERHOSTINFO_H
An Api client for Jellyfin. Handles requests and authentication.
Definition apiclient.h:90
Definition tunerhostinfo.h:48
void setEnableStreamLooping(bool newEnableStreamLooping)
Definition tunerhostinfo.cpp:266
QString m_jellyfinId
Definition tunerhostinfo.h:164
void setUserAgent(QString newUserAgent)
Definition tunerhostinfo.cpp:291
QString type() const
Definition tunerhostinfo.cpp:195
void setFromJson(QJsonObject source)
Definition tunerhostinfo.cpp:101
TunerHostInfo(bool importFavoritesOnly, bool allowHWTranscoding, bool allowFmp4TranscodingContainer, bool allowStreamSharing, qint32 fallbackMaxStreamingBitrate, bool enableStreamLooping, qint32 tunerCount, bool ignoreDts)
Definition tunerhostinfo.cpp:36
void setFriendlyName(QString newFriendlyName)
Definition tunerhostinfo.cpp:223
void setSourceNull()
Definition tunerhostinfo.cpp:279
void setTunerCount(qint32 newTunerCount)
Definition tunerhostinfo.cpp:285
qint32 m_fallbackMaxStreamingBitrate
Definition tunerhostinfo.h:173
QString url() const
Definition tunerhostinfo.cpp:182
void setUserAgentNull()
Definition tunerhostinfo.cpp:298
bool m_allowHWTranscoding
Definition tunerhostinfo.h:170
bool deviceIdNull() const
Definition tunerhostinfo.cpp:213
void setFallbackMaxStreamingBitrate(qint32 newFallbackMaxStreamingBitrate)
Definition tunerhostinfo.cpp:260
void setAllowHWTranscoding(bool newAllowHWTranscoding)
Definition tunerhostinfo.cpp:242
bool allowFmp4TranscodingContainer() const
Definition tunerhostinfo.cpp:246
bool urlNull() const
Definition tunerhostinfo.cpp:187
void setUrl(QString newUrl)
Definition tunerhostinfo.cpp:184
QString deviceId() const
Definition tunerhostinfo.cpp:208
void setUrlNull()
Definition tunerhostinfo.cpp:191
bool userAgentNull() const
Definition tunerhostinfo.cpp:294
QString m_userAgent
Definition tunerhostinfo.h:177
bool friendlyNameNull() const
Definition tunerhostinfo.cpp:226
void setDeviceIdNull()
Definition tunerhostinfo.cpp:217
bool allowHWTranscoding() const
Definition tunerhostinfo.cpp:240
bool m_ignoreDts
Definition tunerhostinfo.h:178
QString friendlyName() const
Definition tunerhostinfo.cpp:221
bool ignoreDts() const
Definition tunerhostinfo.cpp:302
bool m_allowStreamSharing
Definition tunerhostinfo.h:172
QString m_url
Definition tunerhostinfo.h:165
static TunerHostInfo fromJson(QJsonObject source)
Definition tunerhostinfo.cpp:94
void setIgnoreDts(bool newIgnoreDts)
Definition tunerhostinfo.cpp:304
bool enableStreamLooping() const
Definition tunerhostinfo.cpp:264
QString m_deviceId
Definition tunerhostinfo.h:167
qint32 tunerCount() const
Definition tunerhostinfo.cpp:283
QJsonObject toJson() const
Definition tunerhostinfo.cpp:120
void setSource(QString newSource)
Definition tunerhostinfo.cpp:272
void setTypeNull()
Definition tunerhostinfo.cpp:204
bool allowStreamSharing() const
Definition tunerhostinfo.cpp:252
void setDeviceId(QString newDeviceId)
Definition tunerhostinfo.cpp:210
void replaceData(TunerHostInfo &other)
Definition tunerhostinfo.cpp:76
bool importFavoritesOnly() const
Definition tunerhostinfo.cpp:234
void setFriendlyNameNull()
Definition tunerhostinfo.cpp:230
bool jellyfinIdNull() const
Definition tunerhostinfo.cpp:174
bool m_allowFmp4TranscodingContainer
Definition tunerhostinfo.h:171
bool m_enableStreamLooping
Definition tunerhostinfo.h:174
qint32 fallbackMaxStreamingBitrate() const
Definition tunerhostinfo.cpp:258
void setType(QString newType)
Definition tunerhostinfo.cpp:197
bool typeNull() const
Definition tunerhostinfo.cpp:200
void setJellyfinIdNull()
Definition tunerhostinfo.cpp:178
QString source() const
Definition tunerhostinfo.cpp:270
QString jellyfinId() const
Definition tunerhostinfo.cpp:169
bool sourceNull() const
Definition tunerhostinfo.cpp:275
bool m_importFavoritesOnly
Definition tunerhostinfo.h:169
QString m_source
Definition tunerhostinfo.h:175
qint32 m_tunerCount
Definition tunerhostinfo.h:176
QString m_friendlyName
Definition tunerhostinfo.h:168
QString m_type
Definition tunerhostinfo.h:166
QString userAgent() const
Definition tunerhostinfo.cpp:289
void setImportFavoritesOnly(bool newImportFavoritesOnly)
Definition tunerhostinfo.cpp:236
void setAllowStreamSharing(bool newAllowStreamSharing)
Definition tunerhostinfo.cpp:254
void setJellyfinId(QString newJellyfinId)
Definition tunerhostinfo.cpp:171
void setAllowFmp4TranscodingContainer(bool newAllowFmp4TranscodingContainer)
Definition tunerhostinfo.cpp:248
Contains auto-generated Data Transfer Objects for the Jellyfin HTTP API.
Definition accessschedule.h:128
Jellyfin::DTO::TunerHostInfo TunerHostInfo
Definition tunerhostinfo.h:190
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