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<Version> version
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
89
90 QSharedPointer<Version> version() const;
91
92 void setVersion(QSharedPointer<Version> newVersion);
93
97 QString changelog() const;
101 void setChangelog(QString newChangelog);
102 bool changelogNull() const;
103 void setChangelogNull();
104
108 QString sourceUrl() const;
112 void setSourceUrl(QString newSourceUrl);
113 bool sourceUrlNull() const;
114 void setSourceUrlNull();
115
119 QString checksum() const;
123 void setChecksum(QString newChecksum);
124 bool checksumNull() const;
125 void setChecksumNull();
126
127
128protected:
129 QString m_guid;
130 QString m_name;
131 QSharedPointer<Version> m_version = QSharedPointer<Version>();
132 QString m_changelog;
133 QString m_sourceUrl;
134 QString m_checksum;
135
136private:
137 // Private constructor which generates an invalid object, for use withing InstallationInfo::fromJson();
139};
140
141
142} // NS DTO
143
144namespace Support {
145
147
148template <>
150
151template<>
153
154} // NS DTO
155} // NS Jellyfin
156
157#endif // JELLYFIN_DTO_INSTALLATIONINFO_H
Definition installationinfo.h:50
QString guid() const
Gets or sets the Id.
Definition installationinfo.cpp:109
void replaceData(InstallationInfo &other)
Definition installationinfo.cpp:55
void setName(QString newName)
Gets or sets the name.
Definition installationinfo.cpp:117
void setSourceUrlNull()
Definition installationinfo.cpp:156
QString m_sourceUrl
Definition installationinfo.h:133
void setNameNull()
Definition installationinfo.cpp:124
QString m_changelog
Definition installationinfo.h:132
void setChecksumNull()
Definition installationinfo.cpp:169
QString checksum() const
Gets or sets a checksum for the binary.
Definition installationinfo.cpp:160
QString m_checksum
Definition installationinfo.h:134
QString sourceUrl() const
Gets or sets the source URL.
Definition installationinfo.cpp:147
static InstallationInfo fromJson(QJsonObject source)
Definition installationinfo.cpp:64
void setGuid(QString newGuid)
Gets or sets the Id.
Definition installationinfo.cpp:111
bool changelogNull() const
Definition installationinfo.cpp:139
QSharedPointer< Version > m_version
Definition installationinfo.h:131
bool nameNull() const
Definition installationinfo.cpp:120
QString changelog() const
Gets or sets the changelog for this version.
Definition installationinfo.cpp:134
void setChangelogNull()
Definition installationinfo.cpp:143
QSharedPointer< Version > version() const
Definition installationinfo.cpp:128
void setChangelog(QString newChangelog)
Gets or sets the changelog for this version.
Definition installationinfo.cpp:136
void setSourceUrl(QString newSourceUrl)
Gets or sets the source URL.
Definition installationinfo.cpp:149
QString m_name
Definition installationinfo.h:130
QString m_guid
Definition installationinfo.h:129
bool sourceUrlNull() const
Definition installationinfo.cpp:152
bool checksumNull() const
Definition installationinfo.cpp:165
void setChecksum(QString newChecksum)
Gets or sets a checksum for the binary.
Definition installationinfo.cpp:162
QJsonObject toJson() const
Definition installationinfo.cpp:81
void setVersion(QSharedPointer< Version > newVersion)
Definition installationinfo.cpp:130
QString name() const
Gets or sets the name.
Definition installationinfo.cpp:115
void setFromJson(QJsonObject source)
Definition installationinfo.cpp:71
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