KDecoration3

decorationthemeprovider.cpp
1/*
2 * SPDX-FileCopyrightText: 2021 Alexander Lohnau <alexander.lohnau@gmx.de>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5 */
6
7#include "decorationthemeprovider.h"
8
9class DecorationThemeMetaDataPrivate : public QSharedData
10{
11public:
12 QString visibleName;
13 QString themeName;
14 QString configurationName;
15 QString pluginId;
17};
18
19using namespace KDecoration3;
20
21DecorationThemeMetaData::DecorationThemeMetaData()
22 : d(new DecorationThemeMetaDataPrivate())
23{
24}
25
26DecorationThemeMetaData::~DecorationThemeMetaData() = default;
27
29{
30 return d->visibleName;
31}
32
33void DecorationThemeMetaData::setVisibleName(const QString &name)
34{
35 d->visibleName = name;
36}
37
39{
40 return d->themeName;
41}
42
43void DecorationThemeMetaData::setThemeName(const QString &name)
44{
45 d->themeName = name;
46}
47
49{
50 return d->configurationName;
51}
52
53void DecorationThemeMetaData::setConfigurationName(const QString &name)
54{
55 d->configurationName = name;
56}
57
58void DecorationThemeMetaData::setBorderSize(KDecoration3::BorderSize size)
59{
60 d->borderSize = size;
61}
62
64{
65 return d->borderSize;
66}
67
69{
70 return d->pluginId;
71}
72
73void DecorationThemeMetaData::setPluginId(const QString &id)
74{
75 d->pluginId = id;
76}
77
78DecorationThemeProvider::DecorationThemeProvider(QObject *parent)
79 : QObject(parent)
80{
81}
82
83DecorationThemeMetaData::DecorationThemeMetaData(const DecorationThemeMetaData &other) = default;
84
85DecorationThemeMetaData &DecorationThemeMetaData::operator=(const DecorationThemeMetaData &other) = default;
86
87#include "moc_decorationthemeprovider.cpp"
Class providing type-safe access to data of themes.
QString themeName() const
Internal name of the theme.
KDecoration3::BorderSize borderSize() const
Border size of the decoration, this gets set based on the "recommendedBorderSize" key in the json met...
QString pluginId() const
plugin id of theme provider
QString visibleName() const
User-visible name of the theme.
QString configurationName() const
Name of the kcm to configure the decoration theme.
Framework for creating window decorations.
BorderSize
Border sizes are a combination of visual and accessibility features.
@ Normal
The default border size with borders on each side.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:55:48 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.