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
39
40namespace Jellyfin {
41// Forward declaration
42class ApiClient;
43}
44namespace Jellyfin {
45namespace DTO {
46
47
49public:
51 QString name,
53 );
54
56
61
62 static ConfigurationPageInfo fromJson(QJsonObject source);
63 void setFromJson(QJsonObject source);
64 QJsonObject toJson() const;
65
66 // Properties
70 QString name() const;
74 void setName(QString newName);
75
79 bool enableInMainMenu() const;
83 void setEnableInMainMenu(bool newEnableInMainMenu);
84
88 QString menuSection() const;
92 void setMenuSection(QString newMenuSection);
93 bool menuSectionNull() const;
94 void setMenuSectionNull();
95
99 QString menuIcon() const;
103 void setMenuIcon(QString newMenuIcon);
104 bool menuIconNull() const;
105 void setMenuIconNull();
106
110 QString displayName() const;
114 void setDisplayName(QString newDisplayName);
115 bool displayNameNull() const;
116 void setDisplayNameNull();
117
121 QString pluginId() const;
125 void setPluginId(QString newPluginId);
126 bool pluginIdNull() const;
127 void setPluginIdNull();
128
129
130protected:
131 QString m_name;
134 QString m_menuIcon;
136 QString m_pluginId;
137
138private:
139 // Private constructor which generates an invalid object, for use withing ConfigurationPageInfo::fromJson();
141};
142
143
144} // NS DTO
145
146namespace Support {
147
149
150template <>
152
153template<>
155
156} // NS DTO
157} // NS Jellyfin
158
159#endif // JELLYFIN_DTO_CONFIGURATIONPAGEINFO_H
An Api client for Jellyfin. Handles requests and authentication.
Definition apiclient.h:90
Definition configurationpageinfo.h:48
QString m_name
Definition configurationpageinfo.h:131
bool menuIconNull() const
Definition configurationpageinfo.cpp:139
void setMenuIcon(QString newMenuIcon)
Gets or sets the menu icon.
Definition configurationpageinfo.cpp:136
void setDisplayName(QString newDisplayName)
Gets or sets the display name.
Definition configurationpageinfo.cpp:149
bool enableInMainMenu() const
Gets or sets a value indicating whether the configurations page is enabled in the main menu.
Definition configurationpageinfo.cpp:115
bool menuSectionNull() const
Definition configurationpageinfo.cpp:126
QJsonObject toJson() const
Definition configurationpageinfo.cpp:81
QString menuSection() const
Gets or sets the menu section.
Definition configurationpageinfo.cpp:121
QString m_menuSection
Definition configurationpageinfo.h:133
bool displayNameNull() const
Definition configurationpageinfo.cpp:152
bool m_enableInMainMenu
Definition configurationpageinfo.h:132
QString pluginId() const
Gets or sets the plugin id.
Definition configurationpageinfo.cpp:160
QString m_pluginId
Definition configurationpageinfo.h:136
QString m_menuIcon
Definition configurationpageinfo.h:134
QString name() const
Gets or sets the name.
Definition configurationpageinfo.cpp:109
QString m_displayName
Definition configurationpageinfo.h:135
void setFromJson(QJsonObject source)
Definition configurationpageinfo.cpp:71
void setEnableInMainMenu(bool newEnableInMainMenu)
Gets or sets a value indicating whether the configurations page is enabled in the main menu.
Definition configurationpageinfo.cpp:117
void setName(QString newName)
Gets or sets the name.
Definition configurationpageinfo.cpp:111
bool pluginIdNull() const
Definition configurationpageinfo.cpp:165
void setMenuSectionNull()
Definition configurationpageinfo.cpp:130
ConfigurationPageInfo(QString name, bool enableInMainMenu)
Definition configurationpageinfo.cpp:36
void setPluginId(QString newPluginId)
Gets or sets the plugin id.
Definition configurationpageinfo.cpp:162
void replaceData(ConfigurationPageInfo &other)
Definition configurationpageinfo.cpp:55
static ConfigurationPageInfo fromJson(QJsonObject source)
Definition configurationpageinfo.cpp:64
void setMenuSection(QString newMenuSection)
Gets or sets the menu section.
Definition configurationpageinfo.cpp:123
QString menuIcon() const
Gets or sets the menu icon.
Definition configurationpageinfo.cpp:134
void setMenuIconNull()
Definition configurationpageinfo.cpp:143
void setPluginIdNull()
Definition configurationpageinfo.cpp:169
QString displayName() const
Gets or sets the display name.
Definition configurationpageinfo.cpp:147
void setDisplayNameNull()
Definition configurationpageinfo.cpp:156
Contains auto-generated Data Transfer Objects for the Jellyfin HTTP API.
Definition accessschedule.h:128
Jellyfin::DTO::ConfigurationPageInfo ConfigurationPageInfo
Definition configurationpageinfo.h:148
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