You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
1.1 KiB
62 lines
1.1 KiB
#ifndef breezesettingsprovider_h |
|
#define breezesettingsprovider_h |
|
/* |
|
* 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 |
|
*/ |
|
|
|
#include "breezedecoration.h" |
|
#include "breezesettings.h" |
|
#include "breeze.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; |
|
|
|
}; |
|
|
|
} |
|
|
|
#endif
|
|
|