Warning, file /plasma/oxygen/kdecoration/oxygenexceptionlist.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 #ifndef oxygenexceptionlist_h 0002 #define oxygenexceptionlist_h 0003 0004 ////////////////////////////////////////////////////////////////////////////// 0005 // oxygenexceptionlist.h 0006 // window decoration exceptions 0007 // ------------------- 0008 // 0009 // SPDX-FileCopyrightText: 2009 Hugo Pereira Da Costa <hugo.pereira@free.fr> 0010 // 0011 // SPDX-License-Identifier: MIT 0012 ////////////////////////////////////////////////////////////////////////////// 0013 0014 #include "oxygen.h" 0015 #include "oxygensettings.h" 0016 0017 #include <KSharedConfig> 0018 0019 namespace Oxygen 0020 { 0021 0022 //* oxygen exceptions list 0023 class ExceptionList 0024 { 0025 public: 0026 //* constructor from list 0027 explicit ExceptionList(const InternalSettingsList &exceptions = InternalSettingsList()) 0028 : _exceptions(exceptions) 0029 { 0030 } 0031 0032 //* exceptions 0033 const InternalSettingsList &get(void) const 0034 { 0035 return _exceptions; 0036 } 0037 0038 //* read from KConfig 0039 void readConfig(KSharedConfig::Ptr); 0040 0041 //* write to kconfig 0042 void writeConfig(KSharedConfig::Ptr); 0043 0044 private: 0045 //* generate exception group name for given exception index 0046 static QString exceptionGroupName(int index); 0047 0048 //* read configuration 0049 static void readConfig(KCoreConfigSkeleton *, KConfig *, const QString &); 0050 0051 //* write configuration 0052 static void writeConfig(KCoreConfigSkeleton *, KConfig *, const QString &); 0053 0054 //* exceptions 0055 InternalSettingsList _exceptions; 0056 }; 0057 } 0058 0059 #endif