Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
musicvideoinfo.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_MUSICVIDEOINFO_H
31#define JELLYFIN_DTO_MUSICVIDEOINFO_H
32
33#include <QDateTime>
34#include <QJsonObject>
35#include <QJsonValue>
36#include <QList>
37#include <QString>
38#include <QStringList>
39#include <optional>
40
42
43namespace Jellyfin {
44// Forward declaration
45class ApiClient;
46}
47namespace Jellyfin {
48namespace DTO {
49
50
52public:
54 bool isAutomated
55 );
56
57 MusicVideoInfo(const MusicVideoInfo &other);
58
62 void replaceData(MusicVideoInfo &other);
63
64 static MusicVideoInfo fromJson(QJsonObject source);
65 void setFromJson(QJsonObject source);
66 QJsonObject toJson() const;
67
68 // Properties
72 QString name() const;
76 void setName(QString newName);
77 bool nameNull() const;
78 void setNameNull();
79
83 QString originalTitle() const;
87 void setOriginalTitle(QString newOriginalTitle);
88 bool originalTitleNull() const;
90
94 QString path() const;
98 void setPath(QString newPath);
99 bool pathNull() const;
100 void setPathNull();
101
105 QString metadataLanguage() const;
109 void setMetadataLanguage(QString newMetadataLanguage);
110 bool metadataLanguageNull() const;
112
116 QString metadataCountryCode() const;
120 void setMetadataCountryCode(QString newMetadataCountryCode);
121 bool metadataCountryCodeNull() const;
123
127 QJsonObject providerIds() const;
131 void setProviderIds(QJsonObject newProviderIds);
132 bool providerIdsNull() const;
133 void setProviderIdsNull();
134
138 std::optional<qint32> year() const;
142 void setYear(std::optional<qint32> newYear);
143 bool yearNull() const;
144 void setYearNull();
145
146
147 std::optional<qint32> indexNumber() const;
148
149 void setIndexNumber(std::optional<qint32> newIndexNumber);
150 bool indexNumberNull() const;
151 void setIndexNumberNull();
152
153
154 std::optional<qint32> parentIndexNumber() const;
155
156 void setParentIndexNumber(std::optional<qint32> newParentIndexNumber);
157 bool parentIndexNumberNull() const;
159
160
161 QDateTime premiereDate() const;
162
163 void setPremiereDate(QDateTime newPremiereDate);
164 bool premiereDateNull() const;
165 void setPremiereDateNull();
166
167
168 bool isAutomated() const;
169
170 void setIsAutomated(bool newIsAutomated);
171
172
173 QStringList artists() const;
174
175 void setArtists(QStringList newArtists);
176 bool artistsNull() const;
177 void setArtistsNull();
178
179
180protected:
181 QString m_name;
183 QString m_path;
186 QJsonObject m_providerIds;
187 std::optional<qint32> m_year = std::nullopt;
188 std::optional<qint32> m_indexNumber = std::nullopt;
189 std::optional<qint32> m_parentIndexNumber = std::nullopt;
190 QDateTime m_premiereDate;
192 QStringList m_artists;
193
194private:
195 // Private constructor which generates an invalid object, for use withing MusicVideoInfo::fromJson();
197};
198
199
200} // NS DTO
201
202namespace Support {
203
205
206template <>
208
209template<>
211
212} // NS DTO
213} // NS Jellyfin
214
215#endif // JELLYFIN_DTO_MUSICVIDEOINFO_H
An Api client for Jellyfin. Handles requests and authentication.
Definition apiclient.h:90
Definition musicvideoinfo.h:51
bool nameNull() const
Definition musicvideoinfo.cpp:164
QString m_path
Definition musicvideoinfo.h:183
void setOriginalTitleNull()
Definition musicvideoinfo.cpp:181
std::optional< qint32 > m_year
Definition musicvideoinfo.h:187
QJsonObject providerIds() const
Gets or sets the provider ids.
Definition musicvideoinfo.cpp:224
QString originalTitle() const
Gets or sets the original title.
Definition musicvideoinfo.cpp:172
void setIndexNumberNull()
Definition musicvideoinfo.cpp:259
QString metadataLanguage() const
Gets or sets the metadata language.
Definition musicvideoinfo.cpp:198
void setIndexNumber(std::optional< qint32 > newIndexNumber)
Definition musicvideoinfo.cpp:252
bool yearNull() const
Definition musicvideoinfo.cpp:242
void setPremiereDateNull()
Definition musicvideoinfo.cpp:285
std::optional< qint32 > m_indexNumber
Definition musicvideoinfo.h:188
void setFromJson(QJsonObject source)
Definition musicvideoinfo.cpp:81
QJsonObject m_providerIds
Definition musicvideoinfo.h:186
void setIsAutomated(bool newIsAutomated)
Definition musicvideoinfo.cpp:291
QString metadataCountryCode() const
Gets or sets the metadata country code.
Definition musicvideoinfo.cpp:211
static MusicVideoInfo fromJson(QJsonObject source)
Definition musicvideoinfo.cpp:74
void setParentIndexNumberNull()
Definition musicvideoinfo.cpp:272
bool m_isAutomated
Definition musicvideoinfo.h:191
void setArtists(QStringList newArtists)
Definition musicvideoinfo.cpp:297
bool pathNull() const
Definition musicvideoinfo.cpp:190
bool metadataLanguageNull() const
Definition musicvideoinfo.cpp:203
void setName(QString newName)
Gets or sets the name.
Definition musicvideoinfo.cpp:161
void setNameNull()
Definition musicvideoinfo.cpp:168
bool premiereDateNull() const
Definition musicvideoinfo.cpp:281
void setPath(QString newPath)
Gets or sets the path.
Definition musicvideoinfo.cpp:187
QJsonObject toJson() const
Definition musicvideoinfo.cpp:97
bool originalTitleNull() const
Definition musicvideoinfo.cpp:177
std::optional< qint32 > indexNumber() const
Definition musicvideoinfo.cpp:250
QStringList m_artists
Definition musicvideoinfo.h:192
bool indexNumberNull() const
Definition musicvideoinfo.cpp:255
MusicVideoInfo(bool isAutomated)
Definition musicvideoinfo.cpp:36
bool parentIndexNumberNull() const
Definition musicvideoinfo.cpp:268
bool providerIdsNull() const
Definition musicvideoinfo.cpp:229
QString m_name
Definition musicvideoinfo.h:181
void setYearNull()
Definition musicvideoinfo.cpp:246
void setYear(std::optional< qint32 > newYear)
Gets or sets the year.
Definition musicvideoinfo.cpp:239
QStringList artists() const
Definition musicvideoinfo.cpp:295
void setProviderIds(QJsonObject newProviderIds)
Gets or sets the provider ids.
Definition musicvideoinfo.cpp:226
void setProviderIdsNull()
Definition musicvideoinfo.cpp:233
void setPremiereDate(QDateTime newPremiereDate)
Definition musicvideoinfo.cpp:278
std::optional< qint32 > parentIndexNumber() const
Definition musicvideoinfo.cpp:263
void setMetadataLanguage(QString newMetadataLanguage)
Gets or sets the metadata language.
Definition musicvideoinfo.cpp:200
QString m_metadataLanguage
Definition musicvideoinfo.h:184
std::optional< qint32 > m_parentIndexNumber
Definition musicvideoinfo.h:189
QString name() const
Gets or sets the name.
Definition musicvideoinfo.cpp:159
bool isAutomated() const
Definition musicvideoinfo.cpp:289
void setPathNull()
Definition musicvideoinfo.cpp:194
bool artistsNull() const
Definition musicvideoinfo.cpp:300
void setMetadataCountryCode(QString newMetadataCountryCode)
Gets or sets the metadata country code.
Definition musicvideoinfo.cpp:213
void setOriginalTitle(QString newOriginalTitle)
Gets or sets the original title.
Definition musicvideoinfo.cpp:174
QString path() const
Gets or sets the path.
Definition musicvideoinfo.cpp:185
void setArtistsNull()
Definition musicvideoinfo.cpp:304
void setMetadataLanguageNull()
Definition musicvideoinfo.cpp:207
void replaceData(MusicVideoInfo &other)
Definition musicvideoinfo.cpp:59
void setMetadataCountryCodeNull()
Definition musicvideoinfo.cpp:220
QDateTime m_premiereDate
Definition musicvideoinfo.h:190
void setParentIndexNumber(std::optional< qint32 > newParentIndexNumber)
Definition musicvideoinfo.cpp:265
QString m_metadataCountryCode
Definition musicvideoinfo.h:185
QDateTime premiereDate() const
Definition musicvideoinfo.cpp:276
bool metadataCountryCodeNull() const
Definition musicvideoinfo.cpp:216
QString m_originalTitle
Definition musicvideoinfo.h:182
std::optional< qint32 > year() const
Gets or sets the year.
Definition musicvideoinfo.cpp:237
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::MusicVideoInfo MusicVideoInfo
Definition musicvideoinfo.h:204
QJsonValue toJsonValue(const AccessSchedule &source, convertType< AccessSchedule >)
Definition accessschedule.cpp:139
Definition jsonconvimpl.h:45