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:
54 QString name,
55 QString description,
56 QString overview,
57 QString owner,
58 QString category,
59 QString guid,
61 );
62
63 PackageInfo(const PackageInfo &other);
64
68 void replaceData(PackageInfo &other);
69
70 static PackageInfo fromJson(QJsonObject source);
71 void setFromJson(QJsonObject source);
72 QJsonObject toJson() const;
73
74 // Properties
78 QString name() const;
82 void setName(QString newName);
83
87 QString description() const;
91 void setDescription(QString newDescription);
92
96 QString overview() const;
100 void setOverview(QString newOverview);
101
105 QString owner() const;
109 void setOwner(QString newOwner);
110
114 QString category() const;
118 void setCategory(QString newCategory);
119
124 QString guid() const;
129 void setGuid(QString newGuid);
130
138 void setVersions(QList<VersionInfo> newVersions);
139
143 QString imageUrl() const;
147 void setImageUrl(QString newImageUrl);
148 bool imageUrlNull() const;
149 void setImageUrlNull();
150
151
152protected:
153 QString m_name;
155 QString m_overview;
156 QString m_owner;
157 QString m_category;
158 QString m_guid;
160 QString m_imageUrl;
161
162private:
163 // Private constructor which generates an invalid object, for use withing PackageInfo::fromJson();
164 PackageInfo();
165};
166
167
168} // NS DTO
169
170namespace Support {
171
173
174template <>
175PackageInfo fromJsonValue(const QJsonValue &source, convertType<PackageInfo>);
176
177template<>
178QJsonValue toJsonValue(const PackageInfo &source, convertType<PackageInfo>);
179
180} // NS DTO
181} // NS Jellyfin
182
183#endif // JELLYFIN_DTO_PACKAGEINFO_H
An Api client for Jellyfin. Handles requests and authentication.
Definition apiclient.h:90
Definition packageinfo.h:51
QString m_description
Definition packageinfo.h:154
void setGuid(QString newGuid)
Definition packageinfo.cpp:147
QString m_overview
Definition packageinfo.h:155
static PackageInfo fromJson(QJsonObject source)
Definition packageinfo.cpp:78
void setCategory(QString newCategory)
Gets or sets the category.
Definition packageinfo.cpp:141
void setFromJson(QJsonObject source)
Definition packageinfo.cpp:85
void setVersions(QList< VersionInfo > newVersions)
Gets or sets the versions.
Definition packageinfo.cpp:153
void setOwner(QString newOwner)
Gets or sets the owner.
Definition packageinfo.cpp:135
QList< VersionInfo > versions() const
Gets or sets the versions.
Definition packageinfo.cpp:151
QString guid() const
Definition packageinfo.cpp:145
QString m_owner
Definition packageinfo.h:156
void setDescription(QString newDescription)
Gets or sets a long description of the plugin containing features or helpful explanations.
Definition packageinfo.cpp:123
QString m_imageUrl
Definition packageinfo.h:160
void setOverview(QString newOverview)
Gets or sets a short overview of what the plugin does.
Definition packageinfo.cpp:129
QString m_guid
Definition packageinfo.h:158
QString m_name
Definition packageinfo.h:153
PackageInfo(QString name, QString description, QString overview, QString owner, QString category, QString guid, QList< VersionInfo > versions)
Definition packageinfo.cpp:36
QJsonObject toJson() const
Definition packageinfo.cpp:97
QList< VersionInfo > m_versions
Definition packageinfo.h:159
void setImageUrl(QString newImageUrl)
Gets or sets the image url for the package.
Definition packageinfo.cpp:159
QString overview() const
Gets or sets a short overview of what the plugin does.
Definition packageinfo.cpp:127
QString category() const
Gets or sets the category.
Definition packageinfo.cpp:139
QString name() const
Gets or sets the name.
Definition packageinfo.cpp:115
QString imageUrl() const
Gets or sets the image url for the package.
Definition packageinfo.cpp:157
void setImageUrlNull()
Definition packageinfo.cpp:166
QString m_category
Definition packageinfo.h:157
bool imageUrlNull() const
Definition packageinfo.cpp:162
QString description() const
Gets or sets a long description of the plugin containing features or helpful explanations.
Definition packageinfo.cpp:121
void setName(QString newName)
Gets or sets the name.
Definition packageinfo.cpp:117
QString owner() const
Gets or sets the owner.
Definition packageinfo.cpp:133
void replaceData(PackageInfo &other)
Definition packageinfo.cpp:67
Definition mediaplayer2.h:20
Contains auto-generated Data Transfer Objects for the Jellyfin HTTP API.
Definition accessschedule.h:128
Jellyfin::DTO::PackageInfo PackageInfo
Definition packageinfo.h:172
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