Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
publicsysteminfo.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_PUBLICSYSTEMINFO_H
31#define JELLYFIN_DTO_PUBLICSYSTEMINFO_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: PublicSystemInfo();
51
55 void replaceData(PublicSystemInfo &other);
56
57 static PublicSystemInfo fromJson(QJsonObject source);
58 void setFromJson(QJsonObject source);
59 QJsonObject toJson() const;
60
61 // Properties
65 QString localAddress() const;
69 void setLocalAddress(QString newLocalAddress);
70 bool localAddressNull() const;
72
76 QString serverName() const;
80 void setServerName(QString newServerName);
81 bool serverNameNull() const;
82 void setServerNameNull();
83
87 QString version() const;
91 void setVersion(QString newVersion);
92 bool versionNull() const;
93 void setVersionNull();
94
98 QString productName() const;
102 void setProductName(QString newProductName);
103 bool productNameNull() const;
104 void setProductNameNull();
105
109 QString operatingSystem() const;
113 void setOperatingSystem(QString newOperatingSystem);
114 bool operatingSystemNull() const;
116
120 QString jellyfinId() const;
124 void setJellyfinId(QString newJellyfinId);
125 bool jellyfinIdNull() const;
126 void setJellyfinIdNull();
127
131 std::optional<bool> startupWizardCompleted() const;
135 void setStartupWizardCompleted(std::optional<bool> newStartupWizardCompleted);
136 bool startupWizardCompletedNull() const;
138
139
140protected:
143 QString m_version;
147 std::optional<bool> m_startupWizardCompleted = std::nullopt;
148
149
150};
151
152
153} // NS DTO
154
155namespace Support {
156
158
159template <>
161
162template<>
164
165} // NS DTO
166} // NS Jellyfin
167
168#endif // JELLYFIN_DTO_PUBLICSYSTEMINFO_H
Definition publicsysteminfo.h:48
void setStartupWizardCompleted(std::optional< bool > newStartupWizardCompleted)
Gets or sets a value indicating whether the startup wizard is completed.
Definition publicsysteminfo.cpp:197
bool startupWizardCompletedNull() const
Definition publicsysteminfo.cpp:200
bool versionNull() const
Definition publicsysteminfo.cpp:148
QString productName() const
Gets or sets the product name. This is the AssemblyProduct name.
Definition publicsysteminfo.cpp:156
void setJellyfinId(QString newJellyfinId)
Gets or sets the id.
Definition publicsysteminfo.cpp:184
void setJellyfinIdNull()
Definition publicsysteminfo.cpp:191
bool jellyfinIdNull() const
Definition publicsysteminfo.cpp:187
QJsonObject toJson() const
Definition publicsysteminfo.cpp:76
QString localAddress() const
Gets or sets the local address.
Definition publicsysteminfo.cpp:117
QString operatingSystem() const
Gets or sets the operating system.
Definition publicsysteminfo.cpp:169
bool productNameNull() const
Definition publicsysteminfo.cpp:161
std::optional< bool > m_startupWizardCompleted
Definition publicsysteminfo.h:147
QString m_version
Definition publicsysteminfo.h:143
void setFromJson(QJsonObject source)
Definition publicsysteminfo.cpp:65
QString m_productName
Definition publicsysteminfo.h:144
QString m_operatingSystem
Definition publicsysteminfo.h:145
PublicSystemInfo()
Definition publicsysteminfo.cpp:35
void setStartupWizardCompletedNull()
Definition publicsysteminfo.cpp:204
QString version() const
Gets or sets the server version.
Definition publicsysteminfo.cpp:143
void setProductName(QString newProductName)
Gets or sets the product name. This is the AssemblyProduct name.
Definition publicsysteminfo.cpp:158
void replaceData(PublicSystemInfo &other)
Definition publicsysteminfo.cpp:48
QString m_jellyfinId
Definition publicsysteminfo.h:146
void setOperatingSystemNull()
Definition publicsysteminfo.cpp:178
bool serverNameNull() const
Definition publicsysteminfo.cpp:135
void setVersion(QString newVersion)
Gets or sets the server version.
Definition publicsysteminfo.cpp:145
QString m_serverName
Definition publicsysteminfo.h:142
static PublicSystemInfo fromJson(QJsonObject source)
Definition publicsysteminfo.cpp:58
void setOperatingSystem(QString newOperatingSystem)
Gets or sets the operating system.
Definition publicsysteminfo.cpp:171
QString jellyfinId() const
Gets or sets the id.
Definition publicsysteminfo.cpp:182
void setProductNameNull()
Definition publicsysteminfo.cpp:165
std::optional< bool > startupWizardCompleted() const
Gets or sets a value indicating whether the startup wizard is completed.
Definition publicsysteminfo.cpp:195
bool operatingSystemNull() const
Definition publicsysteminfo.cpp:174
QString m_localAddress
Definition publicsysteminfo.h:141
bool localAddressNull() const
Definition publicsysteminfo.cpp:122
void setLocalAddressNull()
Definition publicsysteminfo.cpp:126
void setServerName(QString newServerName)
Gets or sets the name of the server.
Definition publicsysteminfo.cpp:132
void setVersionNull()
Definition publicsysteminfo.cpp:152
void setServerNameNull()
Definition publicsysteminfo.cpp:139
QString serverName() const
Gets or sets the name of the server.
Definition publicsysteminfo.cpp:130
void setLocalAddress(QString newLocalAddress)
Gets or sets the local address.
Definition publicsysteminfo.cpp:119
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