Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
trickplayinfo.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_TRICKPLAYINFO_H
31#define JELLYFIN_DTO_TRICKPLAYINFO_H
32
33#include <QJsonObject>
34#include <QJsonValue>
35#include <optional>
36
38
39namespace Jellyfin {
40// Forward declaration
41class ApiClient;
42}
43namespace Jellyfin {
44namespace DTO {
45
46
48public:
50 qint32 width,
51 qint32 height,
52 qint32 tileWidth,
53 qint32 tileHeight,
54 qint32 thumbnailCount,
55 qint32 interval,
56 qint32 bandwidth
57 );
58
59 TrickplayInfo(const TrickplayInfo &other);
60
64 void replaceData(TrickplayInfo &other);
65
66 static TrickplayInfo fromJson(QJsonObject source);
67 void setFromJson(QJsonObject source);
68 QJsonObject toJson() const;
69
70 // Properties
74 qint32 width() const;
78 void setWidth(qint32 newWidth);
79
83 qint32 height() const;
87 void setHeight(qint32 newHeight);
88
92 qint32 tileWidth() const;
96 void setTileWidth(qint32 newTileWidth);
97
101 qint32 tileHeight() const;
105 void setTileHeight(qint32 newTileHeight);
106
110 qint32 thumbnailCount() const;
114 void setThumbnailCount(qint32 newThumbnailCount);
115
119 qint32 interval() const;
123 void setInterval(qint32 newInterval);
124
128 qint32 bandwidth() const;
132 void setBandwidth(qint32 newBandwidth);
133
134
135protected:
136 qint32 m_width;
137 qint32 m_height;
143
144private:
145 // Private constructor which generates an invalid object, for use withing TrickplayInfo::fromJson();
147};
148
149
150} // NS DTO
151
152namespace Support {
153
155
156template <>
158
159template<>
160QJsonValue toJsonValue(const TrickplayInfo &source, convertType<TrickplayInfo>);
161
162} // NS DTO
163} // NS Jellyfin
164
165#endif // JELLYFIN_DTO_TRICKPLAYINFO_H
An Api client for Jellyfin. Handles requests and authentication.
Definition apiclient.h:90
Definition trickplayinfo.h:47
qint32 tileHeight() const
Gets or sets amount of thumbnails per column.
Definition trickplayinfo.cpp:125
static TrickplayInfo fromJson(QJsonObject source)
Definition trickplayinfo.cpp:76
void setTileHeight(qint32 newTileHeight)
Gets or sets amount of thumbnails per column.
Definition trickplayinfo.cpp:127
void setFromJson(QJsonObject source)
Definition trickplayinfo.cpp:83
qint32 tileWidth() const
Gets or sets amount of thumbnails per row.
Definition trickplayinfo.cpp:119
void setThumbnailCount(qint32 newThumbnailCount)
Gets or sets total amount of non-black thumbnails.
Definition trickplayinfo.cpp:133
TrickplayInfo(qint32 width, qint32 height, qint32 tileWidth, qint32 tileHeight, qint32 thumbnailCount, qint32 interval, qint32 bandwidth)
Definition trickplayinfo.cpp:36
qint32 interval() const
Gets or sets interval in milliseconds between each trickplay thumbnail.
Definition trickplayinfo.cpp:137
qint32 m_thumbnailCount
Definition trickplayinfo.h:140
qint32 m_bandwidth
Definition trickplayinfo.h:142
qint32 thumbnailCount() const
Gets or sets total amount of non-black thumbnails.
Definition trickplayinfo.cpp:131
qint32 m_height
Definition trickplayinfo.h:137
qint32 bandwidth() const
Gets or sets peak bandwith usage in bits per second.
Definition trickplayinfo.cpp:143
void setBandwidth(qint32 newBandwidth)
Gets or sets peak bandwith usage in bits per second.
Definition trickplayinfo.cpp:145
void replaceData(TrickplayInfo &other)
Definition trickplayinfo.cpp:66
qint32 m_tileHeight
Definition trickplayinfo.h:139
QJsonObject toJson() const
Definition trickplayinfo.cpp:94
void setHeight(qint32 newHeight)
Gets or sets height of an individual thumbnail.
Definition trickplayinfo.cpp:115
qint32 width() const
Gets or sets width of an individual thumbnail.
Definition trickplayinfo.cpp:107
qint32 m_width
Definition trickplayinfo.h:136
qint32 height() const
Gets or sets height of an individual thumbnail.
Definition trickplayinfo.cpp:113
void setInterval(qint32 newInterval)
Gets or sets interval in milliseconds between each trickplay thumbnail.
Definition trickplayinfo.cpp:139
qint32 m_tileWidth
Definition trickplayinfo.h:138
void setWidth(qint32 newWidth)
Gets or sets width of an individual thumbnail.
Definition trickplayinfo.cpp:109
qint32 m_interval
Definition trickplayinfo.h:141
void setTileWidth(qint32 newTileWidth)
Gets or sets amount of thumbnails per row.
Definition trickplayinfo.cpp:121
Contains auto-generated Data Transfer Objects for the Jellyfin HTTP API.
Definition accessschedule.h:128
Jellyfin::DTO::TrickplayInfo TrickplayInfo
Definition trickplayinfo.h:154
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