mirror of
https://gitgud.io/wackyideas/aerothemeplasma-kde6.git
synced 2024-08-15 00:43:45 +00:00
56 lines
973 B
C
56 lines
973 B
C
|
/*
|
||
|
* SPDX-FileCopyrightText: 2014 Hugo Pereira Da Costa <hugo.pereira@free.fr>
|
||
|
*
|
||
|
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||
|
*/
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
#include "breeze.h"
|
||
|
#include "breezedecoration.h"
|
||
|
#include "breezesettings.h"
|
||
|
|
||
|
#include <KSharedConfig>
|
||
|
|
||
|
#include <QObject>
|
||
|
|
||
|
namespace Breeze
|
||
|
{
|
||
|
class SettingsProvider : public QObject
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
//* destructor
|
||
|
~SettingsProvider();
|
||
|
|
||
|
//* singleton
|
||
|
static SettingsProvider *self();
|
||
|
|
||
|
//* internal settings for given decoration
|
||
|
InternalSettingsPtr internalSettings(Decoration *) const;
|
||
|
|
||
|
public Q_SLOTS:
|
||
|
|
||
|
//* reconfigure
|
||
|
void reconfigure();
|
||
|
|
||
|
private:
|
||
|
//* constructor
|
||
|
SettingsProvider();
|
||
|
|
||
|
//* default configuration
|
||
|
InternalSettingsPtr m_defaultSettings;
|
||
|
|
||
|
//* exceptions
|
||
|
InternalSettingsList m_exceptions;
|
||
|
|
||
|
//* config object
|
||
|
KSharedConfigPtr m_config;
|
||
|
|
||
|
//* singleton
|
||
|
static SettingsProvider *s_self;
|
||
|
};
|
||
|
|
||
|
}
|