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
45
46namespace Jellyfin {
47// Forward declaration
48class ApiClient;
49}
50namespace Jellyfin {
51namespace DTO {
52
53
55public:
61 QSharedPointer<DeviceProfile> deviceProfile
62 );
63
65
70
71 static ClientCapabilitiesDto fromJson(QJsonObject source);
72 void setFromJson(QJsonObject source);
73 QJsonObject toJson() const;
74
75 // Properties
83 void setPlayableMediaTypes(QList<MediaType> newPlayableMediaTypes);
84
92 void setSupportedCommands(QList<GeneralCommandType> newSupportedCommands);
93
97 bool supportsMediaControl() const;
101 void setSupportsMediaControl(bool newSupportsMediaControl);
102
106 bool supportsPersistentIdentifier() const;
110 void setSupportsPersistentIdentifier(bool newSupportsPersistentIdentifier);
111
112
113 QSharedPointer<DeviceProfile> deviceProfile() const;
114
115 void setDeviceProfile(QSharedPointer<DeviceProfile> newDeviceProfile);
116
120 QString appStoreUrl() const;
124 void setAppStoreUrl(QString newAppStoreUrl);
125 bool appStoreUrlNull() const;
126 void setAppStoreUrlNull();
127
131 QString iconUrl() const;
135 void setIconUrl(QString newIconUrl);
136 bool iconUrlNull() const;
137 void setIconUrlNull();
138
139
140protected:
145 QSharedPointer<DeviceProfile> m_deviceProfile = QSharedPointer<DeviceProfile>();
147 QString m_iconUrl;
148
149private:
150 // Private constructor which generates an invalid object, for use withing ClientCapabilitiesDto::fromJson();
152};
153
154
155} // NS DTO
156
157namespace Support {
158
160
161template <>
163
164template<>
166
167} // NS DTO
168} // NS Jellyfin
169
170#endif // JELLYFIN_DTO_CLIENTCAPABILITIESDTO_H
An Api client for Jellyfin. Handles requests and authentication.
Definition apiclient.h:90
Definition clientcapabilitiesdto.h:54
bool iconUrlNull() const
Definition clientcapabilitiesdto.cpp:159
QString m_iconUrl
Definition clientcapabilitiesdto.h:147
bool m_supportsPersistentIdentifier
Definition clientcapabilitiesdto.h:144
void setSupportsMediaControl(bool newSupportsMediaControl)
Gets or sets a value indicating whether session supports media control.
Definition clientcapabilitiesdto.cpp:125
void setDeviceProfile(QSharedPointer< DeviceProfile > newDeviceProfile)
Definition clientcapabilitiesdto.cpp:137
QString appStoreUrl() const
Gets or sets the app store url.
Definition clientcapabilitiesdto.cpp:141
bool m_supportsMediaControl
Definition clientcapabilitiesdto.h:143
bool appStoreUrlNull() const
Definition clientcapabilitiesdto.cpp:146
QString m_appStoreUrl
Definition clientcapabilitiesdto.h:146
void setSupportsPersistentIdentifier(bool newSupportsPersistentIdentifier)
Gets or sets a value indicating whether session supports a persistent identifier.
Definition clientcapabilitiesdto.cpp:131
ClientCapabilitiesDto(QList< MediaType > playableMediaTypes, QList< GeneralCommandType > supportedCommands, bool supportsMediaControl, bool supportsPersistentIdentifier, QSharedPointer< DeviceProfile > deviceProfile)
Definition clientcapabilitiesdto.cpp:36
bool supportsMediaControl() const
Gets or sets a value indicating whether session supports media control.
Definition clientcapabilitiesdto.cpp:123
void setAppStoreUrl(QString newAppStoreUrl)
Gets or sets the app store url.
Definition clientcapabilitiesdto.cpp:143
void setSupportedCommands(QList< GeneralCommandType > newSupportedCommands)
Gets or sets the list of supported commands.
Definition clientcapabilitiesdto.cpp:119
QJsonObject toJson() const
Definition clientcapabilitiesdto.cpp:90
bool supportsPersistentIdentifier() const
Gets or sets a value indicating whether session supports a persistent identifier.
Definition clientcapabilitiesdto.cpp:129
void setIconUrl(QString newIconUrl)
Gets or sets the icon url.
Definition clientcapabilitiesdto.cpp:156
static ClientCapabilitiesDto fromJson(QJsonObject source)
Definition clientcapabilitiesdto.cpp:72
QList< GeneralCommandType > supportedCommands() const
Gets or sets the list of supported commands.
Definition clientcapabilitiesdto.cpp:117
QList< GeneralCommandType > m_supportedCommands
Definition clientcapabilitiesdto.h:142
QString iconUrl() const
Gets or sets the icon url.
Definition clientcapabilitiesdto.cpp:154
QSharedPointer< DeviceProfile > m_deviceProfile
Definition clientcapabilitiesdto.h:145
void setPlayableMediaTypes(QList< MediaType > newPlayableMediaTypes)
Gets or sets the list of playable media types.
Definition clientcapabilitiesdto.cpp:113
void setIconUrlNull()
Definition clientcapabilitiesdto.cpp:163
QList< MediaType > m_playableMediaTypes
Definition clientcapabilitiesdto.h:141
void setAppStoreUrlNull()
Definition clientcapabilitiesdto.cpp:150
void replaceData(ClientCapabilitiesDto &other)
Definition clientcapabilitiesdto.cpp:62
void setFromJson(QJsonObject source)
Definition clientcapabilitiesdto.cpp:79
QList< MediaType > playableMediaTypes() const
Gets or sets the list of playable media types.
Definition clientcapabilitiesdto.cpp:111
QSharedPointer< DeviceProfile > deviceProfile() const
Definition clientcapabilitiesdto.cpp:135
Definition mediaplayer2.h:20
Contains auto-generated Data Transfer Objects for the Jellyfin HTTP API.
Definition accessschedule.h:128
Jellyfin::DTO::ClientCapabilitiesDto ClientCapabilitiesDto
Definition clientcapabilitiesdto.h:159
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