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<qint32> downloadCount() const;
128
129 void setDownloadCount(std::optional<qint32> newDownloadCount);
130 bool downloadCountNull() const;
132
133
134 std::optional<bool> isHashMatch() const;
135
136 void setIsHashMatch(std::optional<bool> newIsHashMatch);
137 bool isHashMatchNull() const;
138 void setIsHashMatchNull();
139
140
141protected:
145 QString m_name;
146 QString m_format;
147 QString m_author;
148 QString m_comment;
149 QDateTime m_dateCreated;
150 std::optional<float> m_communityRating = std::nullopt;
151 std::optional<qint32> m_downloadCount = std::nullopt;
152 std::optional<bool> m_isHashMatch = std::nullopt;
153
154
155};
156
157
158} // NS DTO
159
160namespace Support {
161
163
164template <>
166
167template<>
169
170} // NS DTO
171} // NS Jellyfin
172
173#endif // JELLYFIN_DTO_REMOTESUBTITLEINFO_H
Definition remotesubtitleinfo.h:49
void setThreeLetterISOLanguageNameNull()
Definition remotesubtitleinfo.cpp:158
QString m_comment
Definition remotesubtitleinfo.h:148
void setComment(QString newComment)
Definition remotesubtitleinfo.cpp:229
std::optional< bool > m_isHashMatch
Definition remotesubtitleinfo.h:152
void setName(QString newName)
Definition remotesubtitleinfo.cpp:190
QString format() const
Definition remotesubtitleinfo.cpp:201
QString jellyfinId() const
Definition remotesubtitleinfo.cpp:162
bool nameNull() const
Definition remotesubtitleinfo.cpp:193
QString author() const
Definition remotesubtitleinfo.cpp:214
QString threeLetterISOLanguageName() const
Definition remotesubtitleinfo.cpp:149
void setAuthor(QString newAuthor)
Definition remotesubtitleinfo.cpp:216
RemoteSubtitleInfo()
Definition remotesubtitleinfo.cpp:35
bool dateCreatedNull() const
Definition remotesubtitleinfo.cpp:245
QDateTime dateCreated() const
Definition remotesubtitleinfo.cpp:240
QString name() const
Definition remotesubtitleinfo.cpp:188
void setDateCreated(QDateTime newDateCreated)
Definition remotesubtitleinfo.cpp:242
void setFormat(QString newFormat)
Definition remotesubtitleinfo.cpp:203
void setDateCreatedNull()
Definition remotesubtitleinfo.cpp:249
void setProviderNameNull()
Definition remotesubtitleinfo.cpp:184
bool jellyfinIdNull() const
Definition remotesubtitleinfo.cpp:167
void setJellyfinIdNull()
Definition remotesubtitleinfo.cpp:171
void setThreeLetterISOLanguageName(QString newThreeLetterISOLanguageName)
Definition remotesubtitleinfo.cpp:151
std::optional< qint32 > downloadCount() const
Definition remotesubtitleinfo.cpp:266
QString m_name
Definition remotesubtitleinfo.h:145
QString comment() const
Definition remotesubtitleinfo.cpp:227
void setIsHashMatch(std::optional< bool > newIsHashMatch)
Definition remotesubtitleinfo.cpp:281
QJsonObject toJson() const
Definition remotesubtitleinfo.cpp:88
bool communityRatingNull() const
Definition remotesubtitleinfo.cpp:258
void setCommunityRatingNull()
Definition remotesubtitleinfo.cpp:262
QString m_format
Definition remotesubtitleinfo.h:146
bool isHashMatchNull() const
Definition remotesubtitleinfo.cpp:284
QDateTime m_dateCreated
Definition remotesubtitleinfo.h:149
void setFormatNull()
Definition remotesubtitleinfo.cpp:210
void setCommentNull()
Definition remotesubtitleinfo.cpp:236
bool commentNull() const
Definition remotesubtitleinfo.cpp:232
std::optional< qint32 > m_downloadCount
Definition remotesubtitleinfo.h:151
std::optional< float > m_communityRating
Definition remotesubtitleinfo.h:150
void setJellyfinId(QString newJellyfinId)
Definition remotesubtitleinfo.cpp:164
QString m_jellyfinId
Definition remotesubtitleinfo.h:143
std::optional< float > communityRating() const
Definition remotesubtitleinfo.cpp:253
void setAuthorNull()
Definition remotesubtitleinfo.cpp:223
bool providerNameNull() const
Definition remotesubtitleinfo.cpp:180
void setDownloadCount(std::optional< qint32 > newDownloadCount)
Definition remotesubtitleinfo.cpp:268
bool authorNull() const
Definition remotesubtitleinfo.cpp:219
QString providerName() const
Definition remotesubtitleinfo.cpp:175
static RemoteSubtitleInfo fromJson(QJsonObject source)
Definition remotesubtitleinfo.cpp:66
QString m_providerName
Definition remotesubtitleinfo.h:144
void setProviderName(QString newProviderName)
Definition remotesubtitleinfo.cpp:177
bool downloadCountNull() const
Definition remotesubtitleinfo.cpp:271
void replaceData(RemoteSubtitleInfo &other)
Definition remotesubtitleinfo.cpp:52
void setCommunityRating(std::optional< float > newCommunityRating)
Definition remotesubtitleinfo.cpp:255
bool formatNull() const
Definition remotesubtitleinfo.cpp:206
bool threeLetterISOLanguageNameNull() const
Definition remotesubtitleinfo.cpp:154
QString m_author
Definition remotesubtitleinfo.h:147
void setIsHashMatchNull()
Definition remotesubtitleinfo.cpp:288
void setDownloadCountNull()
Definition remotesubtitleinfo.cpp:275
void setNameNull()
Definition remotesubtitleinfo.cpp:197
void setFromJson(QJsonObject source)
Definition remotesubtitleinfo.cpp:73
QString m_threeLetterISOLanguageName
Definition remotesubtitleinfo.h:142
std::optional< bool > isHashMatch() const
Definition remotesubtitleinfo.cpp:279
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