Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
remotesearchresult.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_REMOTESEARCHRESULT_H
31#define JELLYFIN_DTO_REMOTESEARCHRESULT_H
32
33#include <QDateTime>
34#include <QJsonObject>
35#include <QJsonValue>
36#include <QList>
37#include <QSharedPointer>
38#include <QString>
39#include <QStringList>
40#include <optional>
41
43
44namespace Jellyfin {
45// Forward declaration
46class ApiClient;
47}
48namespace Jellyfin {
49namespace DTO {
50
51
53public:
55 QSharedPointer<RemoteSearchResult> albumArtist
56 );
57
59
64
65 static RemoteSearchResult fromJson(QJsonObject source);
66 void setFromJson(QJsonObject source);
67 QJsonObject toJson() const;
68
69 // Properties
73 QString name() const;
77 void setName(QString newName);
78 bool nameNull() const;
79 void setNameNull();
80
84 QJsonObject providerIds() const;
88 void setProviderIds(QJsonObject newProviderIds);
89 bool providerIdsNull() const;
90 void setProviderIdsNull();
91
95 std::optional<qint32> productionYear() const;
99 void setProductionYear(std::optional<qint32> newProductionYear);
100 bool productionYearNull() const;
102
103
104 std::optional<qint32> indexNumber() const;
105
106 void setIndexNumber(std::optional<qint32> newIndexNumber);
107 bool indexNumberNull() const;
108 void setIndexNumberNull();
109
110
111 std::optional<qint32> indexNumberEnd() const;
112
113 void setIndexNumberEnd(std::optional<qint32> newIndexNumberEnd);
114 bool indexNumberEndNull() const;
116
117
118 std::optional<qint32> parentIndexNumber() const;
119
120 void setParentIndexNumber(std::optional<qint32> newParentIndexNumber);
121 bool parentIndexNumberNull() const;
123
124
125 QDateTime premiereDate() const;
126
127 void setPremiereDate(QDateTime newPremiereDate);
128 bool premiereDateNull() const;
129 void setPremiereDateNull();
130
131
132 QString imageUrl() const;
133
134 void setImageUrl(QString newImageUrl);
135 bool imageUrlNull() const;
136 void setImageUrlNull();
137
138
139 QString searchProviderName() const;
140
141 void setSearchProviderName(QString newSearchProviderName);
142 bool searchProviderNameNull() const;
144
145
146 QString overview() const;
147
148 void setOverview(QString newOverview);
149 bool overviewNull() const;
150 void setOverviewNull();
151
152
153 QSharedPointer<RemoteSearchResult> albumArtist() const;
154
155 void setAlbumArtist(QSharedPointer<RemoteSearchResult> newAlbumArtist);
156
157
159
160 void setArtists(QList<RemoteSearchResult> newArtists);
161 bool artistsNull() const;
162 void setArtistsNull();
163
164
165protected:
166 QString m_name;
167 QJsonObject m_providerIds;
168 std::optional<qint32> m_productionYear = std::nullopt;
169 std::optional<qint32> m_indexNumber = std::nullopt;
170 std::optional<qint32> m_indexNumberEnd = std::nullopt;
171 std::optional<qint32> m_parentIndexNumber = std::nullopt;
172 QDateTime m_premiereDate;
173 QString m_imageUrl;
175 QString m_overview;
176 QSharedPointer<RemoteSearchResult> m_albumArtist = QSharedPointer<RemoteSearchResult>();
178
179private:
180 // Private constructor which generates an invalid object, for use withing RemoteSearchResult::fromJson();
182};
183
184
185} // NS DTO
186
187namespace Support {
188
190
191template <>
193
194template<>
196
197} // NS DTO
198} // NS Jellyfin
199
200#endif // JELLYFIN_DTO_REMOTESEARCHRESULT_H
Definition remotesearchresult.h:52
bool premiereDateNull() const
Definition remotesearchresult.cpp:242
void setImageUrlNull()
Definition remotesearchresult.cpp:259
std::optional< qint32 > parentIndexNumber() const
Definition remotesearchresult.cpp:224
bool searchProviderNameNull() const
Definition remotesearchresult.cpp:268
void setIndexNumberNull()
Definition remotesearchresult.cpp:207
QString m_imageUrl
Definition remotesearchresult.h:173
void setImageUrl(QString newImageUrl)
Definition remotesearchresult.cpp:252
void setIndexNumberEnd(std::optional< qint32 > newIndexNumberEnd)
Definition remotesearchresult.cpp:213
static RemoteSearchResult fromJson(QJsonObject source)
Definition remotesearchresult.cpp:74
bool imageUrlNull() const
Definition remotesearchresult.cpp:255
void setIndexNumberEndNull()
Definition remotesearchresult.cpp:220
void setProviderIds(QJsonObject newProviderIds)
Gets or sets the provider ids.
Definition remotesearchresult.cpp:174
bool productionYearNull() const
Definition remotesearchresult.cpp:190
void replaceData(RemoteSearchResult &other)
Definition remotesearchresult.cpp:59
QDateTime m_premiereDate
Definition remotesearchresult.h:172
bool artistsNull() const
Definition remotesearchresult.cpp:300
std::optional< qint32 > m_parentIndexNumber
Definition remotesearchresult.h:171
std::optional< qint32 > m_indexNumberEnd
Definition remotesearchresult.h:170
bool parentIndexNumberNull() const
Definition remotesearchresult.cpp:229
bool indexNumberEndNull() const
Definition remotesearchresult.cpp:216
bool nameNull() const
Definition remotesearchresult.cpp:164
QString m_name
Definition remotesearchresult.h:166
QJsonObject providerIds() const
Gets or sets the provider ids.
Definition remotesearchresult.cpp:172
QDateTime premiereDate() const
Definition remotesearchresult.cpp:237
void setParentIndexNumber(std::optional< qint32 > newParentIndexNumber)
Definition remotesearchresult.cpp:226
void setProductionYear(std::optional< qint32 > newProductionYear)
Gets or sets the year.
Definition remotesearchresult.cpp:187
void setIndexNumber(std::optional< qint32 > newIndexNumber)
Definition remotesearchresult.cpp:200
void setArtists(QList< RemoteSearchResult > newArtists)
Definition remotesearchresult.cpp:297
std::optional< qint32 > indexNumberEnd() const
Definition remotesearchresult.cpp:211
QString m_searchProviderName
Definition remotesearchresult.h:174
void setPremiereDate(QDateTime newPremiereDate)
Definition remotesearchresult.cpp:239
void setSearchProviderNameNull()
Definition remotesearchresult.cpp:272
QString name() const
Gets or sets the name.
Definition remotesearchresult.cpp:159
void setAlbumArtist(QSharedPointer< RemoteSearchResult > newAlbumArtist)
Definition remotesearchresult.cpp:291
QString m_overview
Definition remotesearchresult.h:175
void setOverviewNull()
Definition remotesearchresult.cpp:285
bool overviewNull() const
Definition remotesearchresult.cpp:281
void setProductionYearNull()
Definition remotesearchresult.cpp:194
QString imageUrl() const
Definition remotesearchresult.cpp:250
QJsonObject m_providerIds
Definition remotesearchresult.h:167
std::optional< qint32 > productionYear() const
Gets or sets the year.
Definition remotesearchresult.cpp:185
QSharedPointer< RemoteSearchResult > albumArtist() const
Definition remotesearchresult.cpp:289
QList< RemoteSearchResult > m_artists
Definition remotesearchresult.h:177
void setName(QString newName)
Gets or sets the name.
Definition remotesearchresult.cpp:161
QString overview() const
Definition remotesearchresult.cpp:276
void setSearchProviderName(QString newSearchProviderName)
Definition remotesearchresult.cpp:265
std::optional< qint32 > indexNumber() const
Definition remotesearchresult.cpp:198
QList< RemoteSearchResult > artists() const
Definition remotesearchresult.cpp:295
std::optional< qint32 > m_productionYear
Definition remotesearchresult.h:168
QJsonObject toJson() const
Definition remotesearchresult.cpp:97
QString searchProviderName() const
Definition remotesearchresult.cpp:263
std::optional< qint32 > m_indexNumber
Definition remotesearchresult.h:169
QSharedPointer< RemoteSearchResult > m_albumArtist
Definition remotesearchresult.h:176
bool indexNumberNull() const
Definition remotesearchresult.cpp:203
void setOverview(QString newOverview)
Definition remotesearchresult.cpp:278
void setParentIndexNumberNull()
Definition remotesearchresult.cpp:233
void setArtistsNull()
Definition remotesearchresult.cpp:304
void setNameNull()
Definition remotesearchresult.cpp:168
bool providerIdsNull() const
Definition remotesearchresult.cpp:177
void setFromJson(QJsonObject source)
Definition remotesearchresult.cpp:81
void setProviderIdsNull()
Definition remotesearchresult.cpp:181
void setPremiereDateNull()
Definition remotesearchresult.cpp:246
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