Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
librarytypeoptionsdto.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_LIBRARYTYPEOPTIONSDTO_H
31#define JELLYFIN_DTO_LIBRARYTYPEOPTIONSDTO_H
32
33#include <QJsonObject>
34#include <QJsonValue>
35#include <QList>
36#include <QString>
37#include <QStringList>
38#include <optional>
39
44
45namespace Jellyfin {
46// Forward declaration
47class ApiClient;
48}
49namespace Jellyfin {
50namespace DTO {
51
52
54public: LibraryTypeOptionsDto();
56
61
62 static LibraryTypeOptionsDto fromJson(QJsonObject source);
63 void setFromJson(QJsonObject source);
64 QJsonObject toJson() const;
65
66 // Properties
70 QString type() const;
74 void setType(QString newType);
75 bool typeNull() const;
76 void setTypeNull();
77
85 void setMetadataFetchers(QList<LibraryOptionInfoDto> newMetadataFetchers);
86 bool metadataFetchersNull() const;
88
96 void setImageFetchers(QList<LibraryOptionInfoDto> newImageFetchers);
97 bool imageFetchersNull() const;
99
107 void setSupportedImageTypes(QList<ImageType> newSupportedImageTypes);
108 bool supportedImageTypesNull() const;
110
118 void setDefaultImageOptions(QList<ImageOption> newDefaultImageOptions);
119 bool defaultImageOptionsNull() const;
121
122
123protected:
124 QString m_type;
129
130
131};
132
133
134} // NS DTO
135
136namespace Support {
137
139
140template <>
142
143template<>
145
146} // NS DTO
147} // NS Jellyfin
148
149#endif // JELLYFIN_DTO_LIBRARYTYPEOPTIONSDTO_H
Definition librarytypeoptionsdto.h:53
void setSupportedImageTypes(QList< ImageType > newSupportedImageTypes)
Gets or sets the supported image types.
Definition librarytypeoptionsdto.cpp:142
void setImageFetchersNull()
Definition librarytypeoptionsdto.cpp:136
bool imageFetchersNull() const
Definition librarytypeoptionsdto.cpp:132
void setTypeNull()
Definition librarytypeoptionsdto.cpp:110
void setSupportedImageTypesNull()
Definition librarytypeoptionsdto.cpp:149
QString m_type
Definition librarytypeoptionsdto.h:124
void replaceData(LibraryTypeOptionsDto &other)
Definition librarytypeoptionsdto.cpp:46
QList< ImageOption > defaultImageOptions() const
Gets or sets the default image options.
Definition librarytypeoptionsdto.cpp:153
QList< ImageType > supportedImageTypes() const
Gets or sets the supported image types.
Definition librarytypeoptionsdto.cpp:140
QString type() const
Gets or sets the type.
Definition librarytypeoptionsdto.cpp:101
QJsonObject toJson() const
Definition librarytypeoptionsdto.cpp:70
QList< ImageType > m_supportedImageTypes
Definition librarytypeoptionsdto.h:127
void setDefaultImageOptionsNull()
Definition librarytypeoptionsdto.cpp:162
QList< LibraryOptionInfoDto > metadataFetchers() const
Gets or sets the metadata fetchers.
Definition librarytypeoptionsdto.cpp:114
void setMetadataFetchersNull()
Definition librarytypeoptionsdto.cpp:123
void setMetadataFetchers(QList< LibraryOptionInfoDto > newMetadataFetchers)
Gets or sets the metadata fetchers.
Definition librarytypeoptionsdto.cpp:116
QList< LibraryOptionInfoDto > imageFetchers() const
Gets or sets the image fetchers.
Definition librarytypeoptionsdto.cpp:127
QList< LibraryOptionInfoDto > m_imageFetchers
Definition librarytypeoptionsdto.h:126
void setImageFetchers(QList< LibraryOptionInfoDto > newImageFetchers)
Gets or sets the image fetchers.
Definition librarytypeoptionsdto.cpp:129
void setType(QString newType)
Gets or sets the type.
Definition librarytypeoptionsdto.cpp:103
bool supportedImageTypesNull() const
Definition librarytypeoptionsdto.cpp:145
void setDefaultImageOptions(QList< ImageOption > newDefaultImageOptions)
Gets or sets the default image options.
Definition librarytypeoptionsdto.cpp:155
LibraryTypeOptionsDto()
Definition librarytypeoptionsdto.cpp:35
bool typeNull() const
Definition librarytypeoptionsdto.cpp:106
QList< LibraryOptionInfoDto > m_metadataFetchers
Definition librarytypeoptionsdto.h:125
bool metadataFetchersNull() const
Definition librarytypeoptionsdto.cpp:119
QList< ImageOption > m_defaultImageOptions
Definition librarytypeoptionsdto.h:128
void setFromJson(QJsonObject source)
Definition librarytypeoptionsdto.cpp:61
static LibraryTypeOptionsDto fromJson(QJsonObject source)
Definition librarytypeoptionsdto.cpp:54
bool defaultImageOptionsNull() const
Definition librarytypeoptionsdto.cpp:158
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