Baloo

mainhub.h
1 /*
2  SPDX-FileCopyrightText: 2015 Vishesh Handa <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.1-or-later
5 */
6 
7 #ifndef BALOO_MAINHUB_H
8 #define BALOO_MAINHUB_H
9 
10 #include <QObject>
11 
12 #include "filewatch.h"
13 #include "fileindexscheduler.h"
14 
15 namespace Baloo {
16 
17 class Database;
18 class FileIndexerConfig;
19 
20 class MainHub : public QObject
21 {
22  Q_OBJECT
23  Q_CLASSINFO("D-Bus Interface", "org.kde.baloo.main")
24 public:
25  MainHub(Database* db, FileIndexerConfig* config, bool firstRun);
26 
27 public Q_SLOTS:
28  Q_SCRIPTABLE void quit() const;
29  Q_SCRIPTABLE void updateConfig();
30 
31 private:
32  Database* m_db;
33  FileIndexerConfig* m_config;
34 
35  FileWatch m_fileWatcher;
36  FileIndexScheduler m_fileIndexScheduler;
37 
38 };
39 }
40 
41 #endif // BALOO_MAINHUB_H
Q_OBJECTQ_OBJECT
Q_CLASSINFO(Name, Value)
Implements storage for docIds without any associated data Instantiated for:
Definition: coding.cpp:11
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Nov 29 2023 03:56:26 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.