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
44
45namespace Jellyfin {
46// Forward declaration
47class ApiClient;
48}
49namespace Jellyfin {
50namespace DTO {
51
52
54public:
57 QSharedPointer<LibraryOptions> libraryOptions
58 );
59
61
65 void replaceData(VirtualFolderInfo &other);
66
67 static VirtualFolderInfo fromJson(QJsonObject source);
68 void setFromJson(QJsonObject source);
69 QJsonObject toJson() const;
70
71 // Properties
75 QString name() const;
79 void setName(QString newName);
80 bool nameNull() const;
81 void setNameNull();
82
86 QStringList locations() const;
90 void setLocations(QStringList newLocations);
91 bool locationsNull() const;
92 void setLocationsNull();
93
94
96
97 void setCollectionType(CollectionTypeOptions newCollectionType);
98
99
100 QSharedPointer<LibraryOptions> libraryOptions() const;
101
102 void setLibraryOptions(QSharedPointer<LibraryOptions> newLibraryOptions);
103
107 QString itemId() const;
111 void setItemId(QString newItemId);
112 bool itemIdNull() const;
113 void setItemIdNull();
114
118 QString primaryImageItemId() const;
122 void setPrimaryImageItemId(QString newPrimaryImageItemId);
123 bool primaryImageItemIdNull() const;
125
126
127 std::optional<double> refreshProgress() const;
128
129 void setRefreshProgress(std::optional<double> newRefreshProgress);
130 bool refreshProgressNull() const;
132
133
134 QString refreshStatus() const;
135
136 void setRefreshStatus(QString newRefreshStatus);
137 bool refreshStatusNull() const;
139
140
141protected:
142 QString m_name;
143 QStringList m_locations;
145 QSharedPointer<LibraryOptions> m_libraryOptions = QSharedPointer<LibraryOptions>();
146 QString m_itemId;
148 std::optional<double> m_refreshProgress = std::nullopt;
150
151private:
152 // Private constructor which generates an invalid object, for use withing VirtualFolderInfo::fromJson();
154};
155
156
157} // NS DTO
158
159namespace Support {
160
162
163template <>
165
166template<>
168
169} // NS DTO
170} // NS Jellyfin
171
172#endif // JELLYFIN_DTO_VIRTUALFOLDERINFO_H
An Api client for Jellyfin. Handles requests and authentication.
Definition apiclient.h:90
Definition virtualfolderinfo.h:53
QStringList locations() const
Gets or sets the locations.
Definition virtualfolderinfo.cpp:138
void setCollectionType(CollectionTypeOptions newCollectionType)
Definition virtualfolderinfo.cpp:153
CollectionTypeOptions collectionType() const
Definition virtualfolderinfo.cpp:151
void setRefreshProgress(std::optional< double > newRefreshProgress)
Definition virtualfolderinfo.cpp:191
void setPrimaryImageItemId(QString newPrimaryImageItemId)
Gets or sets the primary image item identifier.
Definition virtualfolderinfo.cpp:178
QString itemId() const
Gets or sets the item identifier.
Definition virtualfolderinfo.cpp:163
void setName(QString newName)
Gets or sets the name.
Definition virtualfolderinfo.cpp:127
void setPrimaryImageItemIdNull()
Definition virtualfolderinfo.cpp:185
static VirtualFolderInfo fromJson(QJsonObject source)
Definition virtualfolderinfo.cpp:68
bool primaryImageItemIdNull() const
Definition virtualfolderinfo.cpp:181
QJsonObject toJson() const
Definition virtualfolderinfo.cpp:87
QString primaryImageItemId() const
Gets or sets the primary image item identifier.
Definition virtualfolderinfo.cpp:176
void setNameNull()
Definition virtualfolderinfo.cpp:134
CollectionTypeOptions m_collectionType
Definition virtualfolderinfo.h:144
QString refreshStatus() const
Definition virtualfolderinfo.cpp:202
bool refreshStatusNull() const
Definition virtualfolderinfo.cpp:207
QString m_refreshStatus
Definition virtualfolderinfo.h:149
void setFromJson(QJsonObject source)
Definition virtualfolderinfo.cpp:75
QString m_primaryImageItemId
Definition virtualfolderinfo.h:147
void setRefreshProgressNull()
Definition virtualfolderinfo.cpp:198
void setLibraryOptions(QSharedPointer< LibraryOptions > newLibraryOptions)
Definition virtualfolderinfo.cpp:159
std::optional< double > refreshProgress() const
Definition virtualfolderinfo.cpp:189
bool nameNull() const
Definition virtualfolderinfo.cpp:130
std::optional< double > m_refreshProgress
Definition virtualfolderinfo.h:148
QString m_name
Definition virtualfolderinfo.h:142
bool itemIdNull() const
Definition virtualfolderinfo.cpp:168
void setItemId(QString newItemId)
Gets or sets the item identifier.
Definition virtualfolderinfo.cpp:165
QStringList m_locations
Definition virtualfolderinfo.h:143
bool refreshProgressNull() const
Definition virtualfolderinfo.cpp:194
void setItemIdNull()
Definition virtualfolderinfo.cpp:172
void setLocations(QStringList newLocations)
Gets or sets the locations.
Definition virtualfolderinfo.cpp:140
void setLocationsNull()
Definition virtualfolderinfo.cpp:147
QSharedPointer< LibraryOptions > libraryOptions() const
Definition virtualfolderinfo.cpp:157
QString name() const
Gets or sets the name.
Definition virtualfolderinfo.cpp:125
void replaceData(VirtualFolderInfo &other)
Definition virtualfolderinfo.cpp:57
bool locationsNull() const
Definition virtualfolderinfo.cpp:143
QSharedPointer< LibraryOptions > m_libraryOptions
Definition virtualfolderinfo.h:145
VirtualFolderInfo(CollectionTypeOptions collectionType, QSharedPointer< LibraryOptions > libraryOptions)
Definition virtualfolderinfo.cpp:36
void setRefreshStatus(QString newRefreshStatus)
Definition virtualfolderinfo.cpp:204
void setRefreshStatusNull()
Definition virtualfolderinfo.cpp:211
QString m_itemId
Definition virtualfolderinfo.h:146
Contains auto-generated Data Transfer Objects for the Jellyfin HTTP API.
CollectionTypeOptionsClass::Value CollectionTypeOptions
Definition collectiontypeoptions.h:65
Definition accessschedule.h:128
Jellyfin::DTO::VirtualFolderInfo VirtualFolderInfo
Definition virtualfolderinfo.h:161
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