Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
queryfilterslegacy.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_QUERYFILTERSLEGACY_H
31#define JELLYFIN_DTO_QUERYFILTERSLEGACY_H
32
33#include <QJsonObject>
34#include <QJsonValue>
35#include <QList>
36#include <QString>
37#include <QStringList>
38#include <optional>
39
41
42namespace Jellyfin {
43// Forward declaration
44class ApiClient;
45}
46namespace Jellyfin {
47namespace DTO {
48
49
51public: QueryFiltersLegacy();
53
58
59 static QueryFiltersLegacy fromJson(QJsonObject source);
60 void setFromJson(QJsonObject source);
61 QJsonObject toJson() const;
62
63 // Properties
64
65 QStringList genres() const;
66
67 void setGenres(QStringList newGenres);
68 bool genresNull() const;
69 void setGenresNull();
70
71
72 QStringList tags() const;
73
74 void setTags(QStringList newTags);
75 bool tagsNull() const;
76 void setTagsNull();
77
78
79 QStringList officialRatings() const;
80
81 void setOfficialRatings(QStringList newOfficialRatings);
82 bool officialRatingsNull() const;
84
85
86 QList<qint32> years() const;
87
88 void setYears(QList<qint32> newYears);
89 bool yearsNull() const;
90 void setYearsNull();
91
92
93protected:
94 QStringList m_genres;
95 QStringList m_tags;
96 QStringList m_officialRatings;
98
99
100};
101
102
103} // NS DTO
104
105namespace Support {
106
108
109template <>
111
112template<>
114
115} // NS DTO
116} // NS Jellyfin
117
118#endif // JELLYFIN_DTO_QUERYFILTERSLEGACY_H
Definition queryfilterslegacy.h:50
bool yearsNull() const
Definition queryfilterslegacy.cpp:137
bool officialRatingsNull() const
Definition queryfilterslegacy.cpp:124
void setOfficialRatingsNull()
Definition queryfilterslegacy.cpp:128
QStringList m_officialRatings
Definition queryfilterslegacy.h:96
static QueryFiltersLegacy fromJson(QJsonObject source)
Definition queryfilterslegacy.cpp:52
bool genresNull() const
Definition queryfilterslegacy.cpp:98
void setTagsNull()
Definition queryfilterslegacy.cpp:115
void setYearsNull()
Definition queryfilterslegacy.cpp:141
QueryFiltersLegacy()
Definition queryfilterslegacy.cpp:35
QStringList m_tags
Definition queryfilterslegacy.h:95
QList< qint32 > years() const
Definition queryfilterslegacy.cpp:132
void replaceData(QueryFiltersLegacy &other)
Definition queryfilterslegacy.cpp:45
QList< qint32 > m_years
Definition queryfilterslegacy.h:97
void setFromJson(QJsonObject source)
Definition queryfilterslegacy.cpp:59
void setYears(QList< qint32 > newYears)
Definition queryfilterslegacy.cpp:134
QStringList m_genres
Definition queryfilterslegacy.h:94
void setOfficialRatings(QStringList newOfficialRatings)
Definition queryfilterslegacy.cpp:121
QJsonObject toJson() const
Definition queryfilterslegacy.cpp:67
QStringList genres() const
Definition queryfilterslegacy.cpp:93
QStringList officialRatings() const
Definition queryfilterslegacy.cpp:119
QStringList tags() const
Definition queryfilterslegacy.cpp:106
void setTags(QStringList newTags)
Definition queryfilterslegacy.cpp:108
void setGenresNull()
Definition queryfilterslegacy.cpp:102
void setGenres(QStringList newGenres)
Definition queryfilterslegacy.cpp:95
bool tagsNull() const
Definition queryfilterslegacy.cpp:111
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