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 QString name,
55 QString type,
56 QDateTime date,
57 QString userId,
59 );
60
62
66 void replaceData(ActivityLogEntry &other);
67
68 static ActivityLogEntry fromJson(QJsonObject source);
69 void setFromJson(QJsonObject source);
70 QJsonObject toJson() const;
71
72 // Properties
76 qint64 jellyfinId() const;
80 void setJellyfinId(qint64 newJellyfinId);
81
85 QString name() const;
89 void setName(QString newName);
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
125 QString itemId() const;
129 void setItemId(QString newItemId);
130 bool itemIdNull() const;
131 void setItemIdNull();
132
136 QDateTime date() const;
140 void setDate(QDateTime newDate);
141
145 QString userId() const;
149 void setUserId(QString newUserId);
150
154 QString userPrimaryImageTag() const;
158 void setUserPrimaryImageTag(QString newUserPrimaryImageTag);
159 bool userPrimaryImageTagNull() const;
161
162
163 LogLevel severity() const;
164
165 void setSeverity(LogLevel newSeverity);
166
167
168protected:
170 QString m_name;
171 QString m_overview;
173 QString m_type;
174 QString m_itemId;
175 QDateTime m_date;
176 QString m_userId;
179
180private:
181 // Private constructor which generates an invalid object, for use withing ActivityLogEntry::fromJson();
183};
184
185
186} // NS DTO
187
188namespace Support {
189
191
192template <>
194
195template<>
197
198} // NS DTO
199} // NS Jellyfin
200
201#endif // JELLYFIN_DTO_ACTIVITYLOGENTRY_H
An Api client for Jellyfin. Handles requests and authentication.
Definition apiclient.h:90
Definition activitylogentry.h:50
QString m_overview
Definition activitylogentry.h:171
QString m_userPrimaryImageTag
Definition activitylogentry.h:177
QString m_name
Definition activitylogentry.h:170
void setOverviewNull()
Definition activitylogentry.cpp:154
void setUserPrimaryImageTag(QString newUserPrimaryImageTag)
Gets or sets the user primary image tag.
Definition activitylogentry.cpp:204
void setType(QString newType)
Gets or sets the type.
Definition activitylogentry.cpp:173
void setUserPrimaryImageTagNull()
Definition activitylogentry.cpp:211
void setShortOverviewNull()
Definition activitylogentry.cpp:167
bool userPrimaryImageTagNull() const
Definition activitylogentry.cpp:207
LogLevel severity() const
Definition activitylogentry.cpp:215
qint64 jellyfinId() const
Gets or sets the identifier.
Definition activitylogentry.cpp:133
void setItemId(QString newItemId)
Gets or sets the item identifier.
Definition activitylogentry.cpp:179
QString shortOverview() const
Gets or sets the short overview.
Definition activitylogentry.cpp:158
bool overviewNull() const
Definition activitylogentry.cpp:150
QString m_userId
Definition activitylogentry.h:176
QString m_shortOverview
Definition activitylogentry.h:172
void setName(QString newName)
Gets or sets the name.
Definition activitylogentry.cpp:141
void setUserId(QString newUserId)
Gets or sets the user identifier.
Definition activitylogentry.cpp:198
QDateTime date() const
Gets or sets the date.
Definition activitylogentry.cpp:190
qint64 m_jellyfinId
Definition activitylogentry.h:169
QString name() const
Gets or sets the name.
Definition activitylogentry.cpp:139
QDateTime m_date
Definition activitylogentry.h:175
void setItemIdNull()
Definition activitylogentry.cpp:186
QString type() const
Gets or sets the type.
Definition activitylogentry.cpp:171
static ActivityLogEntry fromJson(QJsonObject source)
Definition activitylogentry.cpp:80
LogLevel m_severity
Definition activitylogentry.h:178
QString userId() const
Gets or sets the user identifier.
Definition activitylogentry.cpp:196
void setJellyfinId(qint64 newJellyfinId)
Gets or sets the identifier.
Definition activitylogentry.cpp:135
void setFromJson(QJsonObject source)
Definition activitylogentry.cpp:87
void setOverview(QString newOverview)
Gets or sets the overview.
Definition activitylogentry.cpp:147
void replaceData(ActivityLogEntry &other)
Definition activitylogentry.cpp:67
QString m_itemId
Definition activitylogentry.h:174
QString overview() const
Gets or sets the overview.
Definition activitylogentry.cpp:145
void setDate(QDateTime newDate)
Gets or sets the date.
Definition activitylogentry.cpp:192
QString itemId() const
Gets or sets the item identifier.
Definition activitylogentry.cpp:177
ActivityLogEntry(qint64 jellyfinId, QString name, QString type, QDateTime date, QString userId, LogLevel severity)
Definition activitylogentry.cpp:36
void setSeverity(LogLevel newSeverity)
Definition activitylogentry.cpp:217
void setShortOverview(QString newShortOverview)
Gets or sets the short overview.
Definition activitylogentry.cpp:160
bool shortOverviewNull() const
Definition activitylogentry.cpp:163
QJsonObject toJson() const
Definition activitylogentry.cpp:101
QString userPrimaryImageTag() const
Gets or sets the user primary image tag.
Definition activitylogentry.cpp:202
bool itemIdNull() const
Definition activitylogentry.cpp:182
QString m_type
Definition activitylogentry.h:173
Contains auto-generated Data Transfer Objects for the Jellyfin HTTP API.
LogLevelClass::Value LogLevel
Definition loglevel.h:64
Definition accessschedule.h:128
Jellyfin::DTO::ActivityLogEntry ActivityLogEntry
Definition activitylogentry.h:190
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