Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
subtitleprofile.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_SUBTITLEPROFILE_H
31#define JELLYFIN_DTO_SUBTITLEPROFILE_H
32
33#include <QJsonObject>
34#include <QJsonValue>
35#include <QString>
36#include <optional>
37
40
41namespace Jellyfin {
42// Forward declaration
43class ApiClient;
44}
45namespace Jellyfin {
46namespace DTO {
47
48
50public:
53 );
54
55 SubtitleProfile(const SubtitleProfile &other);
56
60 void replaceData(SubtitleProfile &other);
61
62 static SubtitleProfile fromJson(QJsonObject source);
63 void setFromJson(QJsonObject source);
64 QJsonObject toJson() const;
65
66 // Properties
67
68 QString format() const;
69
70 void setFormat(QString newFormat);
71 bool formatNull() const;
72 void setFormatNull();
73
74
76
77 void setMethod(SubtitleDeliveryMethod newMethod);
78
79
80 QString didlMode() const;
81
82 void setDidlMode(QString newDidlMode);
83 bool didlModeNull() const;
84 void setDidlModeNull();
85
86
87 QString language() const;
88
89 void setLanguage(QString newLanguage);
90 bool languageNull() const;
91 void setLanguageNull();
92
93
94 QString container() const;
95
96 void setContainer(QString newContainer);
97 bool containerNull() const;
98 void setContainerNull();
99
100
101protected:
102 QString m_format;
104 QString m_didlMode;
105 QString m_language;
106 QString m_container;
107
108private:
109 // Private constructor which generates an invalid object, for use withing SubtitleProfile::fromJson();
111};
112
113
114} // NS DTO
115
116namespace Support {
117
119
120template <>
122
123template<>
125
126} // NS DTO
127} // NS Jellyfin
128
129#endif // JELLYFIN_DTO_SUBTITLEPROFILE_H
Value
Definition subtitledeliverymethod.h:49
Definition subtitleprofile.h:49
void setDidlModeNull()
Definition subtitleprofile.cpp:131
bool didlModeNull() const
Definition subtitleprofile.cpp:127
void setContainer(QString newContainer)
Definition subtitleprofile.cpp:150
void setMethod(SubtitleDeliveryMethod newMethod)
Definition subtitleprofile.cpp:118
void setFormat(QString newFormat)
Definition subtitleprofile.cpp:105
void setLanguageNull()
Definition subtitleprofile.cpp:144
void setFormatNull()
Definition subtitleprofile.cpp:112
QString m_format
Definition subtitleprofile.h:102
QString language() const
Definition subtitleprofile.cpp:135
bool containerNull() const
Definition subtitleprofile.cpp:153
QString m_container
Definition subtitleprofile.h:106
QJsonObject toJson() const
Definition subtitleprofile.cpp:76
QString format() const
Definition subtitleprofile.cpp:103
void setLanguage(QString newLanguage)
Definition subtitleprofile.cpp:137
static SubtitleProfile fromJson(QJsonObject source)
Definition subtitleprofile.cpp:60
void setFromJson(QJsonObject source)
Definition subtitleprofile.cpp:67
SubtitleDeliveryMethod m_method
Definition subtitleprofile.h:103
void setDidlMode(QString newDidlMode)
Definition subtitleprofile.cpp:124
QString m_language
Definition subtitleprofile.h:105
bool languageNull() const
Definition subtitleprofile.cpp:140
QString m_didlMode
Definition subtitleprofile.h:104
bool formatNull() const
Definition subtitleprofile.cpp:108
void replaceData(SubtitleProfile &other)
Definition subtitleprofile.cpp:52
QString container() const
Definition subtitleprofile.cpp:148
QString didlMode() const
Definition subtitleprofile.cpp:122
SubtitleDeliveryMethod method() const
Definition subtitleprofile.cpp:116
void setContainerNull()
Definition subtitleprofile.cpp:157
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