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:
54 qint32 tunerCount
55 );
56
57 TunerHostInfo(const TunerHostInfo &other);
58
62 void replaceData(TunerHostInfo &other);
63
64 static TunerHostInfo fromJson(QJsonObject source);
65 void setFromJson(QJsonObject source);
66 QJsonObject toJson() const;
67
68 // Properties
69
70 QString jellyfinId() const;
71
72 void setJellyfinId(QString newJellyfinId);
73 bool jellyfinIdNull() const;
74 void setJellyfinIdNull();
75
76
77 QString url() const;
78
79 void setUrl(QString newUrl);
80 bool urlNull() const;
81 void setUrlNull();
82
83
84 QString type() const;
85
86 void setType(QString newType);
87 bool typeNull() const;
88 void setTypeNull();
89
90
91 QString deviceId() const;
92
93 void setDeviceId(QString newDeviceId);
94 bool deviceIdNull() const;
95 void setDeviceIdNull();
96
97
98 QString friendlyName() const;
99
100 void setFriendlyName(QString newFriendlyName);
101 bool friendlyNameNull() const;
102 void setFriendlyNameNull();
103
104
105 bool importFavoritesOnly() const;
106
107 void setImportFavoritesOnly(bool newImportFavoritesOnly);
108
109
110 bool allowHWTranscoding() const;
111
112 void setAllowHWTranscoding(bool newAllowHWTranscoding);
113
114
115 bool enableStreamLooping() const;
116
117 void setEnableStreamLooping(bool newEnableStreamLooping);
118
119
120 QString source() const;
121
122 void setSource(QString newSource);
123 bool sourceNull() const;
124 void setSourceNull();
125
126
127 qint32 tunerCount() const;
128
129 void setTunerCount(qint32 newTunerCount);
130
131
132 QString userAgent() const;
133
134 void setUserAgent(QString newUserAgent);
135 bool userAgentNull() const;
136 void setUserAgentNull();
137
138
139protected:
141 QString m_url;
142 QString m_type;
143 QString m_deviceId;
148 QString m_source;
150 QString m_userAgent;
151
152private:
153 // Private constructor which generates an invalid object, for use withing TunerHostInfo::fromJson();
155};
156
157
158} // NS DTO
159
160namespace Support {
161
163
164template <>
166
167template<>
168QJsonValue toJsonValue(const TunerHostInfo &source, convertType<TunerHostInfo>);
169
170} // NS DTO
171} // NS Jellyfin
172
173#endif // JELLYFIN_DTO_TUNERHOSTINFO_H
Definition tunerhostinfo.h:48
void setEnableStreamLooping(bool newEnableStreamLooping)
Definition tunerhostinfo.cpp:224
QString m_jellyfinId
Definition tunerhostinfo.h:140
void setUserAgent(QString newUserAgent)
Definition tunerhostinfo.cpp:249
QString type() const
Definition tunerhostinfo.cpp:171
void setFromJson(QJsonObject source)
Definition tunerhostinfo.cpp:85
void setFriendlyName(QString newFriendlyName)
Definition tunerhostinfo.cpp:199
void setSourceNull()
Definition tunerhostinfo.cpp:237
void setTunerCount(qint32 newTunerCount)
Definition tunerhostinfo.cpp:243
QString url() const
Definition tunerhostinfo.cpp:158
void setUserAgentNull()
Definition tunerhostinfo.cpp:256
bool m_allowHWTranscoding
Definition tunerhostinfo.h:146
bool deviceIdNull() const
Definition tunerhostinfo.cpp:189
void setAllowHWTranscoding(bool newAllowHWTranscoding)
Definition tunerhostinfo.cpp:218
bool urlNull() const
Definition tunerhostinfo.cpp:163
void setUrl(QString newUrl)
Definition tunerhostinfo.cpp:160
QString deviceId() const
Definition tunerhostinfo.cpp:184
void setUrlNull()
Definition tunerhostinfo.cpp:167
bool userAgentNull() const
Definition tunerhostinfo.cpp:252
QString m_userAgent
Definition tunerhostinfo.h:150
bool friendlyNameNull() const
Definition tunerhostinfo.cpp:202
void setDeviceIdNull()
Definition tunerhostinfo.cpp:193
bool allowHWTranscoding() const
Definition tunerhostinfo.cpp:216
QString friendlyName() const
Definition tunerhostinfo.cpp:197
QString m_url
Definition tunerhostinfo.h:141
static TunerHostInfo fromJson(QJsonObject source)
Definition tunerhostinfo.cpp:78
bool enableStreamLooping() const
Definition tunerhostinfo.cpp:222
QString m_deviceId
Definition tunerhostinfo.h:143
qint32 tunerCount() const
Definition tunerhostinfo.cpp:241
QJsonObject toJson() const
Definition tunerhostinfo.cpp:100
void setSource(QString newSource)
Definition tunerhostinfo.cpp:230
void setTypeNull()
Definition tunerhostinfo.cpp:180
void setDeviceId(QString newDeviceId)
Definition tunerhostinfo.cpp:186
void replaceData(TunerHostInfo &other)
Definition tunerhostinfo.cpp:64
bool importFavoritesOnly() const
Definition tunerhostinfo.cpp:210
void setFriendlyNameNull()
Definition tunerhostinfo.cpp:206
bool jellyfinIdNull() const
Definition tunerhostinfo.cpp:150
bool m_enableStreamLooping
Definition tunerhostinfo.h:147
void setType(QString newType)
Definition tunerhostinfo.cpp:173
bool typeNull() const
Definition tunerhostinfo.cpp:176
void setJellyfinIdNull()
Definition tunerhostinfo.cpp:154
QString source() const
Definition tunerhostinfo.cpp:228
QString jellyfinId() const
Definition tunerhostinfo.cpp:145
bool sourceNull() const
Definition tunerhostinfo.cpp:233
bool m_importFavoritesOnly
Definition tunerhostinfo.h:145
QString m_source
Definition tunerhostinfo.h:148
qint32 m_tunerCount
Definition tunerhostinfo.h:149
QString m_friendlyName
Definition tunerhostinfo.h:144
QString m_type
Definition tunerhostinfo.h:142
QString userAgent() const
Definition tunerhostinfo.cpp:247
void setImportFavoritesOnly(bool newImportFavoritesOnly)
Definition tunerhostinfo.cpp:212
void setJellyfinId(QString newJellyfinId)
Definition tunerhostinfo.cpp:147
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