Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
typeoptions.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_TYPEOPTIONS_H
31#define JELLYFIN_DTO_TYPEOPTIONS_H
32
33#include <QJsonObject>
34#include <QJsonValue>
35#include <QList>
36#include <QString>
37#include <QStringList>
38#include <optional>
39
42
43namespace Jellyfin {
44// Forward declaration
45class ApiClient;
46}
47namespace Jellyfin {
48namespace DTO {
49
50
52public: TypeOptions();
53 TypeOptions(const TypeOptions &other);
54
58 void replaceData(TypeOptions &other);
59
60 static TypeOptions fromJson(QJsonObject source);
61 void setFromJson(QJsonObject source);
62 QJsonObject toJson() const;
63
64 // Properties
65
66 QString type() const;
67
68 void setType(QString newType);
69 bool typeNull() const;
70 void setTypeNull();
71
72
73 QStringList metadataFetchers() const;
74
75 void setMetadataFetchers(QStringList newMetadataFetchers);
76 bool metadataFetchersNull() const;
78
79
80 QStringList metadataFetcherOrder() const;
81
82 void setMetadataFetcherOrder(QStringList newMetadataFetcherOrder);
83 bool metadataFetcherOrderNull() const;
85
86
87 QStringList imageFetchers() const;
88
89 void setImageFetchers(QStringList newImageFetchers);
90 bool imageFetchersNull() const;
92
93
94 QStringList imageFetcherOrder() const;
95
96 void setImageFetcherOrder(QStringList newImageFetcherOrder);
97 bool imageFetcherOrderNull() const;
99
100
102
103 void setImageOptions(QList<ImageOption> newImageOptions);
104 bool imageOptionsNull() const;
105 void setImageOptionsNull();
106
107
108protected:
109 QString m_type;
112 QStringList m_imageFetchers;
115
116
117};
118
119
120} // NS DTO
121
122namespace Support {
123
125
126template <>
127TypeOptions fromJsonValue(const QJsonValue &source, convertType<TypeOptions>);
128
129template<>
130QJsonValue toJsonValue(const TypeOptions &source, convertType<TypeOptions>);
131
132} // NS DTO
133} // NS Jellyfin
134
135#endif // JELLYFIN_DTO_TYPEOPTIONS_H
Definition typeoptions.h:51
void setImageFetcherOrder(QStringList newImageFetcherOrder)
Definition typeoptions.cpp:163
bool metadataFetcherOrderNull() const
Definition typeoptions.cpp:140
void setImageFetchers(QStringList newImageFetchers)
Definition typeoptions.cpp:150
bool imageFetcherOrderNull() const
Definition typeoptions.cpp:166
QJsonObject toJson() const
Definition typeoptions.cpp:73
QList< ImageOption > m_imageOptions
Definition typeoptions.h:114
QStringList m_metadataFetcherOrder
Definition typeoptions.h:111
TypeOptions()
Definition typeoptions.cpp:35
QStringList m_metadataFetchers
Definition typeoptions.h:110
QStringList metadataFetcherOrder() const
Definition typeoptions.cpp:135
QStringList m_imageFetcherOrder
Definition typeoptions.h:113
void setImageOptionsNull()
Definition typeoptions.cpp:183
bool imageOptionsNull() const
Definition typeoptions.cpp:179
void setMetadataFetchers(QStringList newMetadataFetchers)
Definition typeoptions.cpp:124
void setFromJson(QJsonObject source)
Definition typeoptions.cpp:63
void setImageOptions(QList< ImageOption > newImageOptions)
Definition typeoptions.cpp:176
bool typeNull() const
Definition typeoptions.cpp:114
static TypeOptions fromJson(QJsonObject source)
Definition typeoptions.cpp:56
void setMetadataFetchersNull()
Definition typeoptions.cpp:131
void setImageFetchersNull()
Definition typeoptions.cpp:157
void setImageFetcherOrderNull()
Definition typeoptions.cpp:170
QString type() const
Definition typeoptions.cpp:109
QStringList metadataFetchers() const
Definition typeoptions.cpp:122
QStringList imageFetcherOrder() const
Definition typeoptions.cpp:161
QStringList imageFetchers() const
Definition typeoptions.cpp:148
void replaceData(TypeOptions &other)
Definition typeoptions.cpp:47
void setType(QString newType)
Definition typeoptions.cpp:111
QStringList m_imageFetchers
Definition typeoptions.h:112
bool imageFetchersNull() const
Definition typeoptions.cpp:153
QList< ImageOption > imageOptions() const
Definition typeoptions.cpp:174
void setTypeNull()
Definition typeoptions.cpp:118
QString m_type
Definition typeoptions.h:109
bool metadataFetchersNull() const
Definition typeoptions.cpp:127
void setMetadataFetcherOrderNull()
Definition typeoptions.cpp:144
void setMetadataFetcherOrder(QStringList newMetadataFetcherOrder)
Definition typeoptions.cpp:137
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