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 <QString>
36#include <optional>
37
39
40namespace Jellyfin {
41// Forward declaration
42class ApiClient;
43}
44namespace Jellyfin {
45namespace DTO {
46
47
49public:
51 QString version,
52 QString versionNumber,
53 QString repositoryName,
54 QString repositoryUrl
55 );
56
57 VersionInfo(const VersionInfo &other);
58
62 void replaceData(VersionInfo &other);
63
64 static VersionInfo fromJson(QJsonObject source);
65 void setFromJson(QJsonObject source);
66 QJsonObject toJson() const;
67
68 // Properties
72 QString version() const;
76 void setVersion(QString newVersion);
77
81 QString versionNumber() const;
85 void setVersionNumber(QString newVersionNumber);
86
90 QString changelog() const;
94 void setChangelog(QString newChangelog);
95 bool changelogNull() const;
96 void setChangelogNull();
97
101 QString targetAbi() const;
105 void setTargetAbi(QString newTargetAbi);
106 bool targetAbiNull() const;
107 void setTargetAbiNull();
108
112 QString sourceUrl() const;
116 void setSourceUrl(QString newSourceUrl);
117 bool sourceUrlNull() const;
118 void setSourceUrlNull();
119
123 QString checksum() const;
127 void setChecksum(QString newChecksum);
128 bool checksumNull() const;
129 void setChecksumNull();
130
134 QString timestamp() const;
138 void setTimestamp(QString newTimestamp);
139 bool timestampNull() const;
140 void setTimestampNull();
141
145 QString repositoryName() const;
149 void setRepositoryName(QString newRepositoryName);
150
154 QString repositoryUrl() const;
158 void setRepositoryUrl(QString newRepositoryUrl);
159
160
161protected:
162 QString m_version;
164 QString m_changelog;
165 QString m_targetAbi;
166 QString m_sourceUrl;
167 QString m_checksum;
168 QString m_timestamp;
171
172private:
173 // Private constructor which generates an invalid object, for use withing VersionInfo::fromJson();
174 VersionInfo();
175};
176
177
178} // NS DTO
179
180namespace Support {
181
183
184template <>
185VersionInfo fromJsonValue(const QJsonValue &source, convertType<VersionInfo>);
186
187template<>
188QJsonValue toJsonValue(const VersionInfo &source, convertType<VersionInfo>);
189
190} // NS DTO
191} // NS Jellyfin
192
193#endif // JELLYFIN_DTO_VERSIONINFO_H
An Api client for Jellyfin. Handles requests and authentication.
Definition apiclient.h:90
Definition versioninfo.h:48
QString versionNumber() const
Gets the version as a System.Version.
Definition versioninfo.cpp:135
QString m_targetAbi
Definition versioninfo.h:165
QString targetAbi() const
Gets or sets the ABI that this version was built against.
Definition versioninfo.cpp:154
QString m_repositoryUrl
Definition versioninfo.h:170
bool sourceUrlNull() const
Definition versioninfo.cpp:172
void setVersion(QString newVersion)
Gets or sets the version.
Definition versioninfo.cpp:131
void setFromJson(QJsonObject source)
Definition versioninfo.cpp:81
QString checksum() const
Gets or sets a checksum for the binary.
Definition versioninfo.cpp:180
void setChangelogNull()
Definition versioninfo.cpp:150
bool checksumNull() const
Definition versioninfo.cpp:185
void setChecksum(QString newChecksum)
Gets or sets a checksum for the binary.
Definition versioninfo.cpp:182
QString m_version
Definition versioninfo.h:162
void setSourceUrlNull()
Definition versioninfo.cpp:176
void setSourceUrl(QString newSourceUrl)
Gets or sets the source URL.
Definition versioninfo.cpp:169
void setTargetAbi(QString newTargetAbi)
Gets or sets the ABI that this version was built against.
Definition versioninfo.cpp:156
void setTargetAbiNull()
Definition versioninfo.cpp:163
void setTimestamp(QString newTimestamp)
Gets or sets a timestamp of when the binary was built.
Definition versioninfo.cpp:195
void setChecksumNull()
Definition versioninfo.cpp:189
void setTimestampNull()
Definition versioninfo.cpp:202
void replaceData(VersionInfo &other)
Definition versioninfo.cpp:62
QString m_checksum
Definition versioninfo.h:167
QJsonObject toJson() const
Definition versioninfo.cpp:94
QString repositoryUrl() const
Gets or sets the repository url.
Definition versioninfo.cpp:212
QString changelog() const
Gets or sets the changelog for this version.
Definition versioninfo.cpp:141
void setVersionNumber(QString newVersionNumber)
Gets the version as a System.Version.
Definition versioninfo.cpp:137
QString version() const
Gets or sets the version.
Definition versioninfo.cpp:129
static VersionInfo fromJson(QJsonObject source)
Definition versioninfo.cpp:74
void setRepositoryUrl(QString newRepositoryUrl)
Gets or sets the repository url.
Definition versioninfo.cpp:214
QString m_changelog
Definition versioninfo.h:164
QString repositoryName() const
Gets or sets the repository name.
Definition versioninfo.cpp:206
QString sourceUrl() const
Gets or sets the source URL.
Definition versioninfo.cpp:167
bool changelogNull() const
Definition versioninfo.cpp:146
QString m_timestamp
Definition versioninfo.h:168
void setRepositoryName(QString newRepositoryName)
Gets or sets the repository name.
Definition versioninfo.cpp:208
bool targetAbiNull() const
Definition versioninfo.cpp:159
QString m_repositoryName
Definition versioninfo.h:169
QString timestamp() const
Gets or sets a timestamp of when the binary was built.
Definition versioninfo.cpp:193
QString m_versionNumber
Definition versioninfo.h:163
bool timestampNull() const
Definition versioninfo.cpp:198
QString m_sourceUrl
Definition versioninfo.h:166
void setChangelog(QString newChangelog)
Gets or sets the changelog for this version.
Definition versioninfo.cpp:143
VersionInfo(QString version, QString versionNumber, QString repositoryName, QString repositoryUrl)
Definition versioninfo.cpp:36
Contains auto-generated Data Transfer Objects for the Jellyfin HTTP API.
Definition accessschedule.h:128
Jellyfin::DTO::VersionInfo VersionInfo
Definition versioninfo.h:182
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