Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
libraryoptions.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_LIBRARYOPTIONS_H
31#define JELLYFIN_DTO_LIBRARYOPTIONS_H
32
33#include <QJsonObject>
34#include <QJsonValue>
35#include <QList>
36#include <QString>
37#include <QStringList>
38#include <optional>
39
43
44namespace Jellyfin {
45// Forward declaration
46class ApiClient;
47}
48namespace Jellyfin {
49namespace DTO {
50
51
53public:
55 bool enablePhotos,
69 );
70
71 LibraryOptions(const LibraryOptions &other);
72
76 void replaceData(LibraryOptions &other);
77
78 static LibraryOptions fromJson(QJsonObject source);
79 void setFromJson(QJsonObject source);
80 QJsonObject toJson() const;
81
82 // Properties
83
84 bool enablePhotos() const;
85
86 void setEnablePhotos(bool newEnablePhotos);
87
88
89 bool enableRealtimeMonitor() const;
90
91 void setEnableRealtimeMonitor(bool newEnableRealtimeMonitor);
92
93
95
96 void setEnableChapterImageExtraction(bool newEnableChapterImageExtraction);
97
98
100
101 void setExtractChapterImagesDuringLibraryScan(bool newExtractChapterImagesDuringLibraryScan);
102
103
105
106 void setPathInfos(QList<MediaPathInfo> newPathInfos);
107 bool pathInfosNull() const;
108 void setPathInfosNull();
109
110
111 bool saveLocalMetadata() const;
112
113 void setSaveLocalMetadata(bool newSaveLocalMetadata);
114
115
116 bool enableInternetProviders() const;
117
118 void setEnableInternetProviders(bool newEnableInternetProviders);
119
120
122
123 void setEnableAutomaticSeriesGrouping(bool newEnableAutomaticSeriesGrouping);
124
125
126 bool enableEmbeddedTitles() const;
127
128 void setEnableEmbeddedTitles(bool newEnableEmbeddedTitles);
129
130
131 bool enableEmbeddedEpisodeInfos() const;
132
133 void setEnableEmbeddedEpisodeInfos(bool newEnableEmbeddedEpisodeInfos);
134
135
136 qint32 automaticRefreshIntervalDays() const;
137
138 void setAutomaticRefreshIntervalDays(qint32 newAutomaticRefreshIntervalDays);
139
143 QString preferredMetadataLanguage() const;
147 void setPreferredMetadataLanguage(QString newPreferredMetadataLanguage);
150
154 QString metadataCountryCode() const;
158 void setMetadataCountryCode(QString newMetadataCountryCode);
159 bool metadataCountryCodeNull() const;
161
162
163 QString seasonZeroDisplayName() const;
164
165 void setSeasonZeroDisplayName(QString newSeasonZeroDisplayName);
166 bool seasonZeroDisplayNameNull() const;
168
169
170 QStringList metadataSavers() const;
171
172 void setMetadataSavers(QStringList newMetadataSavers);
173 bool metadataSaversNull() const;
175
176
177 QStringList disabledLocalMetadataReaders() const;
178
179 void setDisabledLocalMetadataReaders(QStringList newDisabledLocalMetadataReaders);
182
183
184 QStringList localMetadataReaderOrder() const;
185
186 void setLocalMetadataReaderOrder(QStringList newLocalMetadataReaderOrder);
187 bool localMetadataReaderOrderNull() const;
189
190
191 QStringList disabledSubtitleFetchers() const;
192
193 void setDisabledSubtitleFetchers(QStringList newDisabledSubtitleFetchers);
194 bool disabledSubtitleFetchersNull() const;
196
197
198 QStringList subtitleFetcherOrder() const;
199
200 void setSubtitleFetcherOrder(QStringList newSubtitleFetcherOrder);
201 bool subtitleFetcherOrderNull() const;
203
204
206
207 void setSkipSubtitlesIfEmbeddedSubtitlesPresent(bool newSkipSubtitlesIfEmbeddedSubtitlesPresent);
208
209
211
212 void setSkipSubtitlesIfAudioTrackMatches(bool newSkipSubtitlesIfAudioTrackMatches);
213
214
215 QStringList subtitleDownloadLanguages() const;
216
217 void setSubtitleDownloadLanguages(QStringList newSubtitleDownloadLanguages);
220
221
222 bool requirePerfectSubtitleMatch() const;
223
224 void setRequirePerfectSubtitleMatch(bool newRequirePerfectSubtitleMatch);
225
226
227 bool saveSubtitlesWithMedia() const;
228
229 void setSaveSubtitlesWithMedia(bool newSaveSubtitlesWithMedia);
230
231
233
234 void setTypeOptions(QList<TypeOptions> newTypeOptions);
235 bool typeOptionsNull() const;
236 void setTypeOptionsNull();
237
238
239protected:
254 QStringList m_metadataSavers;
265
266private:
267 // Private constructor which generates an invalid object, for use withing LibraryOptions::fromJson();
269};
270
271
272} // NS DTO
273
274namespace Support {
275
277
278template <>
280
281template<>
283
284} // NS DTO
285} // NS Jellyfin
286
287#endif // JELLYFIN_DTO_LIBRARYOPTIONS_H
Definition libraryoptions.h:52
void setDisabledLocalMetadataReadersNull()
Definition libraryoptions.cpp:371
void setLocalMetadataReaderOrderNull()
Definition libraryoptions.cpp:384
void setAutomaticRefreshIntervalDays(qint32 newAutomaticRefreshIntervalDays)
Definition libraryoptions.cpp:306
bool m_enableChapterImageExtraction
Definition libraryoptions.h:242
void setExtractChapterImagesDuringLibraryScan(bool newExtractChapterImagesDuringLibraryScan)
Definition libraryoptions.cpp:257
bool seasonZeroDisplayNameNull() const
Definition libraryoptions.cpp:341
bool enableRealtimeMonitor() const
Definition libraryoptions.cpp:243
void setTypeOptionsNull()
Definition libraryoptions.cpp:460
void setPathInfos(QList< MediaPathInfo > newPathInfos)
Definition libraryoptions.cpp:263
void setEnableInternetProviders(bool newEnableInternetProviders)
Definition libraryoptions.cpp:282
QStringList disabledSubtitleFetchers() const
Definition libraryoptions.cpp:388
QString metadataCountryCode() const
Gets or sets the metadata country code.
Definition libraryoptions.cpp:323
void setSkipSubtitlesIfEmbeddedSubtitlesPresent(bool newSkipSubtitlesIfEmbeddedSubtitlesPresent)
Definition libraryoptions.cpp:416
bool m_saveSubtitlesWithMedia
Definition libraryoptions.h:263
bool saveLocalMetadata() const
Definition libraryoptions.cpp:274
bool disabledSubtitleFetchersNull() const
Definition libraryoptions.cpp:393
void setDisabledSubtitleFetchersNull()
Definition libraryoptions.cpp:397
qint32 automaticRefreshIntervalDays() const
Definition libraryoptions.cpp:304
QList< MediaPathInfo > m_pathInfos
Definition libraryoptions.h:244
bool enableInternetProviders() const
Definition libraryoptions.cpp:280
QStringList m_localMetadataReaderOrder
Definition libraryoptions.h:256
QStringList m_metadataSavers
Definition libraryoptions.h:254
void setPreferredMetadataLanguage(QString newPreferredMetadataLanguage)
Gets or sets the preferred metadata language.
Definition libraryoptions.cpp:312
bool disabledLocalMetadataReadersNull() const
Definition libraryoptions.cpp:367
bool pathInfosNull() const
Definition libraryoptions.cpp:266
QList< TypeOptions > m_typeOptions
Definition libraryoptions.h:264
bool enableAutomaticSeriesGrouping() const
Definition libraryoptions.cpp:286
void setMetadataCountryCode(QString newMetadataCountryCode)
Gets or sets the metadata country code.
Definition libraryoptions.cpp:325
void replaceData(LibraryOptions &other)
Definition libraryoptions.cpp:98
void setSubtitleFetcherOrderNull()
Definition libraryoptions.cpp:410
void setEnableEmbeddedTitles(bool newEnableEmbeddedTitles)
Definition libraryoptions.cpp:294
bool saveSubtitlesWithMedia() const
Definition libraryoptions.cpp:445
bool m_extractChapterImagesDuringLibraryScan
Definition libraryoptions.h:243
QStringList m_disabledSubtitleFetchers
Definition libraryoptions.h:257
void setSeasonZeroDisplayName(QString newSeasonZeroDisplayName)
Definition libraryoptions.cpp:338
void setPreferredMetadataLanguageNull()
Definition libraryoptions.cpp:319
bool m_enablePhotos
Definition libraryoptions.h:240
void setLocalMetadataReaderOrder(QStringList newLocalMetadataReaderOrder)
Definition libraryoptions.cpp:377
bool typeOptionsNull() const
Definition libraryoptions.cpp:456
QList< MediaPathInfo > pathInfos() const
Definition libraryoptions.cpp:261
bool metadataCountryCodeNull() const
Definition libraryoptions.cpp:328
bool requirePerfectSubtitleMatch() const
Definition libraryoptions.cpp:439
QString preferredMetadataLanguage() const
Gets or sets the preferred metadata language.
Definition libraryoptions.cpp:310
QString seasonZeroDisplayName() const
Definition libraryoptions.cpp:336
void setDisabledLocalMetadataReaders(QStringList newDisabledLocalMetadataReaders)
Definition libraryoptions.cpp:364
void setSkipSubtitlesIfAudioTrackMatches(bool newSkipSubtitlesIfAudioTrackMatches)
Definition libraryoptions.cpp:422
void setEnablePhotos(bool newEnablePhotos)
Definition libraryoptions.cpp:239
bool m_requirePerfectSubtitleMatch
Definition libraryoptions.h:262
bool enableEmbeddedTitles() const
Definition libraryoptions.cpp:292
bool preferredMetadataLanguageNull() const
Definition libraryoptions.cpp:315
bool enableChapterImageExtraction() const
Definition libraryoptions.cpp:249
void setSaveSubtitlesWithMedia(bool newSaveSubtitlesWithMedia)
Definition libraryoptions.cpp:447
QList< TypeOptions > typeOptions() const
Definition libraryoptions.cpp:451
bool m_skipSubtitlesIfAudioTrackMatches
Definition libraryoptions.h:260
QStringList m_subtitleDownloadLanguages
Definition libraryoptions.h:261
bool m_enableRealtimeMonitor
Definition libraryoptions.h:241
QStringList metadataSavers() const
Definition libraryoptions.cpp:349
bool m_enableAutomaticSeriesGrouping
Definition libraryoptions.h:247
void setDisabledSubtitleFetchers(QStringList newDisabledSubtitleFetchers)
Definition libraryoptions.cpp:390
bool enableEmbeddedEpisodeInfos() const
Definition libraryoptions.cpp:298
void setTypeOptions(QList< TypeOptions > newTypeOptions)
Definition libraryoptions.cpp:453
void setSeasonZeroDisplayNameNull()
Definition libraryoptions.cpp:345
void setMetadataCountryCodeNull()
Definition libraryoptions.cpp:332
void setEnableAutomaticSeriesGrouping(bool newEnableAutomaticSeriesGrouping)
Definition libraryoptions.cpp:288
void setMetadataSaversNull()
Definition libraryoptions.cpp:358
QStringList disabledLocalMetadataReaders() const
Definition libraryoptions.cpp:362
bool m_enableEmbeddedEpisodeInfos
Definition libraryoptions.h:249
void setEnableRealtimeMonitor(bool newEnableRealtimeMonitor)
Definition libraryoptions.cpp:245
void setEnableChapterImageExtraction(bool newEnableChapterImageExtraction)
Definition libraryoptions.cpp:251
void setFromJson(QJsonObject source)
Definition libraryoptions.cpp:133
bool skipSubtitlesIfAudioTrackMatches() const
Definition libraryoptions.cpp:420
bool metadataSaversNull() const
Definition libraryoptions.cpp:354
QString m_metadataCountryCode
Definition libraryoptions.h:252
void setSaveLocalMetadata(bool newSaveLocalMetadata)
Definition libraryoptions.cpp:276
QStringList m_disabledLocalMetadataReaders
Definition libraryoptions.h:255
QStringList m_subtitleFetcherOrder
Definition libraryoptions.h:258
bool skipSubtitlesIfEmbeddedSubtitlesPresent() const
Definition libraryoptions.cpp:414
void setSubtitleDownloadLanguages(QStringList newSubtitleDownloadLanguages)
Definition libraryoptions.cpp:428
bool m_enableEmbeddedTitles
Definition libraryoptions.h:248
void setEnableEmbeddedEpisodeInfos(bool newEnableEmbeddedEpisodeInfos)
Definition libraryoptions.cpp:300
void setSubtitleDownloadLanguagesNull()
Definition libraryoptions.cpp:435
bool m_enableInternetProviders
Definition libraryoptions.h:246
bool enablePhotos() const
Definition libraryoptions.cpp:237
static LibraryOptions fromJson(QJsonObject source)
Definition libraryoptions.cpp:126
bool subtitleFetcherOrderNull() const
Definition libraryoptions.cpp:406
void setPathInfosNull()
Definition libraryoptions.cpp:270
QStringList subtitleDownloadLanguages() const
Definition libraryoptions.cpp:426
bool extractChapterImagesDuringLibraryScan() const
Definition libraryoptions.cpp:255
QStringList subtitleFetcherOrder() const
Definition libraryoptions.cpp:401
void setSubtitleFetcherOrder(QStringList newSubtitleFetcherOrder)
Definition libraryoptions.cpp:403
bool subtitleDownloadLanguagesNull() const
Definition libraryoptions.cpp:431
QJsonObject toJson() const
Definition libraryoptions.cpp:162
bool m_saveLocalMetadata
Definition libraryoptions.h:245
QStringList localMetadataReaderOrder() const
Definition libraryoptions.cpp:375
qint32 m_automaticRefreshIntervalDays
Definition libraryoptions.h:250
QString m_seasonZeroDisplayName
Definition libraryoptions.h:253
QString m_preferredMetadataLanguage
Definition libraryoptions.h:251
bool localMetadataReaderOrderNull() const
Definition libraryoptions.cpp:380
void setMetadataSavers(QStringList newMetadataSavers)
Definition libraryoptions.cpp:351
bool m_skipSubtitlesIfEmbeddedSubtitlesPresent
Definition libraryoptions.h:259
void setRequirePerfectSubtitleMatch(bool newRequirePerfectSubtitleMatch)
Definition libraryoptions.cpp:441
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