/* This file is part of the KDE project SPDX-FileCopyrightText: 2007 Sebastian Trueg SPDX-FileCopyrightText: 2012-2014 Vishesh Handa SPDX-FileCopyrightText: 2020 Benjamin Port SPDX-License-Identifier: LGPL-2.0-only */ #pragma once #include #include "filteredfoldermodel.h" class BalooSettings; class BalooData; namespace Baloo { class ServerConfigModule : public KQuickManagedConfigModule { Q_OBJECT Q_PROPERTY(FilteredFolderModel *filteredModel READ filteredModel CONSTANT) Q_PROPERTY(BalooSettings *balooSettings READ balooSettings CONSTANT) public: ServerConfigModule(QObject *parent, const KPluginMetaData &metaData); ~ServerConfigModule() override; BalooSettings *balooSettings() const; FilteredFolderModel *filteredModel() const; Q_INVOKABLE void deleteIndex(); Q_INVOKABLE int rawIndexFileSize(); Q_INVOKABLE QString prettyIndexFileSize(); public Q_SLOTS: void load() override; void save() override; private: BalooData *m_data; FilteredFolderModel *m_filteredFolderModel; }; }