Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
codecprofile.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_CODECPROFILE_H
31#define JELLYFIN_DTO_CODECPROFILE_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:
58 );
59
60 CodecProfile(const CodecProfile &other);
61
65 void replaceData(CodecProfile &other);
66
67 static CodecProfile fromJson(QJsonObject source);
68 void setFromJson(QJsonObject source);
69 QJsonObject toJson() const;
70
71 // Properties
72
73 CodecType type() const;
74
75 void setType(CodecType newType);
76
84 void setConditions(QList<ProfileCondition> newConditions);
85
93 void setApplyConditions(QList<ProfileCondition> newApplyConditions);
94
98 QString codec() const;
102 void setCodec(QString newCodec);
103 bool codecNull() const;
104 void setCodecNull();
105
109 QString container() const;
113 void setContainer(QString newContainer);
114 bool containerNull() const;
115 void setContainerNull();
116
120 QString subContainer() const;
124 void setSubContainer(QString newSubContainer);
125 bool subContainerNull() const;
126 void setSubContainerNull();
127
128
129protected:
133 QString m_codec;
134 QString m_container;
136
137private:
138 // Private constructor which generates an invalid object, for use withing CodecProfile::fromJson();
139 CodecProfile();
140};
141
142
143} // NS DTO
144
145namespace Support {
146
148
149template <>
150CodecProfile fromJsonValue(const QJsonValue &source, convertType<CodecProfile>);
151
152template<>
153QJsonValue toJsonValue(const CodecProfile &source, convertType<CodecProfile>);
154
155} // NS DTO
156} // NS Jellyfin
157
158#endif // JELLYFIN_DTO_CODECPROFILE_H
An Api client for Jellyfin. Handles requests and authentication.
Definition apiclient.h:90
Definition codecprofile.h:52
QString container() const
Gets or sets the container(s) which this profile will be applied to.
Definition codecprofile.cpp:138
bool subContainerNull() const
Definition codecprofile.cpp:156
QList< ProfileCondition > applyConditions() const
Gets or sets the list of MediaBrowser.Model.Dlna.ProfileCondition to apply if this profile is met.
Definition codecprofile.cpp:119
bool containerNull() const
Definition codecprofile.cpp:143
QList< ProfileCondition > conditions() const
Gets or sets the list of MediaBrowser.Model.Dlna.ProfileCondition which this profile must meet.
Definition codecprofile.cpp:113
QString subContainer() const
Gets or sets the sub-container(s) which this profile will be applied to.
Definition codecprofile.cpp:151
void setSubContainerNull()
Definition codecprofile.cpp:160
void setCodecNull()
Definition codecprofile.cpp:134
void setContainer(QString newContainer)
Gets or sets the container(s) which this profile will be applied to.
Definition codecprofile.cpp:140
QJsonObject toJson() const
Definition codecprofile.cpp:83
static CodecProfile fromJson(QJsonObject source)
Definition codecprofile.cpp:66
QString codec() const
Gets or sets the codec(s) that this profile applies to.
Definition codecprofile.cpp:125
QString m_subContainer
Definition codecprofile.h:135
void setContainerNull()
Definition codecprofile.cpp:147
void setCodec(QString newCodec)
Gets or sets the codec(s) that this profile applies to.
Definition codecprofile.cpp:127
QList< ProfileCondition > m_conditions
Definition codecprofile.h:131
void replaceData(CodecProfile &other)
Definition codecprofile.cpp:57
void setSubContainer(QString newSubContainer)
Gets or sets the sub-container(s) which this profile will be applied to.
Definition codecprofile.cpp:153
bool codecNull() const
Definition codecprofile.cpp:130
CodecProfile(CodecType type, QList< ProfileCondition > conditions, QList< ProfileCondition > applyConditions)
Definition codecprofile.cpp:36
void setConditions(QList< ProfileCondition > newConditions)
Gets or sets the list of MediaBrowser.Model.Dlna.ProfileCondition which this profile must meet.
Definition codecprofile.cpp:115
QList< ProfileCondition > m_applyConditions
Definition codecprofile.h:132
QString m_codec
Definition codecprofile.h:133
CodecType m_type
Definition codecprofile.h:130
void setFromJson(QJsonObject source)
Definition codecprofile.cpp:73
CodecType type() const
Definition codecprofile.cpp:107
void setApplyConditions(QList< ProfileCondition > newApplyConditions)
Gets or sets the list of MediaBrowser.Model.Dlna.ProfileCondition to apply if this profile is met.
Definition codecprofile.cpp:121
void setType(CodecType newType)
Definition codecprofile.cpp:109
QString m_container
Definition codecprofile.h:134
Definition mediaplayer2.h:20
Contains auto-generated Data Transfer Objects for the Jellyfin HTTP API.
CodecTypeClass::Value CodecType
Definition codectype.h:60
Definition accessschedule.h:128
Jellyfin::DTO::CodecProfile CodecProfile
Definition codecprofile.h:147
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