Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
clientcapabilities.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_CLIENTCAPABILITIES_H
31#define JELLYFIN_DTO_CLIENTCAPABILITIES_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 ClientCapabilities fromJson(QJsonObject source);
71 void setFromJson(QJsonObject source);
72 QJsonObject toJson() const;
73
74 // Properties
75
76 QStringList playableMediaTypes() const;
77
78 void setPlayableMediaTypes(QStringList newPlayableMediaTypes);
79 bool playableMediaTypesNull() const;
81
82
84
85 void setSupportedCommands(QList<GeneralCommandType> newSupportedCommands);
86 bool supportedCommandsNull() const;
88
89
90 bool supportsMediaControl() const;
91
92 void setSupportsMediaControl(bool newSupportsMediaControl);
93
94
95 bool supportsContentUploading() const;
96
97 void setSupportsContentUploading(bool newSupportsContentUploading);
98
99
100 QString messageCallbackUrl() const;
101
102 void setMessageCallbackUrl(QString newMessageCallbackUrl);
103 bool messageCallbackUrlNull() const;
105
106
107 bool supportsPersistentIdentifier() const;
108
109 void setSupportsPersistentIdentifier(bool newSupportsPersistentIdentifier);
110
111
112 bool supportsSync() const;
113
114 void setSupportsSync(bool newSupportsSync);
115
116
117 QSharedPointer<DeviceProfile> deviceProfile() const;
118
119 void setDeviceProfile(QSharedPointer<DeviceProfile> newDeviceProfile);
120
121
122 QString appStoreUrl() const;
123
124 void setAppStoreUrl(QString newAppStoreUrl);
125 bool appStoreUrlNull() const;
126 void setAppStoreUrlNull();
127
128
129 QString iconUrl() const;
130
131 void setIconUrl(QString newIconUrl);
132 bool iconUrlNull() const;
133 void setIconUrlNull();
134
135
136protected:
144 QSharedPointer<DeviceProfile> m_deviceProfile = QSharedPointer<DeviceProfile>();
146 QString m_iconUrl;
147
148private:
149 // Private constructor which generates an invalid object, for use withing ClientCapabilities::fromJson();
151};
152
153
154} // NS DTO
155
156namespace Support {
157
159
160template <>
162
163template<>
165
166} // NS DTO
167} // NS Jellyfin
168
169#endif // JELLYFIN_DTO_CLIENTCAPABILITIES_H
Definition clientcapabilities.h:53
QStringList m_playableMediaTypes
Definition clientcapabilities.h:137
void setFromJson(QJsonObject source)
Definition clientcapabilities.cpp:85
bool m_supportsMediaControl
Definition clientcapabilities.h:139
bool m_supportsSync
Definition clientcapabilities.h:143
QString appStoreUrl() const
Definition clientcapabilities.cpp:204
void setDeviceProfile(QSharedPointer< DeviceProfile > newDeviceProfile)
Definition clientcapabilities.cpp:200
void setPlayableMediaTypes(QStringList newPlayableMediaTypes)
Definition clientcapabilities.cpp:137
bool supportsPersistentIdentifier() const
Definition clientcapabilities.cpp:186
void setSupportedCommands(QList< GeneralCommandType > newSupportedCommands)
Definition clientcapabilities.cpp:150
QSharedPointer< DeviceProfile > deviceProfile() const
Definition clientcapabilities.cpp:198
bool iconUrlNull() const
Definition clientcapabilities.cpp:222
void setAppStoreUrlNull()
Definition clientcapabilities.cpp:213
QString m_appStoreUrl
Definition clientcapabilities.h:145
bool supportsContentUploading() const
Definition clientcapabilities.cpp:167
void setPlayableMediaTypesNull()
Definition clientcapabilities.cpp:144
QString messageCallbackUrl() const
Definition clientcapabilities.cpp:173
void setSupportedCommandsNull()
Definition clientcapabilities.cpp:157
QSharedPointer< DeviceProfile > m_deviceProfile
Definition clientcapabilities.h:144
QList< GeneralCommandType > supportedCommands() const
Definition clientcapabilities.cpp:148
bool messageCallbackUrlNull() const
Definition clientcapabilities.cpp:178
void setSupportsSync(bool newSupportsSync)
Definition clientcapabilities.cpp:194
void setAppStoreUrl(QString newAppStoreUrl)
Definition clientcapabilities.cpp:206
bool supportsSync() const
Definition clientcapabilities.cpp:192
QStringList playableMediaTypes() const
Definition clientcapabilities.cpp:135
bool supportsMediaControl() const
Definition clientcapabilities.cpp:161
QString m_messageCallbackUrl
Definition clientcapabilities.h:141
QJsonObject toJson() const
Definition clientcapabilities.cpp:99
void replaceData(ClientCapabilities &other)
Definition clientcapabilities.cpp:65
bool supportedCommandsNull() const
Definition clientcapabilities.cpp:153
bool m_supportsPersistentIdentifier
Definition clientcapabilities.h:142
void setSupportsContentUploading(bool newSupportsContentUploading)
Definition clientcapabilities.cpp:169
QString m_iconUrl
Definition clientcapabilities.h:146
void setIconUrl(QString newIconUrl)
Definition clientcapabilities.cpp:219
void setSupportsPersistentIdentifier(bool newSupportsPersistentIdentifier)
Definition clientcapabilities.cpp:188
void setMessageCallbackUrlNull()
Definition clientcapabilities.cpp:182
bool m_supportsContentUploading
Definition clientcapabilities.h:140
void setSupportsMediaControl(bool newSupportsMediaControl)
Definition clientcapabilities.cpp:163
void setMessageCallbackUrl(QString newMessageCallbackUrl)
Definition clientcapabilities.cpp:175
QList< GeneralCommandType > m_supportedCommands
Definition clientcapabilities.h:138
static ClientCapabilities fromJson(QJsonObject source)
Definition clientcapabilities.cpp:78
QString iconUrl() const
Definition clientcapabilities.cpp:217
void setIconUrlNull()
Definition clientcapabilities.cpp:226
bool appStoreUrlNull() const
Definition clientcapabilities.cpp:209
bool playableMediaTypesNull() const
Definition clientcapabilities.cpp:140
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