Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
versioninfo.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_VERSIONINFO_H
31#define JELLYFIN_DTO_VERSIONINFO_H
32
33#include <QJsonObject>
34#include <QJsonValue>
35#include <QSharedPointer>
36#include <QString>
37#include <optional>
38
41
42namespace Jellyfin {
43// Forward declaration
44class ApiClient;
45}
46namespace Jellyfin {
47namespace DTO {
48
49
51public:
53 QSharedPointer<Version> versionNumber
54 );
55
56 VersionInfo(const VersionInfo &other);
57
61 void replaceData(VersionInfo &other);
62
63 static VersionInfo fromJson(QJsonObject source);
64 void setFromJson(QJsonObject source);
65 QJsonObject toJson() const;
66
67 // Properties
71 QString version() const;
75 void setVersion(QString newVersion);
76 bool versionNull() const;
77 void setVersionNull();
78
79
80 QSharedPointer<Version> versionNumber() const;
81
82 void setVersionNumber(QSharedPointer<Version> newVersionNumber);
83
87 QString changelog() const;
91 void setChangelog(QString newChangelog);
92 bool changelogNull() const;
93 void setChangelogNull();
94
98 QString targetAbi() const;
102 void setTargetAbi(QString newTargetAbi);
103 bool targetAbiNull() const;
104 void setTargetAbiNull();
105
109 QString sourceUrl() const;
113 void setSourceUrl(QString newSourceUrl);
114 bool sourceUrlNull() const;
115 void setSourceUrlNull();
116
120 QString checksum() const;
124 void setChecksum(QString newChecksum);
125 bool checksumNull() const;
126 void setChecksumNull();
127
131 QString timestamp() const;
135 void setTimestamp(QString newTimestamp);
136 bool timestampNull() const;
137 void setTimestampNull();
138
142 QString repositoryName() const;
146 void setRepositoryName(QString newRepositoryName);
147 bool repositoryNameNull() const;
149
153 QString repositoryUrl() const;
157 void setRepositoryUrl(QString newRepositoryUrl);
158 bool repositoryUrlNull() const;
160
161
162protected:
163 QString m_version;
164 QSharedPointer<Version> m_versionNumber = QSharedPointer<Version>();
165 QString m_changelog;
166 QString m_targetAbi;
167 QString m_sourceUrl;
168 QString m_checksum;
169 QString m_timestamp;
172
173private:
174 // Private constructor which generates an invalid object, for use withing VersionInfo::fromJson();
175 VersionInfo();
176};
177
178
179} // NS DTO
180
181namespace Support {
182
184
185template <>
186VersionInfo fromJsonValue(const QJsonValue &source, convertType<VersionInfo>);
187
188template<>
189QJsonValue toJsonValue(const VersionInfo &source, convertType<VersionInfo>);
190
191} // NS DTO
192} // NS Jellyfin
193
194#endif // JELLYFIN_DTO_VERSIONINFO_H
Definition versioninfo.h:50
void setRepositoryNameNull()
Definition versioninfo.cpp:228
QString m_targetAbi
Definition versioninfo.h:166
QString targetAbi() const
Gets or sets the ABI that this version was built against.
Definition versioninfo.cpp:167
QString m_repositoryUrl
Definition versioninfo.h:171
bool sourceUrlNull() const
Definition versioninfo.cpp:185
void setVersion(QString newVersion)
Gets or sets the version.
Definition versioninfo.cpp:137
void setFromJson(QJsonObject source)
Definition versioninfo.cpp:75
QString checksum() const
Gets or sets a checksum for the binary.
Definition versioninfo.cpp:193
void setChangelogNull()
Definition versioninfo.cpp:163
bool checksumNull() const
Definition versioninfo.cpp:198
void setChecksum(QString newChecksum)
Gets or sets a checksum for the binary.
Definition versioninfo.cpp:195
QString m_version
Definition versioninfo.h:163
void setSourceUrlNull()
Definition versioninfo.cpp:189
void setSourceUrl(QString newSourceUrl)
Gets or sets the source URL.
Definition versioninfo.cpp:182
void setTargetAbi(QString newTargetAbi)
Gets or sets the ABI that this version was built against.
Definition versioninfo.cpp:169
QSharedPointer< Version > versionNumber() const
Definition versioninfo.cpp:148
void setTargetAbiNull()
Definition versioninfo.cpp:176
void setTimestamp(QString newTimestamp)
Gets or sets a timestamp of when the binary was built.
Definition versioninfo.cpp:208
void setChecksumNull()
Definition versioninfo.cpp:202
void setTimestampNull()
Definition versioninfo.cpp:215
void setVersionNull()
Definition versioninfo.cpp:144
void replaceData(VersionInfo &other)
Definition versioninfo.cpp:56
QString m_checksum
Definition versioninfo.h:168
QJsonObject toJson() const
Definition versioninfo.cpp:88
QString repositoryUrl() const
Gets or sets the repository url.
Definition versioninfo.cpp:232
QString changelog() const
Gets or sets the changelog for this version.
Definition versioninfo.cpp:154
bool repositoryUrlNull() const
Definition versioninfo.cpp:237
QString version() const
Gets or sets the version.
Definition versioninfo.cpp:135
static VersionInfo fromJson(QJsonObject source)
Definition versioninfo.cpp:68
void setRepositoryUrl(QString newRepositoryUrl)
Gets or sets the repository url.
Definition versioninfo.cpp:234
QString m_changelog
Definition versioninfo.h:165
bool versionNull() const
Definition versioninfo.cpp:140
void setRepositoryUrlNull()
Definition versioninfo.cpp:241
QString repositoryName() const
Gets or sets the repository name.
Definition versioninfo.cpp:219
QString sourceUrl() const
Gets or sets the source URL.
Definition versioninfo.cpp:180
bool changelogNull() const
Definition versioninfo.cpp:159
QString m_timestamp
Definition versioninfo.h:169
void setRepositoryName(QString newRepositoryName)
Gets or sets the repository name.
Definition versioninfo.cpp:221
bool targetAbiNull() const
Definition versioninfo.cpp:172
QString m_repositoryName
Definition versioninfo.h:170
QString timestamp() const
Gets or sets a timestamp of when the binary was built.
Definition versioninfo.cpp:206
void setVersionNumber(QSharedPointer< Version > newVersionNumber)
Definition versioninfo.cpp:150
bool timestampNull() const
Definition versioninfo.cpp:211
QString m_sourceUrl
Definition versioninfo.h:167
void setChangelog(QString newChangelog)
Gets or sets the changelog for this version.
Definition versioninfo.cpp:156
bool repositoryNameNull() const
Definition versioninfo.cpp:224
QSharedPointer< Version > m_versionNumber
Definition versioninfo.h:164
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