Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
activitylogentry.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_ACTIVITYLOGENTRY_H
31#define JELLYFIN_DTO_ACTIVITYLOGENTRY_H
32
33#include <QDateTime>
34#include <QJsonObject>
35#include <QJsonValue>
36#include <QString>
37#include <optional>
38
41
42namespace Jellyfin {
43// Forward declaration
44class ApiClient;
45}
46namespace Jellyfin {
47namespace DTO {
48
49
51public:
53 qint64 jellyfinId,
54 QDateTime date,
55 QString userId,
57 );
58
60
64 void replaceData(ActivityLogEntry &other);
65
66 static ActivityLogEntry fromJson(QJsonObject source);
67 void setFromJson(QJsonObject source);
68 QJsonObject toJson() const;
69
70 // Properties
74 qint64 jellyfinId() const;
78 void setJellyfinId(qint64 newJellyfinId);
79
83 QString name() const;
87 void setName(QString newName);
88 bool nameNull() const;
89 void setNameNull();
90
94 QString overview() const;
98 void setOverview(QString newOverview);
99 bool overviewNull() const;
100 void setOverviewNull();
101
105 QString shortOverview() const;
109 void setShortOverview(QString newShortOverview);
110 bool shortOverviewNull() const;
112
116 QString type() const;
120 void setType(QString newType);
121 bool typeNull() const;
122 void setTypeNull();
123
127 QString itemId() const;
131 void setItemId(QString newItemId);
132 bool itemIdNull() const;
133 void setItemIdNull();
134
138 QDateTime date() const;
142 void setDate(QDateTime newDate);
143
147 QString userId() const;
151 void setUserId(QString newUserId);
152
156 QString userPrimaryImageTag() const;
160 void setUserPrimaryImageTag(QString newUserPrimaryImageTag);
161 bool userPrimaryImageTagNull() const;
163
164
165 LogLevel severity() const;
166
167 void setSeverity(LogLevel newSeverity);
168
169
170protected:
172 QString m_name;
173 QString m_overview;
175 QString m_type;
176 QString m_itemId;
177 QDateTime m_date;
178 QString m_userId;
181
182private:
183 // Private constructor which generates an invalid object, for use withing ActivityLogEntry::fromJson();
185};
186
187
188} // NS DTO
189
190namespace Support {
191
193
194template <>
196
197template<>
199
200} // NS DTO
201} // NS Jellyfin
202
203#endif // JELLYFIN_DTO_ACTIVITYLOGENTRY_H
Definition activitylogentry.h:50
bool typeNull() const
Definition activitylogentry.cpp:187
QString m_overview
Definition activitylogentry.h:173
QString m_userPrimaryImageTag
Definition activitylogentry.h:179
QString m_name
Definition activitylogentry.h:172
void setOverviewNull()
Definition activitylogentry.cpp:165
void setUserPrimaryImageTag(QString newUserPrimaryImageTag)
Gets or sets the user primary image tag.
Definition activitylogentry.cpp:222
void setType(QString newType)
Gets or sets the type.
Definition activitylogentry.cpp:184
void setUserPrimaryImageTagNull()
Definition activitylogentry.cpp:229
void setShortOverviewNull()
Definition activitylogentry.cpp:178
bool userPrimaryImageTagNull() const
Definition activitylogentry.cpp:225
LogLevel severity() const
Definition activitylogentry.cpp:233
qint64 jellyfinId() const
Gets or sets the identifier.
Definition activitylogentry.cpp:137
void setItemId(QString newItemId)
Gets or sets the item identifier.
Definition activitylogentry.cpp:197
QString shortOverview() const
Gets or sets the short overview.
Definition activitylogentry.cpp:169
bool overviewNull() const
Definition activitylogentry.cpp:161
QString m_userId
Definition activitylogentry.h:178
QString m_shortOverview
Definition activitylogentry.h:174
void setName(QString newName)
Gets or sets the name.
Definition activitylogentry.cpp:145
void setUserId(QString newUserId)
Gets or sets the user identifier.
Definition activitylogentry.cpp:216
QDateTime date() const
Gets or sets the date.
Definition activitylogentry.cpp:208
qint64 m_jellyfinId
Definition activitylogentry.h:171
QString name() const
Gets or sets the name.
Definition activitylogentry.cpp:143
QDateTime m_date
Definition activitylogentry.h:177
void setItemIdNull()
Definition activitylogentry.cpp:204
QString type() const
Gets or sets the type.
Definition activitylogentry.cpp:182
static ActivityLogEntry fromJson(QJsonObject source)
Definition activitylogentry.cpp:76
LogLevel m_severity
Definition activitylogentry.h:180
QString userId() const
Gets or sets the user identifier.
Definition activitylogentry.cpp:214
void setJellyfinId(qint64 newJellyfinId)
Gets or sets the identifier.
Definition activitylogentry.cpp:139
void setNameNull()
Definition activitylogentry.cpp:152
void setFromJson(QJsonObject source)
Definition activitylogentry.cpp:83
void setOverview(QString newOverview)
Gets or sets the overview.
Definition activitylogentry.cpp:158
void replaceData(ActivityLogEntry &other)
Definition activitylogentry.cpp:63
QString m_itemId
Definition activitylogentry.h:176
void setTypeNull()
Definition activitylogentry.cpp:191
QString overview() const
Gets or sets the overview.
Definition activitylogentry.cpp:156
void setDate(QDateTime newDate)
Gets or sets the date.
Definition activitylogentry.cpp:210
QString itemId() const
Gets or sets the item identifier.
Definition activitylogentry.cpp:195
void setSeverity(LogLevel newSeverity)
Definition activitylogentry.cpp:235
void setShortOverview(QString newShortOverview)
Gets or sets the short overview.
Definition activitylogentry.cpp:171
bool shortOverviewNull() const
Definition activitylogentry.cpp:174
QJsonObject toJson() const
Definition activitylogentry.cpp:97
QString userPrimaryImageTag() const
Gets or sets the user primary image tag.
Definition activitylogentry.cpp:220
bool nameNull() const
Definition activitylogentry.cpp:148
bool itemIdNull() const
Definition activitylogentry.cpp:200
QString m_type
Definition activitylogentry.h:175
Value
Definition loglevel.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