Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
packageinfo.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_PACKAGEINFO_H
31#define JELLYFIN_DTO_PACKAGEINFO_H
32
33#include <QJsonObject>
34#include <QJsonValue>
35#include <QList>
36#include <QString>
37#include <QStringList>
38#include <optional>
39
42
43namespace Jellyfin {
44// Forward declaration
45class ApiClient;
46}
47namespace Jellyfin {
48namespace DTO {
49
50
52public: PackageInfo();
53 PackageInfo(const PackageInfo &other);
54
58 void replaceData(PackageInfo &other);
59
60 static PackageInfo fromJson(QJsonObject source);
61 void setFromJson(QJsonObject source);
62 QJsonObject toJson() const;
63
64 // Properties
68 QString name() const;
72 void setName(QString newName);
73 bool nameNull() const;
74 void setNameNull();
75
79 QString description() const;
83 void setDescription(QString newDescription);
84 bool descriptionNull() const;
85 void setDescriptionNull();
86
90 QString overview() const;
94 void setOverview(QString newOverview);
95 bool overviewNull() const;
96 void setOverviewNull();
97
101 QString owner() const;
105 void setOwner(QString newOwner);
106 bool ownerNull() const;
107 void setOwnerNull();
108
112 QString category() const;
116 void setCategory(QString newCategory);
117 bool categoryNull() const;
118 void setCategoryNull();
119
124 QString guid() const;
129 void setGuid(QString newGuid);
130 bool guidNull() const;
131 void setGuidNull();
132
140 void setVersions(QList<VersionInfo> newVersions);
141 bool versionsNull() const;
142 void setVersionsNull();
143
147 QString imageUrl() const;
151 void setImageUrl(QString newImageUrl);
152 bool imageUrlNull() const;
153 void setImageUrlNull();
154
155
156protected:
157 QString m_name;
159 QString m_overview;
160 QString m_owner;
161 QString m_category;
162 QString m_guid;
164 QString m_imageUrl;
165
166
167};
168
169
170} // NS DTO
171
172namespace Support {
173
175
176template <>
177PackageInfo fromJsonValue(const QJsonValue &source, convertType<PackageInfo>);
178
179template<>
180QJsonValue toJsonValue(const PackageInfo &source, convertType<PackageInfo>);
181
182} // NS DTO
183} // NS Jellyfin
184
185#endif // JELLYFIN_DTO_PACKAGEINFO_H
Definition packageinfo.h:51
void setCategoryNull()
Definition packageinfo.cpp:186
QString m_description
Definition packageinfo.h:158
void setGuid(QString newGuid)
Definition packageinfo.cpp:192
PackageInfo()
Definition packageinfo.cpp:35
QString m_overview
Definition packageinfo.h:159
bool nameNull() const
Definition packageinfo.cpp:130
static PackageInfo fromJson(QJsonObject source)
Definition packageinfo.cpp:60
void setCategory(QString newCategory)
Gets or sets the category.
Definition packageinfo.cpp:179
void setFromJson(QJsonObject source)
Definition packageinfo.cpp:67
void setVersions(QList< VersionInfo > newVersions)
Gets or sets the versions.
Definition packageinfo.cpp:205
void setDescriptionNull()
Definition packageinfo.cpp:147
void setOwner(QString newOwner)
Gets or sets the owner.
Definition packageinfo.cpp:166
QList< VersionInfo > versions() const
Gets or sets the versions.
Definition packageinfo.cpp:203
QString guid() const
Definition packageinfo.cpp:190
bool categoryNull() const
Definition packageinfo.cpp:182
bool guidNull() const
Definition packageinfo.cpp:195
QString m_owner
Definition packageinfo.h:160
void setOwnerNull()
Definition packageinfo.cpp:173
void setDescription(QString newDescription)
Gets or sets a long description of the plugin containing features or helpful explanations.
Definition packageinfo.cpp:140
QString m_imageUrl
Definition packageinfo.h:164
void setOverview(QString newOverview)
Gets or sets a short overview of what the plugin does.
Definition packageinfo.cpp:153
QString m_guid
Definition packageinfo.h:162
QString m_name
Definition packageinfo.h:157
QJsonObject toJson() const
Definition packageinfo.cpp:79
QList< VersionInfo > m_versions
Definition packageinfo.h:163
void setImageUrl(QString newImageUrl)
Gets or sets the image url for the package.
Definition packageinfo.cpp:218
QString overview() const
Gets or sets a short overview of what the plugin does.
Definition packageinfo.cpp:151
void setOverviewNull()
Definition packageinfo.cpp:160
bool versionsNull() const
Definition packageinfo.cpp:208
void setNameNull()
Definition packageinfo.cpp:134
QString category() const
Gets or sets the category.
Definition packageinfo.cpp:177
QString name() const
Gets or sets the name.
Definition packageinfo.cpp:125
bool descriptionNull() const
Definition packageinfo.cpp:143
QString imageUrl() const
Gets or sets the image url for the package.
Definition packageinfo.cpp:216
void setGuidNull()
Definition packageinfo.cpp:199
bool overviewNull() const
Definition packageinfo.cpp:156
void setImageUrlNull()
Definition packageinfo.cpp:225
QString m_category
Definition packageinfo.h:161
void setVersionsNull()
Definition packageinfo.cpp:212
bool imageUrlNull() const
Definition packageinfo.cpp:221
bool ownerNull() const
Definition packageinfo.cpp:169
QString description() const
Gets or sets a long description of the plugin containing features or helpful explanations.
Definition packageinfo.cpp:138
void setName(QString newName)
Gets or sets the name.
Definition packageinfo.cpp:127
QString owner() const
Gets or sets the owner.
Definition packageinfo.cpp:164
void replaceData(PackageInfo &other)
Definition packageinfo.cpp:49
Definition mediaplayer2.h:20
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