Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
metadataeditorinfo.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_METADATAEDITORINFO_H
31#define JELLYFIN_DTO_METADATAEDITORINFO_H
32
33#include <QJsonObject>
34#include <QJsonValue>
35#include <QList>
36#include <QString>
37#include <QStringList>
38#include <optional>
39
46
47namespace Jellyfin {
48// Forward declaration
49class ApiClient;
50}
51namespace Jellyfin {
52namespace DTO {
53
54
56public: MetadataEditorInfo();
58
63
64 static MetadataEditorInfo fromJson(QJsonObject source);
65 void setFromJson(QJsonObject source);
66 QJsonObject toJson() const;
67
68 // Properties
69
71
72 void setParentalRatingOptions(QList<ParentalRating> newParentalRatingOptions);
73 bool parentalRatingOptionsNull() const;
75
76
78
79 void setCountries(QList<CountryInfo> newCountries);
80 bool countriesNull() const;
81 void setCountriesNull();
82
83
85
86 void setCultures(QList<CultureDto> newCultures);
87 bool culturesNull() const;
88 void setCulturesNull();
89
90
92
93 void setExternalIdInfos(QList<ExternalIdInfo> newExternalIdInfos);
94 bool externalIdInfosNull() const;
96
97
98 QString contentType() const;
99
100 void setContentType(QString newContentType);
101 bool contentTypeNull() const;
102 void setContentTypeNull();
103
104
106
107 void setContentTypeOptions(QList<NameValuePair> newContentTypeOptions);
108 bool contentTypeOptionsNull() const;
110
111
112protected:
119
120
121};
122
123
124} // NS DTO
125
126namespace Support {
127
129
130template <>
132
133template<>
135
136} // NS DTO
137} // NS Jellyfin
138
139#endif // JELLYFIN_DTO_METADATAEDITORINFO_H
Definition metadataeditorinfo.h:55
QList< CountryInfo > m_countries
Definition metadataeditorinfo.h:114
bool contentTypeOptionsNull() const
Definition metadataeditorinfo.cpp:179
QString contentType() const
Definition metadataeditorinfo.cpp:161
bool parentalRatingOptionsNull() const
Definition metadataeditorinfo.cpp:114
void setCulturesNull()
Definition metadataeditorinfo.cpp:144
void setCultures(QList< CultureDto > newCultures)
Definition metadataeditorinfo.cpp:137
void setContentTypeOptions(QList< NameValuePair > newContentTypeOptions)
Definition metadataeditorinfo.cpp:176
QList< CultureDto > m_cultures
Definition metadataeditorinfo.h:115
bool externalIdInfosNull() const
Definition metadataeditorinfo.cpp:153
void setExternalIdInfosNull()
Definition metadataeditorinfo.cpp:157
void setParentalRatingOptionsNull()
Definition metadataeditorinfo.cpp:118
QList< ExternalIdInfo > m_externalIdInfos
Definition metadataeditorinfo.h:116
QList< CultureDto > cultures() const
Definition metadataeditorinfo.cpp:135
void setContentTypeNull()
Definition metadataeditorinfo.cpp:170
QList< ParentalRating > m_parentalRatingOptions
Definition metadataeditorinfo.h:113
bool contentTypeNull() const
Definition metadataeditorinfo.cpp:166
void setFromJson(QJsonObject source)
Definition metadataeditorinfo.cpp:63
void replaceData(MetadataEditorInfo &other)
Definition metadataeditorinfo.cpp:47
void setContentType(QString newContentType)
Definition metadataeditorinfo.cpp:163
QList< ExternalIdInfo > externalIdInfos() const
Definition metadataeditorinfo.cpp:148
bool culturesNull() const
Definition metadataeditorinfo.cpp:140
void setExternalIdInfos(QList< ExternalIdInfo > newExternalIdInfos)
Definition metadataeditorinfo.cpp:150
void setCountries(QList< CountryInfo > newCountries)
Definition metadataeditorinfo.cpp:124
QList< ParentalRating > parentalRatingOptions() const
Definition metadataeditorinfo.cpp:109
MetadataEditorInfo()
Definition metadataeditorinfo.cpp:35
static MetadataEditorInfo fromJson(QJsonObject source)
Definition metadataeditorinfo.cpp:56
void setContentTypeOptionsNull()
Definition metadataeditorinfo.cpp:183
QJsonObject toJson() const
Definition metadataeditorinfo.cpp:73
QList< NameValuePair > contentTypeOptions() const
Definition metadataeditorinfo.cpp:174
void setCountriesNull()
Definition metadataeditorinfo.cpp:131
QString m_contentType
Definition metadataeditorinfo.h:117
void setParentalRatingOptions(QList< ParentalRating > newParentalRatingOptions)
Definition metadataeditorinfo.cpp:111
bool countriesNull() const
Definition metadataeditorinfo.cpp:127
QList< NameValuePair > m_contentTypeOptions
Definition metadataeditorinfo.h:118
QList< CountryInfo > countries() const
Definition metadataeditorinfo.cpp:122
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