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:
60 );
61
63
68
69 static LibraryTypeOptionsDto fromJson(QJsonObject source);
70 void setFromJson(QJsonObject source);
71 QJsonObject toJson() const;
72
73 // Properties
77 QString type() const;
81 void setType(QString newType);
82 bool typeNull() const;
83 void setTypeNull();
84
92 void setMetadataFetchers(QList<LibraryOptionInfoDto> newMetadataFetchers);
93
101 void setImageFetchers(QList<LibraryOptionInfoDto> newImageFetchers);
102
110 void setSupportedImageTypes(QList<ImageType> newSupportedImageTypes);
111
119 void setDefaultImageOptions(QList<ImageOption> newDefaultImageOptions);
120
121
122protected:
123 QString m_type;
128
129private:
130 // Private constructor which generates an invalid object, for use withing LibraryTypeOptionsDto::fromJson();
132};
133
134
135} // NS DTO
136
137namespace Support {
138
140
141template <>
143
144template<>
146
147} // NS DTO
148} // NS Jellyfin
149
150#endif // JELLYFIN_DTO_LIBRARYTYPEOPTIONSDTO_H
An Api client for Jellyfin. Handles requests and authentication.
Definition apiclient.h:90
Definition librarytypeoptionsdto.h:53
void setSupportedImageTypes(QList< ImageType > newSupportedImageTypes)
Gets or sets the supported image types.
Definition librarytypeoptionsdto.cpp:124
void setTypeNull()
Definition librarytypeoptionsdto.cpp:106
QString m_type
Definition librarytypeoptionsdto.h:123
void replaceData(LibraryTypeOptionsDto &other)
Definition librarytypeoptionsdto.cpp:58
QList< ImageOption > defaultImageOptions() const
Gets or sets the default image options.
Definition librarytypeoptionsdto.cpp:128
QList< ImageType > supportedImageTypes() const
Gets or sets the supported image types.
Definition librarytypeoptionsdto.cpp:122
QString type() const
Gets or sets the type.
Definition librarytypeoptionsdto.cpp:97
QJsonObject toJson() const
Definition librarytypeoptionsdto.cpp:82
QList< ImageType > m_supportedImageTypes
Definition librarytypeoptionsdto.h:126
QList< LibraryOptionInfoDto > metadataFetchers() const
Gets or sets the metadata fetchers.
Definition librarytypeoptionsdto.cpp:110
void setMetadataFetchers(QList< LibraryOptionInfoDto > newMetadataFetchers)
Gets or sets the metadata fetchers.
Definition librarytypeoptionsdto.cpp:112
QList< LibraryOptionInfoDto > imageFetchers() const
Gets or sets the image fetchers.
Definition librarytypeoptionsdto.cpp:116
QList< LibraryOptionInfoDto > m_imageFetchers
Definition librarytypeoptionsdto.h:125
void setImageFetchers(QList< LibraryOptionInfoDto > newImageFetchers)
Gets or sets the image fetchers.
Definition librarytypeoptionsdto.cpp:118
void setType(QString newType)
Gets or sets the type.
Definition librarytypeoptionsdto.cpp:99
void setDefaultImageOptions(QList< ImageOption > newDefaultImageOptions)
Gets or sets the default image options.
Definition librarytypeoptionsdto.cpp:130
LibraryTypeOptionsDto(QList< LibraryOptionInfoDto > metadataFetchers, QList< LibraryOptionInfoDto > imageFetchers, QList< ImageType > supportedImageTypes, QList< ImageOption > defaultImageOptions)
Definition librarytypeoptionsdto.cpp:36
bool typeNull() const
Definition librarytypeoptionsdto.cpp:102
QList< LibraryOptionInfoDto > m_metadataFetchers
Definition librarytypeoptionsdto.h:124
QList< ImageOption > m_defaultImageOptions
Definition librarytypeoptionsdto.h:127
void setFromJson(QJsonObject source)
Definition librarytypeoptionsdto.cpp:73
static LibraryTypeOptionsDto fromJson(QJsonObject source)
Definition librarytypeoptionsdto.cpp:66
Definition mediaplayer2.h:20
Contains auto-generated Data Transfer Objects for the Jellyfin HTTP API.
Definition accessschedule.h:128
Jellyfin::DTO::LibraryTypeOptionsDto LibraryTypeOptionsDto
Definition librarytypeoptionsdto.h:139
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