Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
notificationtypeinfo.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_NOTIFICATIONTYPEINFO_H
31#define JELLYFIN_DTO_NOTIFICATIONTYPEINFO_H
32
33#include <QJsonObject>
34#include <QJsonValue>
35#include <QString>
36#include <optional>
37
39
40namespace Jellyfin {
41// Forward declaration
42class ApiClient;
43}
44namespace Jellyfin {
45namespace DTO {
46
47
49public:
51 bool enabled,
53 );
54
56
61
62 static NotificationTypeInfo fromJson(QJsonObject source);
63 void setFromJson(QJsonObject source);
64 QJsonObject toJson() const;
65
66 // Properties
67
68 QString type() const;
69
70 void setType(QString newType);
71 bool typeNull() const;
72 void setTypeNull();
73
74
75 QString name() const;
76
77 void setName(QString newName);
78 bool nameNull() const;
79 void setNameNull();
80
81
82 bool enabled() const;
83
84 void setEnabled(bool newEnabled);
85
86
87 QString category() const;
88
89 void setCategory(QString newCategory);
90 bool categoryNull() const;
91 void setCategoryNull();
92
93
94 bool isBasedOnUserEvent() const;
95
96 void setIsBasedOnUserEvent(bool newIsBasedOnUserEvent);
97
98
99protected:
100 QString m_type;
101 QString m_name;
103 QString m_category;
105
106private:
107 // Private constructor which generates an invalid object, for use withing NotificationTypeInfo::fromJson();
109};
110
111
112} // NS DTO
113
114namespace Support {
115
117
118template <>
120
121template<>
123
124} // NS DTO
125} // NS Jellyfin
126
127#endif // JELLYFIN_DTO_NOTIFICATIONTYPEINFO_H
Definition notificationtypeinfo.h:48
bool categoryNull() const
Definition notificationtypeinfo.cpp:138
bool m_isBasedOnUserEvent
Definition notificationtypeinfo.h:104
void setIsBasedOnUserEvent(bool newIsBasedOnUserEvent)
Definition notificationtypeinfo.cpp:148
void setCategory(QString newCategory)
Definition notificationtypeinfo.cpp:135
void setEnabled(bool newEnabled)
Definition notificationtypeinfo.cpp:129
QString category() const
Definition notificationtypeinfo.cpp:133
QString name() const
Definition notificationtypeinfo.cpp:114
QString m_category
Definition notificationtypeinfo.h:103
void setFromJson(QJsonObject source)
Definition notificationtypeinfo.cpp:69
QJsonObject toJson() const
Definition notificationtypeinfo.cpp:78
void setName(QString newName)
Definition notificationtypeinfo.cpp:116
QString m_name
Definition notificationtypeinfo.h:101
void setTypeNull()
Definition notificationtypeinfo.cpp:110
bool isBasedOnUserEvent() const
Definition notificationtypeinfo.cpp:146
void setCategoryNull()
Definition notificationtypeinfo.cpp:142
void setNameNull()
Definition notificationtypeinfo.cpp:123
static NotificationTypeInfo fromJson(QJsonObject source)
Definition notificationtypeinfo.cpp:62
bool typeNull() const
Definition notificationtypeinfo.cpp:106
QString m_type
Definition notificationtypeinfo.h:100
bool nameNull() const
Definition notificationtypeinfo.cpp:119
bool m_enabled
Definition notificationtypeinfo.h:102
QString type() const
Definition notificationtypeinfo.cpp:101
void replaceData(NotificationTypeInfo &other)
Definition notificationtypeinfo.cpp:54
void setType(QString newType)
Definition notificationtypeinfo.cpp:103
bool enabled() const
Definition notificationtypeinfo.cpp:127
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