Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
subtitleoptions.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_SUBTITLEOPTIONS_H
31#define JELLYFIN_DTO_SUBTITLEOPTIONS_H
32
33#include <QJsonObject>
34#include <QJsonValue>
35#include <QList>
36#include <QString>
37#include <QStringList>
38#include <optional>
39
41
42namespace Jellyfin {
43// Forward declaration
44class ApiClient;
45}
46namespace Jellyfin {
47namespace DTO {
48
49
51public:
59 );
60
61 SubtitleOptions(const SubtitleOptions &other);
62
66 void replaceData(SubtitleOptions &other);
67
68 static SubtitleOptions fromJson(QJsonObject source);
69 void setFromJson(QJsonObject source);
70 QJsonObject toJson() const;
71
72 // Properties
73
75
76 void setSkipIfEmbeddedSubtitlesPresent(bool newSkipIfEmbeddedSubtitlesPresent);
77
78
79 bool skipIfAudioTrackMatches() const;
80
81 void setSkipIfAudioTrackMatches(bool newSkipIfAudioTrackMatches);
82
83
84 QStringList downloadLanguages() const;
85
86 void setDownloadLanguages(QStringList newDownloadLanguages);
87 bool downloadLanguagesNull() const;
89
90
91 bool downloadMovieSubtitles() const;
92
93 void setDownloadMovieSubtitles(bool newDownloadMovieSubtitles);
94
95
96 bool downloadEpisodeSubtitles() const;
97
98 void setDownloadEpisodeSubtitles(bool newDownloadEpisodeSubtitles);
99
100
101 QString openSubtitlesUsername() const;
102
103 void setOpenSubtitlesUsername(QString newOpenSubtitlesUsername);
104 bool openSubtitlesUsernameNull() const;
106
107
108 QString openSubtitlesPasswordHash() const;
109
110 void setOpenSubtitlesPasswordHash(QString newOpenSubtitlesPasswordHash);
113
114
115 bool isOpenSubtitleVipAccount() const;
116
117 void setIsOpenSubtitleVipAccount(bool newIsOpenSubtitleVipAccount);
118
119
120 bool requirePerfectMatch() const;
121
122 void setRequirePerfectMatch(bool newRequirePerfectMatch);
123
124
125protected:
135
136private:
137 // Private constructor which generates an invalid object, for use withing SubtitleOptions::fromJson();
139};
140
141
142} // NS DTO
143
144namespace Support {
145
147
148template <>
150
151template<>
153
154} // NS DTO
155} // NS Jellyfin
156
157#endif // JELLYFIN_DTO_SUBTITLEOPTIONS_H
An Api client for Jellyfin. Handles requests and authentication.
Definition apiclient.h:90
Definition subtitleoptions.h:50
bool downloadLanguagesNull() const
Definition subtitleoptions.cpp:142
bool m_downloadMovieSubtitles
Definition subtitleoptions.h:129
void setOpenSubtitlesUsername(QString newOpenSubtitlesUsername)
Definition subtitleoptions.cpp:164
void setDownloadLanguagesNull()
Definition subtitleoptions.cpp:146
bool openSubtitlesPasswordHashNull() const
Definition subtitleoptions.cpp:180
bool m_requirePerfectMatch
Definition subtitleoptions.h:134
void setRequirePerfectMatch(bool newRequirePerfectMatch)
Definition subtitleoptions.cpp:196
bool m_downloadEpisodeSubtitles
Definition subtitleoptions.h:130
bool m_skipIfAudioTrackMatches
Definition subtitleoptions.h:127
void setDownloadEpisodeSubtitles(bool newDownloadEpisodeSubtitles)
Definition subtitleoptions.cpp:158
bool requirePerfectMatch() const
Definition subtitleoptions.cpp:194
void setDownloadMovieSubtitles(bool newDownloadMovieSubtitles)
Definition subtitleoptions.cpp:152
SubtitleOptions(bool skipIfEmbeddedSubtitlesPresent, bool skipIfAudioTrackMatches, bool downloadMovieSubtitles, bool downloadEpisodeSubtitles, bool isOpenSubtitleVipAccount, bool requirePerfectMatch)
Definition subtitleoptions.cpp:36
void setSkipIfEmbeddedSubtitlesPresent(bool newSkipIfEmbeddedSubtitlesPresent)
Definition subtitleoptions.cpp:127
static SubtitleOptions fromJson(QJsonObject source)
Definition subtitleoptions.cpp:78
QString openSubtitlesUsername() const
Definition subtitleoptions.cpp:162
void setOpenSubtitlesPasswordHash(QString newOpenSubtitlesPasswordHash)
Definition subtitleoptions.cpp:177
QString m_openSubtitlesPasswordHash
Definition subtitleoptions.h:132
QString m_openSubtitlesUsername
Definition subtitleoptions.h:131
bool skipIfAudioTrackMatches() const
Definition subtitleoptions.cpp:131
void setFromJson(QJsonObject source)
Definition subtitleoptions.cpp:85
QStringList downloadLanguages() const
Definition subtitleoptions.cpp:137
void setIsOpenSubtitleVipAccount(bool newIsOpenSubtitleVipAccount)
Definition subtitleoptions.cpp:190
void setDownloadLanguages(QStringList newDownloadLanguages)
Definition subtitleoptions.cpp:139
bool isOpenSubtitleVipAccount() const
Definition subtitleoptions.cpp:188
QString openSubtitlesPasswordHash() const
Definition subtitleoptions.cpp:175
QJsonObject toJson() const
Definition subtitleoptions.cpp:98
bool m_skipIfEmbeddedSubtitlesPresent
Definition subtitleoptions.h:126
bool openSubtitlesUsernameNull() const
Definition subtitleoptions.cpp:167
bool skipIfEmbeddedSubtitlesPresent() const
Definition subtitleoptions.cpp:125
void setOpenSubtitlesPasswordHashNull()
Definition subtitleoptions.cpp:184
void setOpenSubtitlesUsernameNull()
Definition subtitleoptions.cpp:171
void replaceData(SubtitleOptions &other)
Definition subtitleoptions.cpp:66
bool downloadEpisodeSubtitles() const
Definition subtitleoptions.cpp:156
QStringList m_downloadLanguages
Definition subtitleoptions.h:128
bool m_isOpenSubtitleVipAccount
Definition subtitleoptions.h:133
bool downloadMovieSubtitles() const
Definition subtitleoptions.cpp:150
void setSkipIfAudioTrackMatches(bool newSkipIfAudioTrackMatches)
Definition subtitleoptions.cpp:133
Contains auto-generated Data Transfer Objects for the Jellyfin HTTP API.
Definition accessschedule.h:128
AccessSchedule fromJsonValue(const QJsonValue &source, convertType< AccessSchedule >)
Definition accessschedule.cpp:133
Jellyfin::DTO::SubtitleOptions SubtitleOptions
Definition subtitleoptions.h:146
QJsonValue toJsonValue(const AccessSchedule &source, convertType< AccessSchedule >)
Definition accessschedule.cpp:139
Definition jsonconvimpl.h:45