File indexing completed on 2024-05-05 05:00:05

0001 /*
0002     SPDX-FileCopyrightText: 2008 Xavier Vello <xavier.vello@gmail.com>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef KCM_BOOKMARKS_H
0008 #define KCM_BOOKMARKS_H
0009 
0010 // KDE
0011 #include <kcmodule.h>
0012 
0013 // Local
0014 #include "ui_bookmarks.h"
0015 
0016 class BookmarksConfigModule : public KCModule
0017 {
0018     Q_OBJECT
0019 
0020 public:
0021     //TODO KF6: when dropping compatibility with KF5, remove QVariantList argument
0022     BookmarksConfigModule(QObject *parent, const KPluginMetaData &md={}, const QVariantList &args={});
0023     ~BookmarksConfigModule() override;
0024 
0025     void load() override;
0026     void save() override;
0027     void defaults() override;
0028 
0029 #if QT_VERSION_MAJOR < 6
0030     void setNeedsSave(bool needs) {emit changed(needs);}
0031 #endif
0032 
0033 private Q_SLOTS:
0034     void clearCache();
0035     void configChanged();
0036 
0037 private:
0038     Ui::BookmarksConfigUI ui;
0039 };
0040 
0041 #endif // KCM_BOOKMARKS_H
0042