Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
deviceidentification.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_DEVICEIDENTIFICATION_H
31#define JELLYFIN_DTO_DEVICEIDENTIFICATION_H
32
33#include <QJsonObject>
34#include <QJsonValue>
35#include <QList>
36#include <QString>
37#include <QStringList>
38#include <optional>
39
42
43namespace Jellyfin {
44// Forward declaration
45class ApiClient;
46}
47namespace Jellyfin {
48namespace DTO {
49
50
52public: DeviceIdentification();
54
59
60 static DeviceIdentification fromJson(QJsonObject source);
61 void setFromJson(QJsonObject source);
62 QJsonObject toJson() const;
63
64 // Properties
68 QString friendlyName() const;
72 void setFriendlyName(QString newFriendlyName);
73 bool friendlyNameNull() const;
75
79 QString modelNumber() const;
83 void setModelNumber(QString newModelNumber);
84 bool modelNumberNull() const;
85 void setModelNumberNull();
86
90 QString serialNumber() const;
94 void setSerialNumber(QString newSerialNumber);
95 bool serialNumberNull() const;
97
101 QString modelName() const;
105 void setModelName(QString newModelName);
106 bool modelNameNull() const;
107 void setModelNameNull();
108
112 QString modelDescription() const;
116 void setModelDescription(QString newModelDescription);
117 bool modelDescriptionNull() const;
119
123 QString modelUrl() const;
127 void setModelUrl(QString newModelUrl);
128 bool modelUrlNull() const;
129 void setModelUrlNull();
130
134 QString manufacturer() const;
138 void setManufacturer(QString newManufacturer);
139 bool manufacturerNull() const;
140 void setManufacturerNull();
141
145 QString manufacturerUrl() const;
149 void setManufacturerUrl(QString newManufacturerUrl);
150 bool manufacturerUrlNull() const;
152
160 void setHeaders(QList<HttpHeaderInfo> newHeaders);
161 bool headersNull() const;
162 void setHeadersNull();
163
164
165protected:
169 QString m_modelName;
171 QString m_modelUrl;
175
176
177};
178
179
180} // NS DTO
181
182namespace Support {
183
185
186template <>
188
189template<>
191
192} // NS DTO
193} // NS Jellyfin
194
195#endif // JELLYFIN_DTO_DEVICEIDENTIFICATION_H
Definition deviceidentification.h:51
QString m_serialNumber
Definition deviceidentification.h:168
void setModelDescriptionNull()
Definition deviceidentification.cpp:194
bool modelUrlNull() const
Definition deviceidentification.cpp:203
void setModelNumberNull()
Definition deviceidentification.cpp:155
QString modelUrl() const
Gets or sets the model URL.
Definition deviceidentification.cpp:198
QString modelNumber() const
Gets or sets the model number.
Definition deviceidentification.cpp:146
QString m_modelDescription
Definition deviceidentification.h:170
void setHeadersNull()
Definition deviceidentification.cpp:246
QList< HttpHeaderInfo > m_headers
Definition deviceidentification.h:174
QJsonObject toJson() const
Definition deviceidentification.cpp:82
bool manufacturerUrlNull() const
Definition deviceidentification.cpp:229
void setManufacturerUrl(QString newManufacturerUrl)
Gets or sets the manufacturer URL.
Definition deviceidentification.cpp:226
QString serialNumber() const
Gets or sets the serial number.
Definition deviceidentification.cpp:159
bool modelNumberNull() const
Definition deviceidentification.cpp:151
void setModelUrl(QString newModelUrl)
Gets or sets the model URL.
Definition deviceidentification.cpp:200
QString m_modelUrl
Definition deviceidentification.h:171
void setModelNameNull()
Definition deviceidentification.cpp:181
bool modelNameNull() const
Definition deviceidentification.cpp:177
void setFromJson(QJsonObject source)
Definition deviceidentification.cpp:69
QString m_manufacturer
Definition deviceidentification.h:172
QString manufacturer() const
Gets or sets the manufacturer.
Definition deviceidentification.cpp:211
bool serialNumberNull() const
Definition deviceidentification.cpp:164
void setManufacturerNull()
Definition deviceidentification.cpp:220
DeviceIdentification()
Definition deviceidentification.cpp:35
QString modelDescription() const
Gets or sets the model description.
Definition deviceidentification.cpp:185
void setManufacturerUrlNull()
Definition deviceidentification.cpp:233
QList< HttpHeaderInfo > headers() const
Gets or sets the headers.
Definition deviceidentification.cpp:237
QString manufacturerUrl() const
Gets or sets the manufacturer URL.
Definition deviceidentification.cpp:224
void setHeaders(QList< HttpHeaderInfo > newHeaders)
Gets or sets the headers.
Definition deviceidentification.cpp:239
void setSerialNumberNull()
Definition deviceidentification.cpp:168
QString m_modelNumber
Definition deviceidentification.h:167
bool friendlyNameNull() const
Definition deviceidentification.cpp:138
QString friendlyName() const
Gets or sets the name of the friendly.
Definition deviceidentification.cpp:133
void setModelDescription(QString newModelDescription)
Gets or sets the model description.
Definition deviceidentification.cpp:187
void setModelName(QString newModelName)
Gets or sets the name of the model.
Definition deviceidentification.cpp:174
QString modelName() const
Gets or sets the name of the model.
Definition deviceidentification.cpp:172
void setFriendlyName(QString newFriendlyName)
Gets or sets the name of the friendly.
Definition deviceidentification.cpp:135
QString m_manufacturerUrl
Definition deviceidentification.h:173
void setModelUrlNull()
Definition deviceidentification.cpp:207
QString m_modelName
Definition deviceidentification.h:169
bool modelDescriptionNull() const
Definition deviceidentification.cpp:190
void setSerialNumber(QString newSerialNumber)
Gets or sets the serial number.
Definition deviceidentification.cpp:161
static DeviceIdentification fromJson(QJsonObject source)
Definition deviceidentification.cpp:62
void setManufacturer(QString newManufacturer)
Gets or sets the manufacturer.
Definition deviceidentification.cpp:213
QString m_friendlyName
Definition deviceidentification.h:166
bool headersNull() const
Definition deviceidentification.cpp:242
void replaceData(DeviceIdentification &other)
Definition deviceidentification.cpp:50
void setFriendlyNameNull()
Definition deviceidentification.cpp:142
void setModelNumber(QString newModelNumber)
Gets or sets the model number.
Definition deviceidentification.cpp:148
bool manufacturerNull() const
Definition deviceidentification.cpp:216
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