Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
displaypreferencesdto.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_DISPLAYPREFERENCESDTO_H
31#define JELLYFIN_DTO_DISPLAYPREFERENCESDTO_H
32
33#include <QJsonObject>
34#include <QJsonValue>
35#include <QString>
36#include <optional>
37
41
42namespace Jellyfin {
43// Forward declaration
44class ApiClient;
45}
46namespace Jellyfin {
47namespace DTO {
48
49
51public:
53 bool rememberIndexing,
54 qint32 primaryImageHeight,
55 qint32 primaryImageWidth,
57 bool showBackdrop,
58 bool rememberSorting,
60 bool showSidebar
61 );
62
64
69
70 static DisplayPreferencesDto fromJson(QJsonObject source);
71 void setFromJson(QJsonObject source);
72 QJsonObject toJson() const;
73
74 // Properties
78 QString jellyfinId() const;
82 void setJellyfinId(QString newJellyfinId);
83 bool jellyfinIdNull() const;
84 void setJellyfinIdNull();
85
89 QString viewType() const;
93 void setViewType(QString newViewType);
94 bool viewTypeNull() const;
95 void setViewTypeNull();
96
100 QString sortBy() const;
104 void setSortBy(QString newSortBy);
105 bool sortByNull() const;
106 void setSortByNull();
107
111 QString indexBy() const;
115 void setIndexBy(QString newIndexBy);
116 bool indexByNull() const;
117 void setIndexByNull();
118
122 bool rememberIndexing() const;
126 void setRememberIndexing(bool newRememberIndexing);
127
131 qint32 primaryImageHeight() const;
135 void setPrimaryImageHeight(qint32 newPrimaryImageHeight);
136
140 qint32 primaryImageWidth() const;
144 void setPrimaryImageWidth(qint32 newPrimaryImageWidth);
145
149 QJsonObject customPrefs() const;
153 void setCustomPrefs(QJsonObject newCustomPrefs);
154 bool customPrefsNull() const;
155 void setCustomPrefsNull();
156
157
159
160 void setScrollDirection(ScrollDirection newScrollDirection);
161
165 bool showBackdrop() const;
169 void setShowBackdrop(bool newShowBackdrop);
170
174 bool rememberSorting() const;
178 void setRememberSorting(bool newRememberSorting);
179
180
181 SortOrder sortOrder() const;
182
183 void setSortOrder(SortOrder newSortOrder);
184
188 bool showSidebar() const;
192 void setShowSidebar(bool newShowSidebar);
193
197 QString client() const;
201 void setClient(QString newClient);
202 bool clientNull() const;
203 void setClientNull();
204
205
206protected:
208 QString m_viewType;
209 QString m_sortBy;
210 QString m_indexBy;
214 QJsonObject m_customPrefs;
220 QString m_client;
221
222private:
223 // Private constructor which generates an invalid object, for use withing DisplayPreferencesDto::fromJson();
225};
226
227
228} // NS DTO
229
230namespace Support {
231
233
234template <>
236
237template<>
239
240} // NS DTO
241} // NS Jellyfin
242
243#endif // JELLYFIN_DTO_DISPLAYPREFERENCESDTO_H
Definition displaypreferencesdto.h:50
void setViewTypeNull()
Definition displaypreferencesdto.cpp:183
SortOrder m_sortOrder
Definition displaypreferencesdto.h:218
QString m_client
Definition displaypreferencesdto.h:220
void setClient(QString newClient)
Gets or sets the client.
Definition displaypreferencesdto.cpp:276
qint32 primaryImageHeight() const
Gets or sets the height of the primary image.
Definition displaypreferencesdto.cpp:219
void setShowSidebar(bool newShowSidebar)
Gets or sets a value indicating whether [show sidebar].
Definition displaypreferencesdto.cpp:270
void setSortByNull()
Definition displaypreferencesdto.cpp:196
QString indexBy() const
Gets or sets the index by.
Definition displaypreferencesdto.cpp:200
void setSortBy(QString newSortBy)
Gets or sets the sort by.
Definition displaypreferencesdto.cpp:189
void setCustomPrefsNull()
Definition displaypreferencesdto.cpp:240
void replaceData(DisplayPreferencesDto &other)
Definition displaypreferencesdto.cpp:75
qint32 m_primaryImageWidth
Definition displaypreferencesdto.h:213
QString client() const
Gets or sets the client.
Definition displaypreferencesdto.cpp:274
void setScrollDirection(ScrollDirection newScrollDirection)
Definition displaypreferencesdto.cpp:246
void setSortOrder(SortOrder newSortOrder)
Definition displaypreferencesdto.cpp:264
bool showBackdrop() const
Gets or sets a value indicating whether to show backdrops on this item.
Definition displaypreferencesdto.cpp:250
QString m_sortBy
Definition displaypreferencesdto.h:209
bool clientNull() const
Definition displaypreferencesdto.cpp:279
QJsonObject customPrefs() const
Gets or sets the custom prefs.
Definition displaypreferencesdto.cpp:231
QJsonObject m_customPrefs
Definition displaypreferencesdto.h:214
bool customPrefsNull() const
Definition displaypreferencesdto.cpp:236
bool viewTypeNull() const
Definition displaypreferencesdto.cpp:179
void setPrimaryImageHeight(qint32 newPrimaryImageHeight)
Gets or sets the height of the primary image.
Definition displaypreferencesdto.cpp:221
void setRememberIndexing(bool newRememberIndexing)
Gets or sets a value indicating whether [remember indexing].
Definition displaypreferencesdto.cpp:215
QString sortBy() const
Gets or sets the sort by.
Definition displaypreferencesdto.cpp:187
void setPrimaryImageWidth(qint32 newPrimaryImageWidth)
Gets or sets the width of the primary image.
Definition displaypreferencesdto.cpp:227
bool showSidebar() const
Gets or sets a value indicating whether [show sidebar].
Definition displaypreferencesdto.cpp:268
bool m_showSidebar
Definition displaypreferencesdto.h:219
QString m_viewType
Definition displaypreferencesdto.h:208
bool m_showBackdrop
Definition displaypreferencesdto.h:216
bool rememberIndexing() const
Gets or sets a value indicating whether [remember indexing].
Definition displaypreferencesdto.cpp:213
void setCustomPrefs(QJsonObject newCustomPrefs)
Gets or sets the custom prefs.
Definition displaypreferencesdto.cpp:233
bool sortByNull() const
Definition displaypreferencesdto.cpp:192
QJsonObject toJson() const
Definition displaypreferencesdto.cpp:117
ScrollDirection scrollDirection() const
Definition displaypreferencesdto.cpp:244
void setFromJson(QJsonObject source)
Definition displaypreferencesdto.cpp:99
QString jellyfinId() const
Gets or sets the user id.
Definition displaypreferencesdto.cpp:161
void setClientNull()
Definition displaypreferencesdto.cpp:283
static DisplayPreferencesDto fromJson(QJsonObject source)
Definition displaypreferencesdto.cpp:92
qint32 m_primaryImageHeight
Definition displaypreferencesdto.h:212
QString m_jellyfinId
Definition displaypreferencesdto.h:207
ScrollDirection m_scrollDirection
Definition displaypreferencesdto.h:215
void setJellyfinId(QString newJellyfinId)
Gets or sets the user id.
Definition displaypreferencesdto.cpp:163
bool jellyfinIdNull() const
Definition displaypreferencesdto.cpp:166
void setViewType(QString newViewType)
Gets or sets the type of the view.
Definition displaypreferencesdto.cpp:176
void setShowBackdrop(bool newShowBackdrop)
Gets or sets a value indicating whether to show backdrops on this item.
Definition displaypreferencesdto.cpp:252
bool m_rememberIndexing
Definition displaypreferencesdto.h:211
void setIndexBy(QString newIndexBy)
Gets or sets the index by.
Definition displaypreferencesdto.cpp:202
QString viewType() const
Gets or sets the type of the view.
Definition displaypreferencesdto.cpp:174
void setRememberSorting(bool newRememberSorting)
Gets or sets a value indicating whether [remember sorting].
Definition displaypreferencesdto.cpp:258
void setJellyfinIdNull()
Definition displaypreferencesdto.cpp:170
qint32 primaryImageWidth() const
Gets or sets the width of the primary image.
Definition displaypreferencesdto.cpp:225
SortOrder sortOrder() const
Definition displaypreferencesdto.cpp:262
bool m_rememberSorting
Definition displaypreferencesdto.h:217
QString m_indexBy
Definition displaypreferencesdto.h:210
bool indexByNull() const
Definition displaypreferencesdto.cpp:205
void setIndexByNull()
Definition displaypreferencesdto.cpp:209
bool rememberSorting() const
Gets or sets a value indicating whether [remember sorting].
Definition displaypreferencesdto.cpp:256
Value
Definition scrolldirection.h:49
Value
Definition sortorder.h:49
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