File indexing completed on 2024-04-14 03:49:46

0001 /*
0002     SPDX-FileCopyrightText: 2015 Vishesh Handa <vhanda@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.1-or-later
0005 */
0006 
0007 #ifndef BALOO_MAINHUB_H
0008 #define BALOO_MAINHUB_H
0009 
0010 #include <QObject>
0011 
0012 #include "filewatch.h"
0013 #include "fileindexscheduler.h"
0014 
0015 namespace Baloo {
0016 
0017 class Database;
0018 class FileIndexerConfig;
0019 
0020 class MainHub : public QObject
0021 {
0022     Q_OBJECT
0023     Q_CLASSINFO("D-Bus Interface", "org.kde.baloo.main")
0024 public:
0025     MainHub(Database* db, FileIndexerConfig* config, bool firstRun);
0026 
0027 public Q_SLOTS:
0028     Q_SCRIPTABLE void quit() const;
0029     Q_SCRIPTABLE void updateConfig();
0030 
0031 private:
0032     Database* m_db;
0033     FileIndexerConfig* m_config;
0034 
0035     FileWatch m_fileWatcher;
0036     FileIndexScheduler m_fileIndexScheduler;
0037 
0038 };
0039 }
0040 
0041 #endif // BALOO_MAINHUB_H