Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
chapterinfo.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_CHAPTERINFO_H
31#define JELLYFIN_DTO_CHAPTERINFO_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:
52 qint64 startPositionTicks,
53 QDateTime imageDateModified
54 );
55
56 ChapterInfo(const ChapterInfo &other);
57
61 void replaceData(ChapterInfo &other);
62
63 static ChapterInfo fromJson(QJsonObject source);
64 void setFromJson(QJsonObject source);
65 QJsonObject toJson() const;
66
67 // Properties
71 qint64 startPositionTicks() const;
75 void setStartPositionTicks(qint64 newStartPositionTicks);
76
80 QString name() const;
84 void setName(QString newName);
85 bool nameNull() const;
86 void setNameNull();
87
91 QString imagePath() const;
95 void setImagePath(QString newImagePath);
96 bool imagePathNull() const;
97 void setImagePathNull();
98
99
100 QDateTime imageDateModified() const;
101
102 void setImageDateModified(QDateTime newImageDateModified);
103
104
105 QString imageTag() const;
106
107 void setImageTag(QString newImageTag);
108 bool imageTagNull() const;
109 void setImageTagNull();
110
111
112protected:
114 QString m_name;
115 QString m_imagePath;
117 QString m_imageTag;
118
119private:
120 // Private constructor which generates an invalid object, for use withing ChapterInfo::fromJson();
121 ChapterInfo();
122};
123
124
125} // NS DTO
126
127namespace Support {
128
130
131template <>
132ChapterInfo fromJsonValue(const QJsonValue &source, convertType<ChapterInfo>);
133
134template<>
135QJsonValue toJsonValue(const ChapterInfo &source, convertType<ChapterInfo>);
136
137} // NS DTO
138} // NS Jellyfin
139
140#endif // JELLYFIN_DTO_CHAPTERINFO_H
Definition chapterinfo.h:49
void setName(QString newName)
Gets or sets the name.
Definition chapterinfo.cpp:109
void setImageDateModified(QDateTime newImageDateModified)
Definition chapterinfo.cpp:135
void setImageTag(QString newImageTag)
Definition chapterinfo.cpp:141
QString m_imageTag
Definition chapterinfo.h:117
static ChapterInfo fromJson(QJsonObject source)
Definition chapterinfo.cpp:62
bool nameNull() const
Definition chapterinfo.cpp:112
QDateTime m_imageDateModified
Definition chapterinfo.h:116
qint64 m_startPositionTicks
Definition chapterinfo.h:113
void setImagePathNull()
Definition chapterinfo.cpp:129
QString m_imagePath
Definition chapterinfo.h:115
QJsonObject toJson() const
Definition chapterinfo.cpp:78
void replaceData(ChapterInfo &other)
Definition chapterinfo.cpp:54
QDateTime imageDateModified() const
Definition chapterinfo.cpp:133
void setImagePath(QString newImagePath)
Gets or sets the image path.
Definition chapterinfo.cpp:122
void setFromJson(QJsonObject source)
Definition chapterinfo.cpp:69
qint64 startPositionTicks() const
Gets or sets the start position ticks.
Definition chapterinfo.cpp:101
void setNameNull()
Definition chapterinfo.cpp:116
void setImageTagNull()
Definition chapterinfo.cpp:148
QString imageTag() const
Definition chapterinfo.cpp:139
bool imageTagNull() const
Definition chapterinfo.cpp:144
QString m_name
Definition chapterinfo.h:114
QString name() const
Gets or sets the name.
Definition chapterinfo.cpp:107
QString imagePath() const
Gets or sets the image path.
Definition chapterinfo.cpp:120
void setStartPositionTicks(qint64 newStartPositionTicks)
Gets or sets the start position ticks.
Definition chapterinfo.cpp:103
bool imagePathNull() const
Definition chapterinfo.cpp:125
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