Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
virtualfolderinfo.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_VIRTUALFOLDERINFO_H
31#define JELLYFIN_DTO_VIRTUALFOLDERINFO_H
32
33#include <QJsonObject>
34#include <QJsonValue>
35#include <QList>
36#include <QSharedPointer>
37#include <QString>
38#include <QStringList>
39#include <optional>
40
43
44namespace Jellyfin {
45// Forward declaration
46class ApiClient;
47}
48namespace Jellyfin {
49namespace DTO {
50
51
53public:
55 QSharedPointer<LibraryOptions> libraryOptions
56 );
57
59
63 void replaceData(VirtualFolderInfo &other);
64
65 static VirtualFolderInfo fromJson(QJsonObject source);
66 void setFromJson(QJsonObject source);
67 QJsonObject toJson() const;
68
69 // Properties
73 QString name() const;
77 void setName(QString newName);
78 bool nameNull() const;
79 void setNameNull();
80
84 QStringList locations() const;
88 void setLocations(QStringList newLocations);
89 bool locationsNull() const;
90 void setLocationsNull();
91
95 QString collectionType() const;
99 void setCollectionType(QString newCollectionType);
100 bool collectionTypeNull() const;
102
103
104 QSharedPointer<LibraryOptions> libraryOptions() const;
105
106 void setLibraryOptions(QSharedPointer<LibraryOptions> newLibraryOptions);
107
111 QString itemId() const;
115 void setItemId(QString newItemId);
116 bool itemIdNull() const;
117 void setItemIdNull();
118
122 QString primaryImageItemId() const;
126 void setPrimaryImageItemId(QString newPrimaryImageItemId);
127 bool primaryImageItemIdNull() const;
129
130
131 std::optional<double> refreshProgress() const;
132
133 void setRefreshProgress(std::optional<double> newRefreshProgress);
134 bool refreshProgressNull() const;
136
137
138 QString refreshStatus() const;
139
140 void setRefreshStatus(QString newRefreshStatus);
141 bool refreshStatusNull() const;
143
144
145protected:
146 QString m_name;
147 QStringList m_locations;
149 QSharedPointer<LibraryOptions> m_libraryOptions = QSharedPointer<LibraryOptions>();
150 QString m_itemId;
152 std::optional<double> m_refreshProgress = std::nullopt;
154
155private:
156 // Private constructor which generates an invalid object, for use withing VirtualFolderInfo::fromJson();
158};
159
160
161} // NS DTO
162
163namespace Support {
164
166
167template <>
169
170template<>
172
173} // NS DTO
174} // NS Jellyfin
175
176#endif // JELLYFIN_DTO_VIRTUALFOLDERINFO_H
Definition virtualfolderinfo.h:52
QStringList locations() const
Gets or sets the locations.
Definition virtualfolderinfo.cpp:140
void setRefreshProgress(std::optional< double > newRefreshProgress)
Definition virtualfolderinfo.cpp:200
QString collectionType() const
Gets or sets the type of the collection.
Definition virtualfolderinfo.cpp:153
void setPrimaryImageItemId(QString newPrimaryImageItemId)
Gets or sets the primary image item identifier.
Definition virtualfolderinfo.cpp:187
QString itemId() const
Gets or sets the item identifier.
Definition virtualfolderinfo.cpp:172
void setName(QString newName)
Gets or sets the name.
Definition virtualfolderinfo.cpp:129
QString m_collectionType
Definition virtualfolderinfo.h:148
void setPrimaryImageItemIdNull()
Definition virtualfolderinfo.cpp:194
void setCollectionType(QString newCollectionType)
Gets or sets the type of the collection.
Definition virtualfolderinfo.cpp:155
static VirtualFolderInfo fromJson(QJsonObject source)
Definition virtualfolderinfo.cpp:66
bool primaryImageItemIdNull() const
Definition virtualfolderinfo.cpp:190
QJsonObject toJson() const
Definition virtualfolderinfo.cpp:85
QString primaryImageItemId() const
Gets or sets the primary image item identifier.
Definition virtualfolderinfo.cpp:185
void setNameNull()
Definition virtualfolderinfo.cpp:136
QString refreshStatus() const
Definition virtualfolderinfo.cpp:211
bool refreshStatusNull() const
Definition virtualfolderinfo.cpp:216
QString m_refreshStatus
Definition virtualfolderinfo.h:153
void setFromJson(QJsonObject source)
Definition virtualfolderinfo.cpp:73
QString m_primaryImageItemId
Definition virtualfolderinfo.h:151
void setRefreshProgressNull()
Definition virtualfolderinfo.cpp:207
bool collectionTypeNull() const
Definition virtualfolderinfo.cpp:158
void setLibraryOptions(QSharedPointer< LibraryOptions > newLibraryOptions)
Definition virtualfolderinfo.cpp:168
std::optional< double > refreshProgress() const
Definition virtualfolderinfo.cpp:198
bool nameNull() const
Definition virtualfolderinfo.cpp:132
std::optional< double > m_refreshProgress
Definition virtualfolderinfo.h:152
QString m_name
Definition virtualfolderinfo.h:146
void setCollectionTypeNull()
Definition virtualfolderinfo.cpp:162
bool itemIdNull() const
Definition virtualfolderinfo.cpp:177
void setItemId(QString newItemId)
Gets or sets the item identifier.
Definition virtualfolderinfo.cpp:174
QStringList m_locations
Definition virtualfolderinfo.h:147
bool refreshProgressNull() const
Definition virtualfolderinfo.cpp:203
void setItemIdNull()
Definition virtualfolderinfo.cpp:181
void setLocations(QStringList newLocations)
Gets or sets the locations.
Definition virtualfolderinfo.cpp:142
void setLocationsNull()
Definition virtualfolderinfo.cpp:149
QSharedPointer< LibraryOptions > libraryOptions() const
Definition virtualfolderinfo.cpp:166
QString name() const
Gets or sets the name.
Definition virtualfolderinfo.cpp:127
void replaceData(VirtualFolderInfo &other)
Definition virtualfolderinfo.cpp:55
bool locationsNull() const
Definition virtualfolderinfo.cpp:145
QSharedPointer< LibraryOptions > m_libraryOptions
Definition virtualfolderinfo.h:149
void setRefreshStatus(QString newRefreshStatus)
Definition virtualfolderinfo.cpp:213
void setRefreshStatusNull()
Definition virtualfolderinfo.cpp:220
QString m_itemId
Definition virtualfolderinfo.h:150
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