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.
60 lines
1.4 KiB
60 lines
1.4 KiB
#ifndef breezeexceptionlist_h |
|
#define breezeexceptionlist_h |
|
|
|
////////////////////////////////////////////////////////////////////////////// |
|
// breezeexceptionlist.h |
|
// window decoration exceptions |
|
// ------------------- |
|
// |
|
// SPDX-FileCopyrightText: 2009 Hugo Pereira Da Costa <hugo.pereira@free.fr> |
|
// |
|
// SPDX-License-Identifier: MIT |
|
////////////////////////////////////////////////////////////////////////////// |
|
|
|
#include "breeze.h" |
|
#include "breezesettings.h" |
|
|
|
#include <KSharedConfig> |
|
|
|
namespace Breeze |
|
{ |
|
//! breeze exceptions list |
|
class ExceptionList |
|
{ |
|
public: |
|
//! constructor from list |
|
explicit ExceptionList(const InternalSettingsList &exceptions = InternalSettingsList()) |
|
: _exceptions(exceptions) |
|
{ |
|
} |
|
|
|
//! exceptions |
|
const InternalSettingsList &get(void) const |
|
{ |
|
return _exceptions; |
|
} |
|
|
|
//! read from KConfig |
|
void readConfig(KSharedConfig::Ptr); |
|
|
|
//! write to kconfig |
|
void writeConfig(KSharedConfig::Ptr); |
|
|
|
protected: |
|
//! generate exception group name for given exception index |
|
static QString exceptionGroupName(int index); |
|
|
|
//! read configuration |
|
static void readConfig(KCoreConfigSkeleton *, KConfig *, const QString &); |
|
|
|
//! write configuration |
|
static void writeConfig(KCoreConfigSkeleton *, KConfig *, const QString &); |
|
|
|
private: |
|
//! exceptions |
|
InternalSettingsList _exceptions; |
|
}; |
|
|
|
} |
|
|
|
#endif
|
|
|