Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 path() const;
87 void setPath(QString newPath);
88 bool pathNull() const;
89 void setPathNull();
90
94 QString metadataLanguage() const;
98 void setMetadataLanguage(QString newMetadataLanguage);
99 bool metadataLanguageNull() const;
101
105 QString metadataCountryCode() const;
109 void setMetadataCountryCode(QString newMetadataCountryCode);
110 bool metadataCountryCodeNull() const;
112
116 QJsonObject providerIds() const;
120 void setProviderIds(QJsonObject newProviderIds);
121 bool providerIdsNull() const;
122 void setProviderIdsNull();
123
127 std::optional<qint32> year() const;
131 void setYear(std::optional<qint32> newYear);
132 bool yearNull() const;
133 void setYearNull();
134
135
136 std::optional<qint32> indexNumber() const;
137
138 void setIndexNumber(std::optional<qint32> newIndexNumber);
139 bool indexNumberNull() const;
140 void setIndexNumberNull();
141
142
143 std::optional<qint32> parentIndexNumber() const;
144
145 void setParentIndexNumber(std::optional<qint32> newParentIndexNumber);
146 bool parentIndexNumberNull() const;
148
149
150 QDateTime premiereDate() const;
151
152 void setPremiereDate(QDateTime newPremiereDate);
153 bool premiereDateNull() const;
154 void setPremiereDateNull();
155
156
157 bool isAutomated() const;
158
159 void setIsAutomated(bool newIsAutomated);
160
161
162 QStringList artists() const;
163
164 void setArtists(QStringList newArtists);
165 bool artistsNull() const;
166 void setArtistsNull();
167
168
169protected:
170 QString m_name;
171 QString m_path;
174 QJsonObject m_providerIds;
175 std::optional<qint32> m_year = std::nullopt;
176 std::optional<qint32> m_indexNumber = std::nullopt;
177 std::optional<qint32> m_parentIndexNumber = std::nullopt;
178 QDateTime m_premiereDate;
180 QStringList m_artists;
181
182private:
183 // Private constructor which generates an invalid object, for use withing MusicVideoInfo::fromJson();
185};
186
187
188} // NS DTO
189
190namespace Support {
191
193
194template <>
196
197template<>
199
200} // NS DTO
201} // NS Jellyfin
202
203#endif // JELLYFIN_DTO_MUSICVIDEOINFO_H
Definition musicvideoinfo.h:51
bool nameNull() const
Definition musicvideoinfo.cpp:156
QString m_path
Definition musicvideoinfo.h:171
std::optional< qint32 > m_year
Definition musicvideoinfo.h:175
QJsonObject providerIds() const
Gets or sets the provider ids.
Definition musicvideoinfo.cpp:203
void setIndexNumberNull()
Definition musicvideoinfo.cpp:238
QString metadataLanguage() const
Gets or sets the metadata language.
Definition musicvideoinfo.cpp:177
void setIndexNumber(std::optional< qint32 > newIndexNumber)
Definition musicvideoinfo.cpp:231
bool yearNull() const
Definition musicvideoinfo.cpp:221
void setPremiereDateNull()
Definition musicvideoinfo.cpp:264
std::optional< qint32 > m_indexNumber
Definition musicvideoinfo.h:176
void setFromJson(QJsonObject source)
Definition musicvideoinfo.cpp:79
QJsonObject m_providerIds
Definition musicvideoinfo.h:174
void setIsAutomated(bool newIsAutomated)
Definition musicvideoinfo.cpp:270
QString metadataCountryCode() const
Gets or sets the metadata country code.
Definition musicvideoinfo.cpp:190
static MusicVideoInfo fromJson(QJsonObject source)
Definition musicvideoinfo.cpp:72
void setParentIndexNumberNull()
Definition musicvideoinfo.cpp:251
bool m_isAutomated
Definition musicvideoinfo.h:179
void setArtists(QStringList newArtists)
Definition musicvideoinfo.cpp:276
bool pathNull() const
Definition musicvideoinfo.cpp:169
bool metadataLanguageNull() const
Definition musicvideoinfo.cpp:182
void setName(QString newName)
Gets or sets the name.
Definition musicvideoinfo.cpp:153
void setNameNull()
Definition musicvideoinfo.cpp:160
bool premiereDateNull() const
Definition musicvideoinfo.cpp:260
void setPath(QString newPath)
Gets or sets the path.
Definition musicvideoinfo.cpp:166
QJsonObject toJson() const
Definition musicvideoinfo.cpp:94
std::optional< qint32 > indexNumber() const
Definition musicvideoinfo.cpp:229
QStringList m_artists
Definition musicvideoinfo.h:180
bool indexNumberNull() const
Definition musicvideoinfo.cpp:234
bool parentIndexNumberNull() const
Definition musicvideoinfo.cpp:247
bool providerIdsNull() const
Definition musicvideoinfo.cpp:208
QString m_name
Definition musicvideoinfo.h:170
void setYearNull()
Definition musicvideoinfo.cpp:225
void setYear(std::optional< qint32 > newYear)
Gets or sets the year.
Definition musicvideoinfo.cpp:218
QStringList artists() const
Definition musicvideoinfo.cpp:274
void setProviderIds(QJsonObject newProviderIds)
Gets or sets the provider ids.
Definition musicvideoinfo.cpp:205
void setProviderIdsNull()
Definition musicvideoinfo.cpp:212
void setPremiereDate(QDateTime newPremiereDate)
Definition musicvideoinfo.cpp:257
std::optional< qint32 > parentIndexNumber() const
Definition musicvideoinfo.cpp:242
void setMetadataLanguage(QString newMetadataLanguage)
Gets or sets the metadata language.
Definition musicvideoinfo.cpp:179
QString m_metadataLanguage
Definition musicvideoinfo.h:172
std::optional< qint32 > m_parentIndexNumber
Definition musicvideoinfo.h:177
QString name() const
Gets or sets the name.
Definition musicvideoinfo.cpp:151
bool isAutomated() const
Definition musicvideoinfo.cpp:268
void setPathNull()
Definition musicvideoinfo.cpp:173
bool artistsNull() const
Definition musicvideoinfo.cpp:279
void setMetadataCountryCode(QString newMetadataCountryCode)
Gets or sets the metadata country code.
Definition musicvideoinfo.cpp:192
QString path() const
Gets or sets the path.
Definition musicvideoinfo.cpp:164
void setArtistsNull()
Definition musicvideoinfo.cpp:283
void setMetadataLanguageNull()
Definition musicvideoinfo.cpp:186
void replaceData(MusicVideoInfo &other)
Definition musicvideoinfo.cpp:58
void setMetadataCountryCodeNull()
Definition musicvideoinfo.cpp:199
QDateTime m_premiereDate
Definition musicvideoinfo.h:178
void setParentIndexNumber(std::optional< qint32 > newParentIndexNumber)
Definition musicvideoinfo.cpp:244
QString m_metadataCountryCode
Definition musicvideoinfo.h:173
QDateTime premiereDate() const
Definition musicvideoinfo.cpp:255
bool metadataCountryCodeNull() const
Definition musicvideoinfo.cpp:195
std::optional< qint32 > year() const
Gets or sets the year.
Definition musicvideoinfo.cpp:216
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