Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
clientcapabilitiesdto.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_CLIENTCAPABILITIESDTO_H
31#define JELLYFIN_DTO_CLIENTCAPABILITIESDTO_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:
59 bool supportsSync,
60 QSharedPointer<DeviceProfile> deviceProfile
61 );
62
64
69
70 static ClientCapabilitiesDto fromJson(QJsonObject source);
71 void setFromJson(QJsonObject source);
72 QJsonObject toJson() const;
73
74 // Properties
78 QStringList playableMediaTypes() const;
82 void setPlayableMediaTypes(QStringList newPlayableMediaTypes);
83 bool playableMediaTypesNull() const;
85
93 void setSupportedCommands(QList<GeneralCommandType> newSupportedCommands);
94 bool supportedCommandsNull() const;
96
100 bool supportsMediaControl() const;
104 void setSupportsMediaControl(bool newSupportsMediaControl);
105
109 bool supportsContentUploading() const;
113 void setSupportsContentUploading(bool newSupportsContentUploading);
114
118 QString messageCallbackUrl() const;
122 void setMessageCallbackUrl(QString newMessageCallbackUrl);
123 bool messageCallbackUrlNull() const;
125
129 bool supportsPersistentIdentifier() const;
133 void setSupportsPersistentIdentifier(bool newSupportsPersistentIdentifier);
134
138 bool supportsSync() const;
142 void setSupportsSync(bool newSupportsSync);
143
144
145 QSharedPointer<DeviceProfile> deviceProfile() const;
146
147 void setDeviceProfile(QSharedPointer<DeviceProfile> newDeviceProfile);
148
152 QString appStoreUrl() const;
156 void setAppStoreUrl(QString newAppStoreUrl);
157 bool appStoreUrlNull() const;
158 void setAppStoreUrlNull();
159
163 QString iconUrl() const;
167 void setIconUrl(QString newIconUrl);
168 bool iconUrlNull() const;
169 void setIconUrlNull();
170
171
172protected:
180 QSharedPointer<DeviceProfile> m_deviceProfile = QSharedPointer<DeviceProfile>();
182 QString m_iconUrl;
183
184private:
185 // Private constructor which generates an invalid object, for use withing ClientCapabilitiesDto::fromJson();
187};
188
189
190} // NS DTO
191
192namespace Support {
193
195
196template <>
198
199template<>
201
202} // NS DTO
203} // NS Jellyfin
204
205#endif // JELLYFIN_DTO_CLIENTCAPABILITIESDTO_H
Definition clientcapabilitiesdto.h:53
bool iconUrlNull() const
Definition clientcapabilitiesdto.cpp:222
void setPlayableMediaTypesNull()
Definition clientcapabilitiesdto.cpp:144
QString m_iconUrl
Definition clientcapabilitiesdto.h:182
bool m_supportsPersistentIdentifier
Definition clientcapabilitiesdto.h:178
void setSupportsMediaControl(bool newSupportsMediaControl)
Gets or sets a value indicating whether session supports media control.
Definition clientcapabilitiesdto.cpp:163
void setDeviceProfile(QSharedPointer< DeviceProfile > newDeviceProfile)
Definition clientcapabilitiesdto.cpp:200
QString appStoreUrl() const
Gets or sets the app store url.
Definition clientcapabilitiesdto.cpp:204
bool m_supportsMediaControl
Definition clientcapabilitiesdto.h:175
bool appStoreUrlNull() const
Definition clientcapabilitiesdto.cpp:209
QString m_appStoreUrl
Definition clientcapabilitiesdto.h:181
void setSupportsPersistentIdentifier(bool newSupportsPersistentIdentifier)
Gets or sets a value indicating whether session supports a persistent identifier.
Definition clientcapabilitiesdto.cpp:188
void setSupportsContentUploading(bool newSupportsContentUploading)
Gets or sets a value indicating whether session supports content uploading.
Definition clientcapabilitiesdto.cpp:169
QStringList playableMediaTypes() const
Gets or sets the list of playable media types.
Definition clientcapabilitiesdto.cpp:135
bool supportedCommandsNull() const
Definition clientcapabilitiesdto.cpp:153
bool supportsMediaControl() const
Gets or sets a value indicating whether session supports media control.
Definition clientcapabilitiesdto.cpp:161
void setAppStoreUrl(QString newAppStoreUrl)
Gets or sets the app store url.
Definition clientcapabilitiesdto.cpp:206
QString m_messageCallbackUrl
Definition clientcapabilitiesdto.h:177
void setSupportedCommandsNull()
Definition clientcapabilitiesdto.cpp:157
void setSupportedCommands(QList< GeneralCommandType > newSupportedCommands)
Gets or sets the list of supported commands.
Definition clientcapabilitiesdto.cpp:150
QJsonObject toJson() const
Definition clientcapabilitiesdto.cpp:99
QString messageCallbackUrl() const
Gets or sets the message callback url.
Definition clientcapabilitiesdto.cpp:173
void setPlayableMediaTypes(QStringList newPlayableMediaTypes)
Gets or sets the list of playable media types.
Definition clientcapabilitiesdto.cpp:137
void setMessageCallbackUrlNull()
Definition clientcapabilitiesdto.cpp:182
bool supportsPersistentIdentifier() const
Gets or sets a value indicating whether session supports a persistent identifier.
Definition clientcapabilitiesdto.cpp:186
void setIconUrl(QString newIconUrl)
Gets or sets the icon url.
Definition clientcapabilitiesdto.cpp:219
static ClientCapabilitiesDto fromJson(QJsonObject source)
Definition clientcapabilitiesdto.cpp:78
QList< GeneralCommandType > supportedCommands() const
Gets or sets the list of supported commands.
Definition clientcapabilitiesdto.cpp:148
bool supportsSync() const
Gets or sets a value indicating whether session supports sync.
Definition clientcapabilitiesdto.cpp:192
QList< GeneralCommandType > m_supportedCommands
Definition clientcapabilitiesdto.h:174
QString iconUrl() const
Gets or sets the icon url.
Definition clientcapabilitiesdto.cpp:217
QSharedPointer< DeviceProfile > m_deviceProfile
Definition clientcapabilitiesdto.h:180
bool supportsContentUploading() const
Gets or sets a value indicating whether session supports content uploading.
Definition clientcapabilitiesdto.cpp:167
void setSupportsSync(bool newSupportsSync)
Gets or sets a value indicating whether session supports sync.
Definition clientcapabilitiesdto.cpp:194
void setIconUrlNull()
Definition clientcapabilitiesdto.cpp:226
bool m_supportsContentUploading
Definition clientcapabilitiesdto.h:176
void setAppStoreUrlNull()
Definition clientcapabilitiesdto.cpp:213
void replaceData(ClientCapabilitiesDto &other)
Definition clientcapabilitiesdto.cpp:65
void setFromJson(QJsonObject source)
Definition clientcapabilitiesdto.cpp:85
QStringList m_playableMediaTypes
Definition clientcapabilitiesdto.h:173
bool playableMediaTypesNull() const
Definition clientcapabilitiesdto.cpp:140
bool messageCallbackUrlNull() const
Definition clientcapabilitiesdto.cpp:178
QSharedPointer< DeviceProfile > deviceProfile() const
Definition clientcapabilitiesdto.cpp:198
void setMessageCallbackUrl(QString newMessageCallbackUrl)
Gets or sets the message callback url.
Definition clientcapabilitiesdto.cpp:175
bool m_supportsSync
Definition clientcapabilitiesdto.h:179
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