Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
remotesubtitleinfo.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_REMOTESUBTITLEINFO_H
31#define JELLYFIN_DTO_REMOTESUBTITLEINFO_H
32
33#include <QDateTime>
34#include <QJsonObject>
35#include <QJsonValue>
36#include <QString>
37#include <optional>
38
40
41namespace Jellyfin {
42// Forward declaration
43class ApiClient;
44}
45namespace Jellyfin {
46namespace DTO {
47
48
50public: RemoteSubtitleInfo();
52
57
58 static RemoteSubtitleInfo fromJson(QJsonObject source);
59 void setFromJson(QJsonObject source);
60 QJsonObject toJson() const;
61
62 // Properties
63
64 QString threeLetterISOLanguageName() const;
65
66 void setThreeLetterISOLanguageName(QString newThreeLetterISOLanguageName);
69
70
71 QString jellyfinId() const;
72
73 void setJellyfinId(QString newJellyfinId);
74 bool jellyfinIdNull() const;
75 void setJellyfinIdNull();
76
77
78 QString providerName() const;
79
80 void setProviderName(QString newProviderName);
81 bool providerNameNull() const;
83
84
85 QString name() const;
86
87 void setName(QString newName);
88 bool nameNull() const;
89 void setNameNull();
90
91
92 QString format() const;
93
94 void setFormat(QString newFormat);
95 bool formatNull() const;
96 void setFormatNull();
97
98
99 QString author() const;
100
101 void setAuthor(QString newAuthor);
102 bool authorNull() const;
103 void setAuthorNull();
104
105
106 QString comment() const;
107
108 void setComment(QString newComment);
109 bool commentNull() const;
110 void setCommentNull();
111
112
113 QDateTime dateCreated() const;
114
115 void setDateCreated(QDateTime newDateCreated);
116 bool dateCreatedNull() const;
117 void setDateCreatedNull();
118
119
120 std::optional<float> communityRating() const;
121
122 void setCommunityRating(std::optional<float> newCommunityRating);
123 bool communityRatingNull() const;
125
126
127 std::optional<float> frameRate() const;
128
129 void setFrameRate(std::optional<float> newFrameRate);
130 bool frameRateNull() const;
131 void setFrameRateNull();
132
133
134 std::optional<qint32> downloadCount() const;
135
136 void setDownloadCount(std::optional<qint32> newDownloadCount);
137 bool downloadCountNull() const;
139
140
141 std::optional<bool> isHashMatch() const;
142
143 void setIsHashMatch(std::optional<bool> newIsHashMatch);
144 bool isHashMatchNull() const;
145 void setIsHashMatchNull();
146
147
148 std::optional<bool> aiTranslated() const;
149
150 void setAiTranslated(std::optional<bool> newAiTranslated);
151 bool aiTranslatedNull() const;
152 void setAiTranslatedNull();
153
154
155 std::optional<bool> machineTranslated() const;
156
157 void setMachineTranslated(std::optional<bool> newMachineTranslated);
158 bool machineTranslatedNull() const;
160
161
162 std::optional<bool> forced() const;
163
164 void setForced(std::optional<bool> newForced);
165 bool forcedNull() const;
166 void setForcedNull();
167
168
169 std::optional<bool> hearingImpaired() const;
170
171 void setHearingImpaired(std::optional<bool> newHearingImpaired);
172 bool hearingImpairedNull() const;
174
175
176protected:
180 QString m_name;
181 QString m_format;
182 QString m_author;
183 QString m_comment;
184 QDateTime m_dateCreated;
185 std::optional<float> m_communityRating = std::nullopt;
186 std::optional<float> m_frameRate = std::nullopt;
187 std::optional<qint32> m_downloadCount = std::nullopt;
188 std::optional<bool> m_isHashMatch = std::nullopt;
189 std::optional<bool> m_aiTranslated = std::nullopt;
190 std::optional<bool> m_machineTranslated = std::nullopt;
191 std::optional<bool> m_forced = std::nullopt;
192 std::optional<bool> m_hearingImpaired = std::nullopt;
193
194
195};
196
197
198} // NS DTO
199
200namespace Support {
201
203
204template <>
206
207template<>
209
210} // NS DTO
211} // NS Jellyfin
212
213#endif // JELLYFIN_DTO_REMOTESUBTITLEINFO_H
An Api client for Jellyfin. Handles requests and authentication.
Definition apiclient.h:90
Definition remotesubtitleinfo.h:49
void setThreeLetterISOLanguageNameNull()
Definition remotesubtitleinfo.cpp:198
QString m_comment
Definition remotesubtitleinfo.h:183
void setComment(QString newComment)
Definition remotesubtitleinfo.cpp:269
std::optional< bool > m_isHashMatch
Definition remotesubtitleinfo.h:188
void setName(QString newName)
Definition remotesubtitleinfo.cpp:230
std::optional< bool > m_forced
Definition remotesubtitleinfo.h:191
std::optional< bool > forced() const
Definition remotesubtitleinfo.cpp:371
std::optional< float > frameRate() const
Definition remotesubtitleinfo.cpp:306
void setMachineTranslated(std::optional< bool > newMachineTranslated)
Definition remotesubtitleinfo.cpp:360
QString format() const
Definition remotesubtitleinfo.cpp:241
std::optional< bool > m_hearingImpaired
Definition remotesubtitleinfo.h:192
QString jellyfinId() const
Definition remotesubtitleinfo.cpp:202
bool nameNull() const
Definition remotesubtitleinfo.cpp:233
QString author() const
Definition remotesubtitleinfo.cpp:254
std::optional< bool > aiTranslated() const
Definition remotesubtitleinfo.cpp:345
QString threeLetterISOLanguageName() const
Definition remotesubtitleinfo.cpp:189
void setAuthor(QString newAuthor)
Definition remotesubtitleinfo.cpp:256
std::optional< float > m_frameRate
Definition remotesubtitleinfo.h:186
std::optional< bool > m_aiTranslated
Definition remotesubtitleinfo.h:189
bool forcedNull() const
Definition remotesubtitleinfo.cpp:376
RemoteSubtitleInfo()
Definition remotesubtitleinfo.cpp:35
bool dateCreatedNull() const
Definition remotesubtitleinfo.cpp:285
QDateTime dateCreated() const
Definition remotesubtitleinfo.cpp:280
QString name() const
Definition remotesubtitleinfo.cpp:228
void setDateCreated(QDateTime newDateCreated)
Definition remotesubtitleinfo.cpp:282
void setFormat(QString newFormat)
Definition remotesubtitleinfo.cpp:243
void setMachineTranslatedNull()
Definition remotesubtitleinfo.cpp:367
void setFrameRate(std::optional< float > newFrameRate)
Definition remotesubtitleinfo.cpp:308
void setDateCreatedNull()
Definition remotesubtitleinfo.cpp:289
void setProviderNameNull()
Definition remotesubtitleinfo.cpp:224
std::optional< bool > hearingImpaired() const
Definition remotesubtitleinfo.cpp:384
bool jellyfinIdNull() const
Definition remotesubtitleinfo.cpp:207
std::optional< bool > machineTranslated() const
Definition remotesubtitleinfo.cpp:358
void setAiTranslated(std::optional< bool > newAiTranslated)
Definition remotesubtitleinfo.cpp:347
void setJellyfinIdNull()
Definition remotesubtitleinfo.cpp:211
void setThreeLetterISOLanguageName(QString newThreeLetterISOLanguageName)
Definition remotesubtitleinfo.cpp:191
std::optional< qint32 > downloadCount() const
Definition remotesubtitleinfo.cpp:319
QString m_name
Definition remotesubtitleinfo.h:180
QString comment() const
Definition remotesubtitleinfo.cpp:267
bool hearingImpairedNull() const
Definition remotesubtitleinfo.cpp:389
bool machineTranslatedNull() const
Definition remotesubtitleinfo.cpp:363
void setFrameRateNull()
Definition remotesubtitleinfo.cpp:315
void setIsHashMatch(std::optional< bool > newIsHashMatch)
Definition remotesubtitleinfo.cpp:334
void setForced(std::optional< bool > newForced)
Definition remotesubtitleinfo.cpp:373
QJsonObject toJson() const
Definition remotesubtitleinfo.cpp:103
bool communityRatingNull() const
Definition remotesubtitleinfo.cpp:298
void setCommunityRatingNull()
Definition remotesubtitleinfo.cpp:302
QString m_format
Definition remotesubtitleinfo.h:181
bool isHashMatchNull() const
Definition remotesubtitleinfo.cpp:337
void setForcedNull()
Definition remotesubtitleinfo.cpp:380
QDateTime m_dateCreated
Definition remotesubtitleinfo.h:184
bool frameRateNull() const
Definition remotesubtitleinfo.cpp:311
void setFormatNull()
Definition remotesubtitleinfo.cpp:250
void setCommentNull()
Definition remotesubtitleinfo.cpp:276
bool commentNull() const
Definition remotesubtitleinfo.cpp:272
std::optional< qint32 > m_downloadCount
Definition remotesubtitleinfo.h:187
std::optional< float > m_communityRating
Definition remotesubtitleinfo.h:185
void setJellyfinId(QString newJellyfinId)
Definition remotesubtitleinfo.cpp:204
std::optional< bool > m_machineTranslated
Definition remotesubtitleinfo.h:190
QString m_jellyfinId
Definition remotesubtitleinfo.h:178
std::optional< float > communityRating() const
Definition remotesubtitleinfo.cpp:293
void setAuthorNull()
Definition remotesubtitleinfo.cpp:263
bool providerNameNull() const
Definition remotesubtitleinfo.cpp:220
void setDownloadCount(std::optional< qint32 > newDownloadCount)
Definition remotesubtitleinfo.cpp:321
void setHearingImpairedNull()
Definition remotesubtitleinfo.cpp:393
bool authorNull() const
Definition remotesubtitleinfo.cpp:259
QString providerName() const
Definition remotesubtitleinfo.cpp:215
static RemoteSubtitleInfo fromJson(QJsonObject source)
Definition remotesubtitleinfo.cpp:76
QString m_providerName
Definition remotesubtitleinfo.h:179
void setProviderName(QString newProviderName)
Definition remotesubtitleinfo.cpp:217
void setAiTranslatedNull()
Definition remotesubtitleinfo.cpp:354
bool downloadCountNull() const
Definition remotesubtitleinfo.cpp:324
void replaceData(RemoteSubtitleInfo &other)
Definition remotesubtitleinfo.cpp:57
void setCommunityRating(std::optional< float > newCommunityRating)
Definition remotesubtitleinfo.cpp:295
bool formatNull() const
Definition remotesubtitleinfo.cpp:246
bool threeLetterISOLanguageNameNull() const
Definition remotesubtitleinfo.cpp:194
QString m_author
Definition remotesubtitleinfo.h:182
void setIsHashMatchNull()
Definition remotesubtitleinfo.cpp:341
void setDownloadCountNull()
Definition remotesubtitleinfo.cpp:328
void setNameNull()
Definition remotesubtitleinfo.cpp:237
void setHearingImpaired(std::optional< bool > newHearingImpaired)
Definition remotesubtitleinfo.cpp:386
void setFromJson(QJsonObject source)
Definition remotesubtitleinfo.cpp:83
QString m_threeLetterISOLanguageName
Definition remotesubtitleinfo.h:177
std::optional< bool > isHashMatch() const
Definition remotesubtitleinfo.cpp:332
bool aiTranslatedNull() const
Definition remotesubtitleinfo.cpp:350
Contains auto-generated Data Transfer Objects for the Jellyfin HTTP API.
Definition accessschedule.h:128
Jellyfin::DTO::RemoteSubtitleInfo RemoteSubtitleInfo
Definition remotesubtitleinfo.h:202
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