Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
responseprofile.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_RESPONSEPROFILE_H
31#define JELLYFIN_DTO_RESPONSEPROFILE_H
32
33#include <QJsonObject>
34#include <QJsonValue>
35#include <QList>
36#include <QString>
37#include <QStringList>
38#include <optional>
39
43
44namespace Jellyfin {
45// Forward declaration
46class ApiClient;
47}
48namespace Jellyfin {
49namespace DTO {
50
51
53public:
56 );
57
58 ResponseProfile(const ResponseProfile &other);
59
63 void replaceData(ResponseProfile &other);
64
65 static ResponseProfile fromJson(QJsonObject source);
66 void setFromJson(QJsonObject source);
67 QJsonObject toJson() const;
68
69 // Properties
70
71 QString container() const;
72
73 void setContainer(QString newContainer);
74 bool containerNull() const;
75 void setContainerNull();
76
77
78 QString audioCodec() const;
79
80 void setAudioCodec(QString newAudioCodec);
81 bool audioCodecNull() const;
82 void setAudioCodecNull();
83
84
85 QString videoCodec() const;
86
87 void setVideoCodec(QString newVideoCodec);
88 bool videoCodecNull() const;
89 void setVideoCodecNull();
90
91
92 DlnaProfileType type() const;
93
94 void setType(DlnaProfileType newType);
95
96
97 QString orgPn() const;
98
99 void setOrgPn(QString newOrgPn);
100 bool orgPnNull() const;
101 void setOrgPnNull();
102
103
104 QString mimeType() const;
105
106 void setMimeType(QString newMimeType);
107 bool mimeTypeNull() const;
108 void setMimeTypeNull();
109
110
112
113 void setConditions(QList<ProfileCondition> newConditions);
114 bool conditionsNull() const;
115 void setConditionsNull();
116
117
118protected:
119 QString m_container;
123 QString m_orgPn;
124 QString m_mimeType;
126
127private:
128 // Private constructor which generates an invalid object, for use withing ResponseProfile::fromJson();
130};
131
132
133} // NS DTO
134
135namespace Support {
136
138
139template <>
141
142template<>
144
145} // NS DTO
146} // NS Jellyfin
147
148#endif // JELLYFIN_DTO_RESPONSEPROFILE_H
Value
Definition dlnaprofiletype.h:49
Definition responseprofile.h:52
void setMimeType(QString newMimeType)
Definition responseprofile.cpp:179
QJsonObject toJson() const
Definition responseprofile.cpp:82
bool containerNull() const
Definition responseprofile.cpp:124
QString m_videoCodec
Definition responseprofile.h:121
void replaceData(ResponseProfile &other)
Definition responseprofile.cpp:54
QList< ProfileCondition > conditions() const
Definition responseprofile.cpp:190
DlnaProfileType type() const
Definition responseprofile.cpp:158
void setOrgPn(QString newOrgPn)
Definition responseprofile.cpp:166
void setContainer(QString newContainer)
Definition responseprofile.cpp:121
void setType(DlnaProfileType newType)
Definition responseprofile.cpp:160
bool orgPnNull() const
Definition responseprofile.cpp:169
bool conditionsNull() const
Definition responseprofile.cpp:195
void setVideoCodec(QString newVideoCodec)
Definition responseprofile.cpp:147
QString audioCodec() const
Definition responseprofile.cpp:132
void setConditions(QList< ProfileCondition > newConditions)
Definition responseprofile.cpp:192
QString orgPn() const
Definition responseprofile.cpp:164
bool audioCodecNull() const
Definition responseprofile.cpp:137
QString videoCodec() const
Definition responseprofile.cpp:145
void setContainerNull()
Definition responseprofile.cpp:128
QString mimeType() const
Definition responseprofile.cpp:177
QString m_container
Definition responseprofile.h:119
void setMimeTypeNull()
Definition responseprofile.cpp:186
QList< ProfileCondition > m_conditions
Definition responseprofile.h:125
static ResponseProfile fromJson(QJsonObject source)
Definition responseprofile.cpp:64
void setFromJson(QJsonObject source)
Definition responseprofile.cpp:71
bool videoCodecNull() const
Definition responseprofile.cpp:150
QString m_mimeType
Definition responseprofile.h:124
QString m_audioCodec
Definition responseprofile.h:120
void setConditionsNull()
Definition responseprofile.cpp:199
void setAudioCodecNull()
Definition responseprofile.cpp:141
DlnaProfileType m_type
Definition responseprofile.h:122
QString container() const
Definition responseprofile.cpp:119
void setVideoCodecNull()
Definition responseprofile.cpp:154
QString m_orgPn
Definition responseprofile.h:123
bool mimeTypeNull() const
Definition responseprofile.cpp:182
void setOrgPnNull()
Definition responseprofile.cpp:173
void setAudioCodec(QString newAudioCodec)
Definition responseprofile.cpp:134
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