Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
channelfeatures.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_CHANNELFEATURES_H
31#define JELLYFIN_DTO_CHANNELFEATURES_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:
56 bool canSearch,
59 bool canFilter,
61 );
62
63 ChannelFeatures(const ChannelFeatures &other);
64
68 void replaceData(ChannelFeatures &other);
69
70 static ChannelFeatures fromJson(QJsonObject source);
71 void setFromJson(QJsonObject source);
72 QJsonObject toJson() const;
73
74 // Properties
78 QString name() const;
82 void setName(QString newName);
83 bool nameNull() const;
84 void setNameNull();
85
89 QString jellyfinId() const;
93 void setJellyfinId(QString newJellyfinId);
94 bool jellyfinIdNull() const;
95 void setJellyfinIdNull();
96
100 bool canSearch() const;
104 void setCanSearch(bool newCanSearch);
105
113 void setMediaTypes(QList<ChannelMediaType> newMediaTypes);
114 bool mediaTypesNull() const;
115 void setMediaTypesNull();
116
125 bool contentTypesNull() const;
126 void setContentTypesNull();
127
131 std::optional<qint32> maxPageSize() const;
135 void setMaxPageSize(std::optional<qint32> newMaxPageSize);
136 bool maxPageSizeNull() const;
137 void setMaxPageSizeNull();
138
142 std::optional<qint32> autoRefreshLevels() const;
146 void setAutoRefreshLevels(std::optional<qint32> newAutoRefreshLevels);
147 bool autoRefreshLevelsNull() const;
149
157 void setDefaultSortFields(QList<ChannelItemSortField> newDefaultSortFields);
158 bool defaultSortFieldsNull() const;
160
164 bool supportsSortOrderToggle() const;
168 void setSupportsSortOrderToggle(bool newSupportsSortOrderToggle);
169
173 bool supportsLatestMedia() const;
177 void setSupportsLatestMedia(bool newSupportsLatestMedia);
178
182 bool canFilter() const;
186 void setCanFilter(bool newCanFilter);
187
191 bool supportsContentDownloading() const;
195 void setSupportsContentDownloading(bool newSupportsContentDownloading);
196
197
198protected:
199 QString m_name;
204 std::optional<qint32> m_maxPageSize = std::nullopt;
205 std::optional<qint32> m_autoRefreshLevels = std::nullopt;
211
212private:
213 // Private constructor which generates an invalid object, for use withing ChannelFeatures::fromJson();
215};
216
217
218} // NS DTO
219
220namespace Support {
221
223
224template <>
226
227template<>
229
230} // NS DTO
231} // NS Jellyfin
232
233#endif // JELLYFIN_DTO_CHANNELFEATURES_H
Definition channelfeatures.h:53
void setCanFilter(bool newCanFilter)
Gets or sets a value indicating whether this instance can filter.
Definition channelfeatures.cpp:262
void setSupportsLatestMedia(bool newSupportsLatestMedia)
Gets or sets a value indicating whether [supports latest media].
Definition channelfeatures.cpp:256
void setSupportsContentDownloading(bool newSupportsContentDownloading)
Gets or sets a value indicating whether [supports content downloading].
Definition channelfeatures.cpp:268
void setContentTypes(QList< ChannelMediaContentType > newContentTypes)
Gets or sets the content types.
Definition channelfeatures.cpp:198
std::optional< qint32 > m_autoRefreshLevels
Definition channelfeatures.h:205
void setFromJson(QJsonObject source)
Definition channelfeatures.cpp:89
void setJellyfinIdNull()
Definition channelfeatures.cpp:173
bool m_canSearch
Definition channelfeatures.h:201
bool m_supportsLatestMedia
Definition channelfeatures.h:208
void setDefaultSortFields(QList< ChannelItemSortField > newDefaultSortFields)
Gets or sets the default sort orders.
Definition channelfeatures.cpp:237
void replaceData(ChannelFeatures &other)
Definition channelfeatures.cpp:67
QList< ChannelMediaContentType > contentTypes() const
Gets or sets the content types.
Definition channelfeatures.cpp:196
std::optional< qint32 > m_maxPageSize
Definition channelfeatures.h:204
void setName(QString newName)
Gets or sets the name.
Definition channelfeatures.cpp:153
QList< ChannelMediaType > mediaTypes() const
Gets or sets the media types.
Definition channelfeatures.cpp:183
QString m_name
Definition channelfeatures.h:199
bool jellyfinIdNull() const
Definition channelfeatures.cpp:169
bool contentTypesNull() const
Definition channelfeatures.cpp:201
bool m_supportsSortOrderToggle
Definition channelfeatures.h:207
void setAutoRefreshLevelsNull()
Definition channelfeatures.cpp:231
void setContentTypesNull()
Definition channelfeatures.cpp:205
bool mediaTypesNull() const
Definition channelfeatures.cpp:188
void setCanSearch(bool newCanSearch)
Gets or sets a value indicating whether this instance can search.
Definition channelfeatures.cpp:179
bool supportsContentDownloading() const
Gets or sets a value indicating whether [supports content downloading].
Definition channelfeatures.cpp:266
QList< ChannelItemSortField > m_defaultSortFields
Definition channelfeatures.h:206
void setMediaTypesNull()
Definition channelfeatures.cpp:192
bool canFilter() const
Gets or sets a value indicating whether this instance can filter.
Definition channelfeatures.cpp:260
bool supportsSortOrderToggle() const
Indicates if a sort ascending/descending toggle is supported or not.
Definition channelfeatures.cpp:248
bool maxPageSizeNull() const
Definition channelfeatures.cpp:214
bool defaultSortFieldsNull() const
Definition channelfeatures.cpp:240
bool autoRefreshLevelsNull() const
Definition channelfeatures.cpp:227
static ChannelFeatures fromJson(QJsonObject source)
Definition channelfeatures.cpp:82
bool supportsLatestMedia() const
Gets or sets a value indicating whether [supports latest media].
Definition channelfeatures.cpp:254
QString jellyfinId() const
Gets or sets the identifier.
Definition channelfeatures.cpp:164
void setMaxPageSizeNull()
Definition channelfeatures.cpp:218
std::optional< qint32 > autoRefreshLevels() const
Gets or sets the automatic refresh levels.
Definition channelfeatures.cpp:222
QString name() const
Gets or sets the name.
Definition channelfeatures.cpp:151
QList< ChannelItemSortField > defaultSortFields() const
Gets or sets the default sort orders.
Definition channelfeatures.cpp:235
bool m_supportsContentDownloading
Definition channelfeatures.h:210
void setAutoRefreshLevels(std::optional< qint32 > newAutoRefreshLevels)
Gets or sets the automatic refresh levels.
Definition channelfeatures.cpp:224
void setMediaTypes(QList< ChannelMediaType > newMediaTypes)
Gets or sets the media types.
Definition channelfeatures.cpp:185
void setDefaultSortFieldsNull()
Definition channelfeatures.cpp:244
bool m_canFilter
Definition channelfeatures.h:209
QList< ChannelMediaType > m_mediaTypes
Definition channelfeatures.h:202
std::optional< qint32 > maxPageSize() const
Represents the maximum number of records the channel allows retrieving at a time.
Definition channelfeatures.cpp:209
QString m_jellyfinId
Definition channelfeatures.h:200
bool canSearch() const
Gets or sets a value indicating whether this instance can search.
Definition channelfeatures.cpp:177
void setJellyfinId(QString newJellyfinId)
Gets or sets the identifier.
Definition channelfeatures.cpp:166
void setNameNull()
Definition channelfeatures.cpp:160
bool nameNull() const
Definition channelfeatures.cpp:156
QJsonObject toJson() const
Definition channelfeatures.cpp:105
void setSupportsSortOrderToggle(bool newSupportsSortOrderToggle)
Indicates if a sort ascending/descending toggle is supported or not.
Definition channelfeatures.cpp:250
QList< ChannelMediaContentType > m_contentTypes
Definition channelfeatures.h:203
void setMaxPageSize(std::optional< qint32 > newMaxPageSize)
Represents the maximum number of records the channel allows retrieving at a time.
Definition channelfeatures.cpp:211
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