Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
mediaattachment.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_MEDIAATTACHMENT_H
31#define JELLYFIN_DTO_MEDIAATTACHMENT_H
32
33#include <QJsonObject>
34#include <QJsonValue>
35#include <QString>
36#include <optional>
37
39
40namespace Jellyfin {
41// Forward declaration
42class ApiClient;
43}
44namespace Jellyfin {
45namespace DTO {
46
47
49public:
51 qint32 index
52 );
53
54 MediaAttachment(const MediaAttachment &other);
55
59 void replaceData(MediaAttachment &other);
60
61 static MediaAttachment fromJson(QJsonObject source);
62 void setFromJson(QJsonObject source);
63 QJsonObject toJson() const;
64
65 // Properties
69 QString codec() const;
73 void setCodec(QString newCodec);
74 bool codecNull() const;
75 void setCodecNull();
76
80 QString codecTag() const;
84 void setCodecTag(QString newCodecTag);
85 bool codecTagNull() const;
86 void setCodecTagNull();
87
91 QString comment() const;
95 void setComment(QString newComment);
96 bool commentNull() const;
97 void setCommentNull();
98
102 qint32 index() const;
106 void setIndex(qint32 newIndex);
107
111 QString fileName() const;
115 void setFileName(QString newFileName);
116 bool fileNameNull() const;
117 void setFileNameNull();
118
122 QString mimeType() const;
126 void setMimeType(QString newMimeType);
127 bool mimeTypeNull() const;
128 void setMimeTypeNull();
129
133 QString deliveryUrl() const;
137 void setDeliveryUrl(QString newDeliveryUrl);
138 bool deliveryUrlNull() const;
139 void setDeliveryUrlNull();
140
141
142protected:
143 QString m_codec;
144 QString m_codecTag;
145 QString m_comment;
146 qint32 m_index;
147 QString m_fileName;
148 QString m_mimeType;
150
151private:
152 // Private constructor which generates an invalid object, for use withing MediaAttachment::fromJson();
154};
155
156
157} // NS DTO
158
159namespace Support {
160
162
163template <>
165
166template<>
168
169} // NS DTO
170} // NS Jellyfin
171
172#endif // JELLYFIN_DTO_MEDIAATTACHMENT_H
Definition mediaattachment.h:48
void setCodecTagNull()
Definition mediaattachment.cpp:141
bool commentNull() const
Definition mediaattachment.cpp:150
void setMimeTypeNull()
Definition mediaattachment.cpp:186
QString m_comment
Definition mediaattachment.h:145
QString m_mimeType
Definition mediaattachment.h:148
void setFileNameNull()
Definition mediaattachment.cpp:173
void setComment(QString newComment)
Gets or sets the comment.
Definition mediaattachment.cpp:147
bool codecTagNull() const
Definition mediaattachment.cpp:137
void setFromJson(QJsonObject source)
Definition mediaattachment.cpp:71
QString mimeType() const
Gets or sets the MIME type.
Definition mediaattachment.cpp:177
QString fileName() const
Gets or sets the filename.
Definition mediaattachment.cpp:164
bool codecNull() const
Definition mediaattachment.cpp:124
bool fileNameNull() const
Definition mediaattachment.cpp:169
QString deliveryUrl() const
Gets or sets the delivery URL.
Definition mediaattachment.cpp:190
qint32 m_index
Definition mediaattachment.h:146
void setFileName(QString newFileName)
Gets or sets the filename.
Definition mediaattachment.cpp:166
void setCodecTag(QString newCodecTag)
Gets or sets the codec tag.
Definition mediaattachment.cpp:134
bool mimeTypeNull() const
Definition mediaattachment.cpp:182
QString codec() const
Gets or sets the codec.
Definition mediaattachment.cpp:119
void replaceData(MediaAttachment &other)
Definition mediaattachment.cpp:54
void setDeliveryUrlNull()
Definition mediaattachment.cpp:199
void setDeliveryUrl(QString newDeliveryUrl)
Gets or sets the delivery URL.
Definition mediaattachment.cpp:192
QString m_codec
Definition mediaattachment.h:143
void setIndex(qint32 newIndex)
Gets or sets the index.
Definition mediaattachment.cpp:160
QString m_deliveryUrl
Definition mediaattachment.h:149
void setMimeType(QString newMimeType)
Gets or sets the MIME type.
Definition mediaattachment.cpp:179
QString comment() const
Gets or sets the comment.
Definition mediaattachment.cpp:145
void setCommentNull()
Definition mediaattachment.cpp:154
static MediaAttachment fromJson(QJsonObject source)
Definition mediaattachment.cpp:64
QString codecTag() const
Gets or sets the codec tag.
Definition mediaattachment.cpp:132
QString m_codecTag
Definition mediaattachment.h:144
qint32 index() const
Gets or sets the index.
Definition mediaattachment.cpp:158
void setCodec(QString newCodec)
Gets or sets the codec.
Definition mediaattachment.cpp:121
bool deliveryUrlNull() const
Definition mediaattachment.cpp:195
void setCodecNull()
Definition mediaattachment.cpp:128
QJsonObject toJson() const
Definition mediaattachment.cpp:82
QString m_fileName
Definition mediaattachment.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