Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
configurationpageinfo.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_CONFIGURATIONPAGEINFO_H
31#define JELLYFIN_DTO_CONFIGURATIONPAGEINFO_H
32
33#include <QJsonObject>
34#include <QJsonValue>
35#include <QString>
36#include <optional>
37
40
41namespace Jellyfin {
42// Forward declaration
43class ApiClient;
44}
45namespace Jellyfin {
46namespace DTO {
47
48
50public:
52 bool enableInMainMenu,
54 );
55
57
62
63 static ConfigurationPageInfo fromJson(QJsonObject source);
64 void setFromJson(QJsonObject source);
65 QJsonObject toJson() const;
66
67 // Properties
71 QString name() const;
75 void setName(QString newName);
76 bool nameNull() const;
77 void setNameNull();
78
82 bool enableInMainMenu() const;
86 void setEnableInMainMenu(bool newEnableInMainMenu);
87
91 QString menuSection() const;
95 void setMenuSection(QString newMenuSection);
96 bool menuSectionNull() const;
97 void setMenuSectionNull();
98
102 QString menuIcon() const;
106 void setMenuIcon(QString newMenuIcon);
107 bool menuIconNull() const;
108 void setMenuIconNull();
109
113 QString displayName() const;
117 void setDisplayName(QString newDisplayName);
118 bool displayNameNull() const;
119 void setDisplayNameNull();
120
121
123
124 void setConfigurationPageType(ConfigurationPageType newConfigurationPageType);
125
129 QString pluginId() const;
133 void setPluginId(QString newPluginId);
134 bool pluginIdNull() const;
135 void setPluginIdNull();
136
137
138protected:
139 QString m_name;
142 QString m_menuIcon;
145 QString m_pluginId;
146
147private:
148 // Private constructor which generates an invalid object, for use withing ConfigurationPageInfo::fromJson();
150};
151
152
153} // NS DTO
154
155namespace Support {
156
158
159template <>
161
162template<>
164
165} // NS DTO
166} // NS Jellyfin
167
168#endif // JELLYFIN_DTO_CONFIGURATIONPAGEINFO_H
Definition configurationpageinfo.h:49
QString m_name
Definition configurationpageinfo.h:139
bool menuIconNull() const
Definition configurationpageinfo.cpp:154
void setMenuIcon(QString newMenuIcon)
Gets or sets the menu icon.
Definition configurationpageinfo.cpp:151
void setDisplayName(QString newDisplayName)
Gets or sets the display name.
Definition configurationpageinfo.cpp:164
bool enableInMainMenu() const
Gets or sets a value indicating whether the configurations page is enabled in the main menu.
Definition configurationpageinfo.cpp:130
bool menuSectionNull() const
Definition configurationpageinfo.cpp:141
QJsonObject toJson() const
Definition configurationpageinfo.cpp:84
QString menuSection() const
Gets or sets the menu section.
Definition configurationpageinfo.cpp:136
QString m_menuSection
Definition configurationpageinfo.h:141
bool displayNameNull() const
Definition configurationpageinfo.cpp:167
bool m_enableInMainMenu
Definition configurationpageinfo.h:140
QString pluginId() const
Gets or sets the plugin id.
Definition configurationpageinfo.cpp:181
bool nameNull() const
Definition configurationpageinfo.cpp:122
QString m_pluginId
Definition configurationpageinfo.h:145
QString m_menuIcon
Definition configurationpageinfo.h:142
ConfigurationPageType m_configurationPageType
Definition configurationpageinfo.h:144
QString name() const
Gets or sets the name.
Definition configurationpageinfo.cpp:117
ConfigurationPageType configurationPageType() const
Definition configurationpageinfo.cpp:175
QString m_displayName
Definition configurationpageinfo.h:143
void setFromJson(QJsonObject source)
Definition configurationpageinfo.cpp:73
void setEnableInMainMenu(bool newEnableInMainMenu)
Gets or sets a value indicating whether the configurations page is enabled in the main menu.
Definition configurationpageinfo.cpp:132
void setConfigurationPageType(ConfigurationPageType newConfigurationPageType)
Definition configurationpageinfo.cpp:177
void setName(QString newName)
Gets or sets the name.
Definition configurationpageinfo.cpp:119
bool pluginIdNull() const
Definition configurationpageinfo.cpp:186
void setMenuSectionNull()
Definition configurationpageinfo.cpp:145
void setPluginId(QString newPluginId)
Gets or sets the plugin id.
Definition configurationpageinfo.cpp:183
void replaceData(ConfigurationPageInfo &other)
Definition configurationpageinfo.cpp:56
static ConfigurationPageInfo fromJson(QJsonObject source)
Definition configurationpageinfo.cpp:66
void setMenuSection(QString newMenuSection)
Gets or sets the menu section.
Definition configurationpageinfo.cpp:138
QString menuIcon() const
Gets or sets the menu icon.
Definition configurationpageinfo.cpp:149
void setMenuIconNull()
Definition configurationpageinfo.cpp:158
void setPluginIdNull()
Definition configurationpageinfo.cpp:190
void setNameNull()
Definition configurationpageinfo.cpp:126
QString displayName() const
Gets or sets the display name.
Definition configurationpageinfo.cpp:162
void setDisplayNameNull()
Definition configurationpageinfo.cpp:171
Value
Definition configurationpagetype.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