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 <QStringList>
37#include <optional>
38
46
47namespace Jellyfin {
48// Forward declaration
49class ApiClient;
50}
51namespace Jellyfin {
52namespace DTO {
53
54
56public:
64 );
65
67
72
73 static MetadataEditorInfo fromJson(QJsonObject source);
74 void setFromJson(QJsonObject source);
75 QJsonObject toJson() const;
76
77 // Properties
78
80
81 void setParentalRatingOptions(QList<ParentalRating> newParentalRatingOptions);
82
83
85
86 void setCountries(QList<CountryInfo> newCountries);
87
88
90
91 void setCultures(QList<CultureDto> newCultures);
92
93
95
96 void setExternalIdInfos(QList<ExternalIdInfo> newExternalIdInfos);
97
98
100
101 void setContentType(CollectionType newContentType);
102
103
105
106 void setContentTypeOptions(QList<NameValuePair> newContentTypeOptions);
107
108
109protected:
116
117private:
118 // Private constructor which generates an invalid object, for use withing MetadataEditorInfo::fromJson();
120};
121
122
123} // NS DTO
124
125namespace Support {
126
128
129template <>
131
132template<>
134
135} // NS DTO
136} // NS Jellyfin
137
138#endif // JELLYFIN_DTO_METADATAEDITORINFO_H
An Api client for Jellyfin. Handles requests and authentication.
Definition apiclient.h:90
Definition metadataeditorinfo.h:55
QList< CountryInfo > m_countries
Definition metadataeditorinfo.h:111
MetadataEditorInfo(QList< ParentalRating > parentalRatingOptions, QList< CountryInfo > countries, QList< CultureDto > cultures, QList< ExternalIdInfo > externalIdInfos, CollectionType contentType, QList< NameValuePair > contentTypeOptions)
Definition metadataeditorinfo.cpp:36
void setCultures(QList< CultureDto > newCultures)
Definition metadataeditorinfo.cpp:115
void setContentTypeOptions(QList< NameValuePair > newContentTypeOptions)
Definition metadataeditorinfo.cpp:133
QList< CultureDto > m_cultures
Definition metadataeditorinfo.h:112
QList< ExternalIdInfo > m_externalIdInfos
Definition metadataeditorinfo.h:113
QList< CultureDto > cultures() const
Definition metadataeditorinfo.cpp:113
CollectionType m_contentType
Definition metadataeditorinfo.h:114
QList< ParentalRating > m_parentalRatingOptions
Definition metadataeditorinfo.h:110
void setFromJson(QJsonObject source)
Definition metadataeditorinfo.cpp:79
void replaceData(MetadataEditorInfo &other)
Definition metadataeditorinfo.cpp:63
QList< ExternalIdInfo > externalIdInfos() const
Definition metadataeditorinfo.cpp:119
CollectionType contentType() const
Definition metadataeditorinfo.cpp:125
void setExternalIdInfos(QList< ExternalIdInfo > newExternalIdInfos)
Definition metadataeditorinfo.cpp:121
void setCountries(QList< CountryInfo > newCountries)
Definition metadataeditorinfo.cpp:109
QList< ParentalRating > parentalRatingOptions() const
Definition metadataeditorinfo.cpp:101
static MetadataEditorInfo fromJson(QJsonObject source)
Definition metadataeditorinfo.cpp:72
QJsonObject toJson() const
Definition metadataeditorinfo.cpp:89
QList< NameValuePair > contentTypeOptions() const
Definition metadataeditorinfo.cpp:131
void setContentType(CollectionType newContentType)
Definition metadataeditorinfo.cpp:127
void setParentalRatingOptions(QList< ParentalRating > newParentalRatingOptions)
Definition metadataeditorinfo.cpp:103
QList< NameValuePair > m_contentTypeOptions
Definition metadataeditorinfo.h:115
QList< CountryInfo > countries() const
Definition metadataeditorinfo.cpp:107
Definition mediaplayer2.h:20
Contains auto-generated Data Transfer Objects for the Jellyfin HTTP API.
CollectionTypeClass::Value CollectionType
Definition collectiontype.h:70
Definition accessschedule.h:128
Jellyfin::DTO::MetadataEditorInfo MetadataEditorInfo
Definition metadataeditorinfo.h:127
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