Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
userconfiguration.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_USERCONFIGURATION_H
31#define JELLYFIN_DTO_USERCONFIGURATION_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:
63 );
64
66
70 void replaceData(UserConfiguration &other);
71
72 static UserConfiguration fromJson(QJsonObject source);
73 void setFromJson(QJsonObject source);
74 QJsonObject toJson() const;
75
76 // Properties
80 QString audioLanguagePreference() const;
84 void setAudioLanguagePreference(QString newAudioLanguagePreference);
85 bool audioLanguagePreferenceNull() const;
87
91 bool playDefaultAudioTrack() const;
95 void setPlayDefaultAudioTrack(bool newPlayDefaultAudioTrack);
96
100 QString subtitleLanguagePreference() const;
104 void setSubtitleLanguagePreference(QString newSubtitleLanguagePreference);
107
108
109 bool displayMissingEpisodes() const;
110
111 void setDisplayMissingEpisodes(bool newDisplayMissingEpisodes);
112
113
114 QStringList groupedFolders() const;
115
116 void setGroupedFolders(QStringList newGroupedFolders);
117 bool groupedFoldersNull() const;
119
120
122
123 void setSubtitleMode(SubtitlePlaybackMode newSubtitleMode);
124
125
126 bool displayCollectionsView() const;
127
128 void setDisplayCollectionsView(bool newDisplayCollectionsView);
129
130
131 bool enableLocalPassword() const;
132
133 void setEnableLocalPassword(bool newEnableLocalPassword);
134
135
136 QStringList orderedViews() const;
137
138 void setOrderedViews(QStringList newOrderedViews);
139 bool orderedViewsNull() const;
140 void setOrderedViewsNull();
141
142
143 QStringList latestItemsExcludes() const;
144
145 void setLatestItemsExcludes(QStringList newLatestItemsExcludes);
146 bool latestItemsExcludesNull() const;
148
149
150 QStringList myMediaExcludes() const;
151
152 void setMyMediaExcludes(QStringList newMyMediaExcludes);
153 bool myMediaExcludesNull() const;
155
156
157 bool hidePlayedInLatest() const;
158
159 void setHidePlayedInLatest(bool newHidePlayedInLatest);
160
161
162 bool rememberAudioSelections() const;
163
164 void setRememberAudioSelections(bool newRememberAudioSelections);
165
166
167 bool rememberSubtitleSelections() const;
168
169 void setRememberSubtitleSelections(bool newRememberSubtitleSelections);
170
171
172 bool enableNextEpisodeAutoPlay() const;
173
174 void setEnableNextEpisodeAutoPlay(bool newEnableNextEpisodeAutoPlay);
175
176
177protected:
182 QStringList m_groupedFolders;
186 QStringList m_orderedViews;
188 QStringList m_myMediaExcludes;
193
194private:
195 // Private constructor which generates an invalid object, for use withing UserConfiguration::fromJson();
197};
198
199
200} // NS DTO
201
202namespace Support {
203
205
206template <>
208
209template<>
211
212} // NS DTO
213} // NS Jellyfin
214
215#endif // JELLYFIN_DTO_USERCONFIGURATION_H
Value
Definition subtitleplaybackmode.h:49
Definition userconfiguration.h:51
QStringList orderedViews() const
Definition userconfiguration.cpp:236
bool m_rememberAudioSelections
Definition userconfiguration.h:190
void setFromJson(QJsonObject source)
Definition userconfiguration.cpp:103
void setDisplayMissingEpisodes(bool newDisplayMissingEpisodes)
Definition userconfiguration.cpp:201
void setOrderedViews(QStringList newOrderedViews)
Definition userconfiguration.cpp:238
void setAudioLanguagePreference(QString newAudioLanguagePreference)
Gets or sets the audio language preference.
Definition userconfiguration.cpp:169
void setEnableLocalPassword(bool newEnableLocalPassword)
Definition userconfiguration.cpp:232
bool groupedFoldersNull() const
Definition userconfiguration.cpp:210
bool displayCollectionsView() const
Definition userconfiguration.cpp:224
bool displayMissingEpisodes() const
Definition userconfiguration.cpp:199
QStringList m_myMediaExcludes
Definition userconfiguration.h:188
QStringList m_orderedViews
Definition userconfiguration.h:186
void setPlayDefaultAudioTrack(bool newPlayDefaultAudioTrack)
Gets or sets a value indicating whether [play default audio track].
Definition userconfiguration.cpp:182
bool enableNextEpisodeAutoPlay() const
Definition userconfiguration.cpp:293
bool enableLocalPassword() const
Definition userconfiguration.cpp:230
bool m_playDefaultAudioTrack
Definition userconfiguration.h:179
bool rememberSubtitleSelections() const
Definition userconfiguration.cpp:287
bool m_displayCollectionsView
Definition userconfiguration.h:184
bool latestItemsExcludesNull() const
Definition userconfiguration.cpp:254
void setLatestItemsExcludes(QStringList newLatestItemsExcludes)
Definition userconfiguration.cpp:251
void setRememberAudioSelections(bool newRememberAudioSelections)
Definition userconfiguration.cpp:283
bool subtitleLanguagePreferenceNull() const
Definition userconfiguration.cpp:191
void setGroupedFolders(QStringList newGroupedFolders)
Definition userconfiguration.cpp:207
bool m_hidePlayedInLatest
Definition userconfiguration.h:189
void setOrderedViewsNull()
Definition userconfiguration.cpp:245
void replaceData(UserConfiguration &other)
Definition userconfiguration.cpp:78
void setAudioLanguagePreferenceNull()
Definition userconfiguration.cpp:176
bool m_enableNextEpisodeAutoPlay
Definition userconfiguration.h:192
void setHidePlayedInLatest(bool newHidePlayedInLatest)
Definition userconfiguration.cpp:277
void setSubtitleLanguagePreference(QString newSubtitleLanguagePreference)
Gets or sets the subtitle language preference.
Definition userconfiguration.cpp:188
QString m_subtitleLanguagePreference
Definition userconfiguration.h:180
QStringList m_latestItemsExcludes
Definition userconfiguration.h:187
bool orderedViewsNull() const
Definition userconfiguration.cpp:241
static UserConfiguration fromJson(QJsonObject source)
Definition userconfiguration.cpp:96
void setLatestItemsExcludesNull()
Definition userconfiguration.cpp:258
bool m_displayMissingEpisodes
Definition userconfiguration.h:181
bool rememberAudioSelections() const
Definition userconfiguration.cpp:281
QJsonObject toJson() const
Definition userconfiguration.cpp:122
void setDisplayCollectionsView(bool newDisplayCollectionsView)
Definition userconfiguration.cpp:226
void setRememberSubtitleSelections(bool newRememberSubtitleSelections)
Definition userconfiguration.cpp:289
QString m_audioLanguagePreference
Definition userconfiguration.h:178
bool m_enableLocalPassword
Definition userconfiguration.h:185
void setSubtitleMode(SubtitlePlaybackMode newSubtitleMode)
Definition userconfiguration.cpp:220
SubtitlePlaybackMode subtitleMode() const
Definition userconfiguration.cpp:218
void setGroupedFoldersNull()
Definition userconfiguration.cpp:214
QString audioLanguagePreference() const
Gets or sets the audio language preference.
Definition userconfiguration.cpp:167
bool playDefaultAudioTrack() const
Gets or sets a value indicating whether [play default audio track].
Definition userconfiguration.cpp:180
void setMyMediaExcludesNull()
Definition userconfiguration.cpp:271
bool hidePlayedInLatest() const
Definition userconfiguration.cpp:275
QStringList latestItemsExcludes() const
Definition userconfiguration.cpp:249
bool m_rememberSubtitleSelections
Definition userconfiguration.h:191
void setMyMediaExcludes(QStringList newMyMediaExcludes)
Definition userconfiguration.cpp:264
void setEnableNextEpisodeAutoPlay(bool newEnableNextEpisodeAutoPlay)
Definition userconfiguration.cpp:295
void setSubtitleLanguagePreferenceNull()
Definition userconfiguration.cpp:195
QStringList groupedFolders() const
Definition userconfiguration.cpp:205
bool audioLanguagePreferenceNull() const
Definition userconfiguration.cpp:172
QStringList m_groupedFolders
Definition userconfiguration.h:182
QStringList myMediaExcludes() const
Definition userconfiguration.cpp:262
QString subtitleLanguagePreference() const
Gets or sets the subtitle language preference.
Definition userconfiguration.cpp:186
SubtitlePlaybackMode m_subtitleMode
Definition userconfiguration.h:183
bool myMediaExcludesNull() const
Definition userconfiguration.cpp:267
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