Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
installationinfo.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_INSTALLATIONINFO_H
31#define JELLYFIN_DTO_INSTALLATIONINFO_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 QString guid,
54 QSharedPointer<PackageInfo> packageInfo
55 );
56
58
62 void replaceData(InstallationInfo &other);
63
64 static InstallationInfo fromJson(QJsonObject source);
65 void setFromJson(QJsonObject source);
66 QJsonObject toJson() const;
67
68 // Properties
72 QString guid() const;
76 void setGuid(QString newGuid);
77
81 QString name() const;
85 void setName(QString newName);
86 bool nameNull() const;
87 void setNameNull();
88
92 QString version() const;
96 void setVersion(QString newVersion);
97 bool versionNull() const;
98 void setVersionNull();
99
103 QString changelog() const;
107 void setChangelog(QString newChangelog);
108 bool changelogNull() const;
109 void setChangelogNull();
110
114 QString sourceUrl() const;
118 void setSourceUrl(QString newSourceUrl);
119 bool sourceUrlNull() const;
120 void setSourceUrlNull();
121
125 QString checksum() const;
129 void setChecksum(QString newChecksum);
130 bool checksumNull() const;
131 void setChecksumNull();
132
133
134 QSharedPointer<PackageInfo> packageInfo() const;
135
136 void setPackageInfo(QSharedPointer<PackageInfo> newPackageInfo);
137
138
139protected:
140 QString m_guid;
141 QString m_name;
142 QString m_version;
143 QString m_changelog;
144 QString m_sourceUrl;
145 QString m_checksum;
146 QSharedPointer<PackageInfo> m_packageInfo = QSharedPointer<PackageInfo>();
147
148private:
149 // Private constructor which generates an invalid object, for use withing InstallationInfo::fromJson();
151};
152
153
154} // NS DTO
155
156namespace Support {
157
159
160template <>
162
163template<>
165
166} // NS DTO
167} // NS Jellyfin
168
169#endif // JELLYFIN_DTO_INSTALLATIONINFO_H
An Api client for Jellyfin. Handles requests and authentication.
Definition apiclient.h:90
Definition installationinfo.h:50
QString guid() const
Gets or sets the Id.
Definition installationinfo.cpp:117
QString m_version
Definition installationinfo.h:142
void replaceData(InstallationInfo &other)
Definition installationinfo.cpp:56
void setName(QString newName)
Gets or sets the name.
Definition installationinfo.cpp:125
void setSourceUrlNull()
Definition installationinfo.cpp:171
void setVersion(QString newVersion)
Gets or sets the version.
Definition installationinfo.cpp:138
bool versionNull() const
Definition installationinfo.cpp:141
void setVersionNull()
Definition installationinfo.cpp:145
QString m_sourceUrl
Definition installationinfo.h:144
InstallationInfo(QString guid, QSharedPointer< PackageInfo > packageInfo)
Definition installationinfo.cpp:36
void setNameNull()
Definition installationinfo.cpp:132
QString m_changelog
Definition installationinfo.h:143
void setChecksumNull()
Definition installationinfo.cpp:184
QString checksum() const
Gets or sets a checksum for the binary.
Definition installationinfo.cpp:175
QString m_checksum
Definition installationinfo.h:145
QString version() const
Gets or sets the version.
Definition installationinfo.cpp:136
QString sourceUrl() const
Gets or sets the source URL.
Definition installationinfo.cpp:162
static InstallationInfo fromJson(QJsonObject source)
Definition installationinfo.cpp:66
void setGuid(QString newGuid)
Gets or sets the Id.
Definition installationinfo.cpp:119
bool changelogNull() const
Definition installationinfo.cpp:154
bool nameNull() const
Definition installationinfo.cpp:128
QSharedPointer< PackageInfo > packageInfo() const
Definition installationinfo.cpp:188
QString changelog() const
Gets or sets the changelog for this version.
Definition installationinfo.cpp:149
QSharedPointer< PackageInfo > m_packageInfo
Definition installationinfo.h:146
void setChangelogNull()
Definition installationinfo.cpp:158
void setChangelog(QString newChangelog)
Gets or sets the changelog for this version.
Definition installationinfo.cpp:151
void setSourceUrl(QString newSourceUrl)
Gets or sets the source URL.
Definition installationinfo.cpp:164
QString m_name
Definition installationinfo.h:141
QString m_guid
Definition installationinfo.h:140
bool sourceUrlNull() const
Definition installationinfo.cpp:167
bool checksumNull() const
Definition installationinfo.cpp:180
void setChecksum(QString newChecksum)
Gets or sets a checksum for the binary.
Definition installationinfo.cpp:177
void setPackageInfo(QSharedPointer< PackageInfo > newPackageInfo)
Definition installationinfo.cpp:190
QJsonObject toJson() const
Definition installationinfo.cpp:84
QString name() const
Gets or sets the name.
Definition installationinfo.cpp:123
void setFromJson(QJsonObject source)
Definition installationinfo.cpp:73
Contains auto-generated Data Transfer Objects for the Jellyfin HTTP API.
Definition accessschedule.h:128
AccessSchedule fromJsonValue(const QJsonValue &source, convertType< AccessSchedule >)
Definition accessschedule.cpp:133
Jellyfin::DTO::InstallationInfo InstallationInfo
Definition installationinfo.h:158
QJsonValue toJsonValue(const AccessSchedule &source, convertType< AccessSchedule >)
Definition accessschedule.cpp:139
Definition jsonconvimpl.h:45