File indexing completed on 2024-05-19 03:54:26
0001 /* 0002 This file is part of the KDE Baloo Project 0003 SPDX-FileCopyrightText: 2014 Vishesh Handa <me@vhanda.in> 0004 0005 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0006 */ 0007 0008 #ifndef KDED_BALOO_SEARCH_MODULE_H_ 0009 #define KDED_BALOO_SEARCH_MODULE_H_ 0010 0011 #include <KDEDModule> 0012 #include <KDirNotify> 0013 #include <QUrl> 0014 0015 namespace Baloo { 0016 0017 class SearchModule : public KDEDModule 0018 { 0019 Q_OBJECT 0020 0021 public: 0022 SearchModule(QObject* parent, const QList<QVariant>&); 0023 0024 private Q_SLOTS: 0025 void init(); 0026 void registerSearchUrl(const QString& url); 0027 void unregisterSearchUrl(const QString& url); 0028 0029 void slotBalooFileDbChanged(); 0030 void slotFileMetaDataChanged(const QStringList& list); 0031 private: 0032 QList<QUrl> m_searchUrls; 0033 org::kde::KDirNotify* m_dirNotify; 0034 }; 0035 0036 } 0037 0038 #endif