Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
listingsproviderinfo.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_LISTINGSPROVIDERINFO_H
31#define JELLYFIN_DTO_LISTINGSPROVIDERINFO_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:
54 bool enableAllTuners
55 );
56
58
63
64 static ListingsProviderInfo fromJson(QJsonObject source);
65 void setFromJson(QJsonObject source);
66 QJsonObject toJson() const;
67
68 // Properties
69
70 QString jellyfinId() const;
71
72 void setJellyfinId(QString newJellyfinId);
73 bool jellyfinIdNull() const;
74 void setJellyfinIdNull();
75
76
77 QString type() const;
78
79 void setType(QString newType);
80 bool typeNull() const;
81 void setTypeNull();
82
83
84 QString username() const;
85
86 void setUsername(QString newUsername);
87 bool usernameNull() const;
88 void setUsernameNull();
89
90
91 QString password() const;
92
93 void setPassword(QString newPassword);
94 bool passwordNull() const;
95 void setPasswordNull();
96
97
98 QString listingsId() const;
99
100 void setListingsId(QString newListingsId);
101 bool listingsIdNull() const;
102 void setListingsIdNull();
103
104
105 QString zipCode() const;
106
107 void setZipCode(QString newZipCode);
108 bool zipCodeNull() const;
109 void setZipCodeNull();
110
111
112 QString country() const;
113
114 void setCountry(QString newCountry);
115 bool countryNull() const;
116 void setCountryNull();
117
118
119 QString path() const;
120
121 void setPath(QString newPath);
122 bool pathNull() const;
123 void setPathNull();
124
125
126 QStringList enabledTuners() const;
127
128 void setEnabledTuners(QStringList newEnabledTuners);
129 bool enabledTunersNull() const;
131
132
133 bool enableAllTuners() const;
134
135 void setEnableAllTuners(bool newEnableAllTuners);
136
137
138 QStringList newsCategories() const;
139
140 void setNewsCategories(QStringList newNewsCategories);
141 bool newsCategoriesNull() const;
143
144
145 QStringList sportsCategories() const;
146
147 void setSportsCategories(QStringList newSportsCategories);
148 bool sportsCategoriesNull() const;
150
151
152 QStringList kidsCategories() const;
153
154 void setKidsCategories(QStringList newKidsCategories);
155 bool kidsCategoriesNull() const;
157
158
159 QStringList movieCategories() const;
160
161 void setMovieCategories(QStringList newMovieCategories);
162 bool movieCategoriesNull() const;
164
165
167
168 void setChannelMappings(QList<NameValuePair> newChannelMappings);
169 bool channelMappingsNull() const;
171
172
173 QString moviePrefix() const;
174
175 void setMoviePrefix(QString newMoviePrefix);
176 bool moviePrefixNull() const;
177 void setMoviePrefixNull();
178
179
180 QString preferredLanguage() const;
181
182 void setPreferredLanguage(QString newPreferredLanguage);
183 bool preferredLanguageNull() const;
185
186
187 QString userAgent() const;
188
189 void setUserAgent(QString newUserAgent);
190 bool userAgentNull() const;
191 void setUserAgentNull();
192
193
194protected:
196 QString m_type;
197 QString m_username;
198 QString m_password;
200 QString m_zipCode;
201 QString m_country;
202 QString m_path;
203 QStringList m_enabledTuners;
205 QStringList m_newsCategories;
207 QStringList m_kidsCategories;
208 QStringList m_movieCategories;
212 QString m_userAgent;
213
214private:
215 // Private constructor which generates an invalid object, for use withing ListingsProviderInfo::fromJson();
217};
218
219
220} // NS DTO
221
222namespace Support {
223
225
226template <>
228
229template<>
231
232} // NS DTO
233} // NS Jellyfin
234
235#endif // JELLYFIN_DTO_LISTINGSPROVIDERINFO_H
Definition listingsproviderinfo.h:51
QString m_zipCode
Definition listingsproviderinfo.h:200
void setPassword(QString newPassword)
Definition listingsproviderinfo.cpp:248
void setEnabledTunersNull()
Definition listingsproviderinfo.cpp:320
QString password() const
Definition listingsproviderinfo.cpp:246
QString jellyfinId() const
Definition listingsproviderinfo.cpp:207
QString m_moviePrefix
Definition listingsproviderinfo.h:210
void setListingsIdNull()
Definition listingsproviderinfo.cpp:268
QList< NameValuePair > channelMappings() const
Definition listingsproviderinfo.cpp:382
bool preferredLanguageNull() const
Definition listingsproviderinfo.cpp:413
void setUserAgentNull()
Definition listingsproviderinfo.cpp:430
QString m_type
Definition listingsproviderinfo.h:196
void setPathNull()
Definition listingsproviderinfo.cpp:307
void setPasswordNull()
Definition listingsproviderinfo.cpp:255
bool m_enableAllTuners
Definition listingsproviderinfo.h:204
bool kidsCategoriesNull() const
Definition listingsproviderinfo.cpp:361
QStringList m_enabledTuners
Definition listingsproviderinfo.h:203
void setZipCode(QString newZipCode)
Definition listingsproviderinfo.cpp:274
bool jellyfinIdNull() const
Definition listingsproviderinfo.cpp:212
QString country() const
Definition listingsproviderinfo.cpp:285
void setUsernameNull()
Definition listingsproviderinfo.cpp:242
QString username() const
Definition listingsproviderinfo.cpp:233
void setJellyfinIdNull()
Definition listingsproviderinfo.cpp:216
bool zipCodeNull() const
Definition listingsproviderinfo.cpp:277
QString m_password
Definition listingsproviderinfo.h:198
bool sportsCategoriesNull() const
Definition listingsproviderinfo.cpp:348
QString m_jellyfinId
Definition listingsproviderinfo.h:195
void setPath(QString newPath)
Definition listingsproviderinfo.cpp:300
void setMovieCategoriesNull()
Definition listingsproviderinfo.cpp:378
void setKidsCategoriesNull()
Definition listingsproviderinfo.cpp:365
void setChannelMappings(QList< NameValuePair > newChannelMappings)
Definition listingsproviderinfo.cpp:384
QStringList m_movieCategories
Definition listingsproviderinfo.h:208
QStringList kidsCategories() const
Definition listingsproviderinfo.cpp:356
void replaceData(ListingsProviderInfo &other)
Definition listingsproviderinfo.cpp:65
bool listingsIdNull() const
Definition listingsproviderinfo.cpp:264
void setEnableAllTuners(bool newEnableAllTuners)
Definition listingsproviderinfo.cpp:326
QString moviePrefix() const
Definition listingsproviderinfo.cpp:395
void setJellyfinId(QString newJellyfinId)
Definition listingsproviderinfo.cpp:209
bool newsCategoriesNull() const
Definition listingsproviderinfo.cpp:335
void setCountry(QString newCountry)
Definition listingsproviderinfo.cpp:287
QString m_userAgent
Definition listingsproviderinfo.h:212
QJsonObject toJson() const
Definition listingsproviderinfo.cpp:115
QStringList movieCategories() const
Definition listingsproviderinfo.cpp:369
bool userAgentNull() const
Definition listingsproviderinfo.cpp:426
void setCountryNull()
Definition listingsproviderinfo.cpp:294
static ListingsProviderInfo fromJson(QJsonObject source)
Definition listingsproviderinfo.cpp:86
void setKidsCategories(QStringList newKidsCategories)
Definition listingsproviderinfo.cpp:358
void setMovieCategories(QStringList newMovieCategories)
Definition listingsproviderinfo.cpp:371
QString type() const
Definition listingsproviderinfo.cpp:220
void setPreferredLanguage(QString newPreferredLanguage)
Definition listingsproviderinfo.cpp:410
QStringList m_sportsCategories
Definition listingsproviderinfo.h:206
void setNewsCategories(QStringList newNewsCategories)
Definition listingsproviderinfo.cpp:332
QString preferredLanguage() const
Definition listingsproviderinfo.cpp:408
void setUsername(QString newUsername)
Definition listingsproviderinfo.cpp:235
QString m_username
Definition listingsproviderinfo.h:197
bool channelMappingsNull() const
Definition listingsproviderinfo.cpp:387
void setSportsCategoriesNull()
Definition listingsproviderinfo.cpp:352
QString m_preferredLanguage
Definition listingsproviderinfo.h:211
bool enableAllTuners() const
Definition listingsproviderinfo.cpp:324
QList< NameValuePair > m_channelMappings
Definition listingsproviderinfo.h:209
QStringList enabledTuners() const
Definition listingsproviderinfo.cpp:311
bool usernameNull() const
Definition listingsproviderinfo.cpp:238
bool pathNull() const
Definition listingsproviderinfo.cpp:303
void setEnabledTuners(QStringList newEnabledTuners)
Definition listingsproviderinfo.cpp:313
QString zipCode() const
Definition listingsproviderinfo.cpp:272
QString path() const
Definition listingsproviderinfo.cpp:298
bool countryNull() const
Definition listingsproviderinfo.cpp:290
QString m_country
Definition listingsproviderinfo.h:201
void setZipCodeNull()
Definition listingsproviderinfo.cpp:281
void setNewsCategoriesNull()
Definition listingsproviderinfo.cpp:339
bool passwordNull() const
Definition listingsproviderinfo.cpp:251
QStringList m_newsCategories
Definition listingsproviderinfo.h:205
void setSportsCategories(QStringList newSportsCategories)
Definition listingsproviderinfo.cpp:345
QString listingsId() const
Definition listingsproviderinfo.cpp:259
void setTypeNull()
Definition listingsproviderinfo.cpp:229
void setListingsId(QString newListingsId)
Definition listingsproviderinfo.cpp:261
bool movieCategoriesNull() const
Definition listingsproviderinfo.cpp:374
bool moviePrefixNull() const
Definition listingsproviderinfo.cpp:400
void setChannelMappingsNull()
Definition listingsproviderinfo.cpp:391
void setMoviePrefix(QString newMoviePrefix)
Definition listingsproviderinfo.cpp:397
QStringList newsCategories() const
Definition listingsproviderinfo.cpp:330
bool enabledTunersNull() const
Definition listingsproviderinfo.cpp:316
QStringList m_kidsCategories
Definition listingsproviderinfo.h:207
bool typeNull() const
Definition listingsproviderinfo.cpp:225
QString userAgent() const
Definition listingsproviderinfo.cpp:421
void setFromJson(QJsonObject source)
Definition listingsproviderinfo.cpp:93
QString m_listingsId
Definition listingsproviderinfo.h:199
void setMoviePrefixNull()
Definition listingsproviderinfo.cpp:404
void setUserAgent(QString newUserAgent)
Definition listingsproviderinfo.cpp:423
QString m_path
Definition listingsproviderinfo.h:202
void setPreferredLanguageNull()
Definition listingsproviderinfo.cpp:417
QStringList sportsCategories() const
Definition listingsproviderinfo.cpp:343
void setType(QString newType)
Definition listingsproviderinfo.cpp:222
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