Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
livetvserviceinfo.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_LIVETVSERVICEINFO_H
31#define JELLYFIN_DTO_LIVETVSERVICEINFO_H
32
33#include <QJsonObject>
34#include <QJsonValue>
35#include <QList>
36#include <QString>
37#include <QStringList>
38#include <optional>
39
42
43namespace Jellyfin {
44// Forward declaration
45class ApiClient;
46}
47namespace Jellyfin {
48namespace DTO {
49
50
52public:
56 bool isVisible
57 );
58
60
64 void replaceData(LiveTvServiceInfo &other);
65
66 static LiveTvServiceInfo fromJson(QJsonObject source);
67 void setFromJson(QJsonObject source);
68 QJsonObject toJson() const;
69
70 // Properties
74 QString name() const;
78 void setName(QString newName);
79 bool nameNull() const;
80 void setNameNull();
81
85 QString homePageUrl() const;
89 void setHomePageUrl(QString newHomePageUrl);
90 bool homePageUrlNull() const;
91 void setHomePageUrlNull();
92
93
95
96 void setStatus(LiveTvServiceStatus newStatus);
97
101 QString statusMessage() const;
105 void setStatusMessage(QString newStatusMessage);
106 bool statusMessageNull() const;
108
112 QString version() const;
116 void setVersion(QString newVersion);
117 bool versionNull() const;
118 void setVersionNull();
119
123 bool hasUpdateAvailable() const;
127 void setHasUpdateAvailable(bool newHasUpdateAvailable);
128
132 bool isVisible() const;
136 void setIsVisible(bool newIsVisible);
137
138
139 QStringList tuners() const;
140
141 void setTuners(QStringList newTuners);
142 bool tunersNull() const;
143 void setTunersNull();
144
145
146protected:
147 QString m_name;
151 QString m_version;
154 QStringList m_tuners;
155
156private:
157 // Private constructor which generates an invalid object, for use withing LiveTvServiceInfo::fromJson();
159};
160
161
162} // NS DTO
163
164namespace Support {
165
167
168template <>
170
171template<>
173
174} // NS DTO
175} // NS Jellyfin
176
177#endif // JELLYFIN_DTO_LIVETVSERVICEINFO_H
Definition livetvserviceinfo.h:51
QStringList m_tuners
Definition livetvserviceinfo.h:154
static LiveTvServiceInfo fromJson(QJsonObject source)
Definition livetvserviceinfo.cpp:70
bool tunersNull() const
Definition livetvserviceinfo.cpp:198
void setStatusMessageNull()
Definition livetvserviceinfo.cpp:164
bool nameNull() const
Definition livetvserviceinfo.cpp:128
bool m_isVisible
Definition livetvserviceinfo.h:153
QString version() const
Gets or sets the version.
Definition livetvserviceinfo.cpp:168
void setStatus(LiveTvServiceStatus newStatus)
Definition livetvserviceinfo.cpp:151
void setHasUpdateAvailable(bool newHasUpdateAvailable)
Gets or sets a value indicating whether this instance has update available.
Definition livetvserviceinfo.cpp:183
bool m_hasUpdateAvailable
Definition livetvserviceinfo.h:152
QString m_statusMessage
Definition livetvserviceinfo.h:150
void setStatusMessage(QString newStatusMessage)
Gets or sets the status message.
Definition livetvserviceinfo.cpp:157
LiveTvServiceStatus m_status
Definition livetvserviceinfo.h:149
QString m_homePageUrl
Definition livetvserviceinfo.h:148
QString m_version
Definition livetvserviceinfo.h:151
void replaceData(LiveTvServiceInfo &other)
Definition livetvserviceinfo.cpp:59
QString name() const
Gets or sets the name.
Definition livetvserviceinfo.cpp:123
QString homePageUrl() const
Gets or sets the home page URL.
Definition livetvserviceinfo.cpp:136
bool isVisible() const
Gets or sets a value indicating whether this instance is visible.
Definition livetvserviceinfo.cpp:187
QStringList tuners() const
Definition livetvserviceinfo.cpp:193
bool homePageUrlNull() const
Definition livetvserviceinfo.cpp:141
bool statusMessageNull() const
Definition livetvserviceinfo.cpp:160
LiveTvServiceStatus status() const
Definition livetvserviceinfo.cpp:149
void setTuners(QStringList newTuners)
Definition livetvserviceinfo.cpp:195
void setTunersNull()
Definition livetvserviceinfo.cpp:202
void setName(QString newName)
Gets or sets the name.
Definition livetvserviceinfo.cpp:125
bool hasUpdateAvailable() const
Gets or sets a value indicating whether this instance has update available.
Definition livetvserviceinfo.cpp:181
QJsonObject toJson() const
Definition livetvserviceinfo.cpp:89
void setIsVisible(bool newIsVisible)
Gets or sets a value indicating whether this instance is visible.
Definition livetvserviceinfo.cpp:189
void setHomePageUrl(QString newHomePageUrl)
Gets or sets the home page URL.
Definition livetvserviceinfo.cpp:138
QString m_name
Definition livetvserviceinfo.h:147
void setVersion(QString newVersion)
Gets or sets the version.
Definition livetvserviceinfo.cpp:170
void setNameNull()
Definition livetvserviceinfo.cpp:132
void setVersionNull()
Definition livetvserviceinfo.cpp:177
bool versionNull() const
Definition livetvserviceinfo.cpp:173
void setFromJson(QJsonObject source)
Definition livetvserviceinfo.cpp:77
QString statusMessage() const
Gets or sets the status message.
Definition livetvserviceinfo.cpp:155
void setHomePageUrlNull()
Definition livetvserviceinfo.cpp:145
Value
Definition livetvservicestatus.h:49
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