Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
remoteimageresult.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_REMOTEIMAGERESULT_H
31#define JELLYFIN_DTO_REMOTEIMAGERESULT_H
32
33#include <QJsonObject>
34#include <QJsonValue>
35#include <QList>
36#include <QStringList>
37#include <optional>
38
41
42namespace Jellyfin {
43// Forward declaration
44class ApiClient;
45}
46namespace Jellyfin {
47namespace DTO {
48
49
51public:
53 qint32 totalRecordCount
54 );
55
57
61 void replaceData(RemoteImageResult &other);
62
63 static RemoteImageResult fromJson(QJsonObject source);
64 void setFromJson(QJsonObject source);
65 QJsonObject toJson() const;
66
67 // Properties
75 void setImages(QList<RemoteImageInfo> newImages);
76 bool imagesNull() const;
77 void setImagesNull();
78
82 qint32 totalRecordCount() const;
86 void setTotalRecordCount(qint32 newTotalRecordCount);
87
91 QStringList providers() const;
95 void setProviders(QStringList newProviders);
96 bool providersNull() const;
97 void setProvidersNull();
98
99
100protected:
103 QStringList m_providers;
104
105private:
106 // Private constructor which generates an invalid object, for use withing RemoteImageResult::fromJson();
108};
109
110
111} // NS DTO
112
113namespace Support {
114
116
117template <>
119
120template<>
122
123} // NS DTO
124} // NS Jellyfin
125
126#endif // JELLYFIN_DTO_REMOTEIMAGERESULT_H
Definition remoteimageresult.h:50
QStringList m_providers
Definition remoteimageresult.h:103
qint32 totalRecordCount() const
Gets or sets the total record count.
Definition remoteimageresult.cpp:100
static RemoteImageResult fromJson(QJsonObject source)
Definition remoteimageresult.cpp:56
void replaceData(RemoteImageResult &other)
Definition remoteimageresult.cpp:50
QStringList providers() const
Gets or sets the providers.
Definition remoteimageresult.cpp:106
void setImages(QList< RemoteImageInfo > newImages)
Gets or sets the images.
Definition remoteimageresult.cpp:89
QJsonObject toJson() const
Definition remoteimageresult.cpp:70
bool imagesNull() const
Definition remoteimageresult.cpp:92
void setFromJson(QJsonObject source)
Definition remoteimageresult.cpp:63
QList< RemoteImageInfo > images() const
Gets or sets the images.
Definition remoteimageresult.cpp:87
void setTotalRecordCount(qint32 newTotalRecordCount)
Gets or sets the total record count.
Definition remoteimageresult.cpp:102
QList< RemoteImageInfo > m_images
Definition remoteimageresult.h:101
void setProviders(QStringList newProviders)
Gets or sets the providers.
Definition remoteimageresult.cpp:108
bool providersNull() const
Definition remoteimageresult.cpp:111
void setProvidersNull()
Definition remoteimageresult.cpp:115
void setImagesNull()
Definition remoteimageresult.cpp:96
qint32 m_totalRecordCount
Definition remoteimageresult.h:102
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