File indexing completed on 2024-05-12 05:28:39

0001 /*
0002  * SPDX-FileCopyrightText: 2014 Hugo Pereira Da Costa <hugo.pereira@free.fr>
0003  *
0004  * SPDX-License-Identifier: GPL-2.0-or-later
0005  */
0006 
0007 #pragma once
0008 
0009 #include "breezestyleconfig.h"
0010 
0011 #include <KCModule>
0012 
0013 namespace Breeze
0014 {
0015 //* configuration module
0016 class ConfigurationModule : public KCModule
0017 {
0018     Q_OBJECT
0019 
0020 public:
0021 #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
0022     ConfigurationModule(QObject *parent, const KPluginMetaData &data);
0023 #else
0024     ConfigurationModule(QWidget *parent, const QVariantList &args);
0025 #endif
0026 
0027 public Q_SLOTS:
0028 
0029     void defaults() override;
0030     void load() override;
0031     void save() override;
0032 
0033 private:
0034     //* configuration
0035     StyleConfig *m_config;
0036 };
0037 
0038 }