Baloo

global.h
1 /*
2  This file is part of the KDE Baloo Project
3  SPDX-FileCopyrightText: 2015 Ashish Bansal <[email protected]>
4 
5  SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
6 */
7 
8 #ifndef GLOBAL_H
9 #define GLOBAL_H
10 
11 #include "database.h"
12 
13 #include <QString>
14 
15 namespace Baloo {
16 
17  /*
18  * If BALOO_DB_PATH environment variable is set, then it returns value of that variable.
19  * Otherwise returns the default database path.
20  */
21  BALOO_ENGINE_EXPORT QString fileIndexDbPath();
22 
23  /*
24  * lmdb doesn't support opening database twice at the same time in the single process
25  * because if we open database twice at the same time and closes one of them, then it
26  * would invalidate the handles of both the instances and may lead to crash or some
27  * other undesirable behaviour. So, keeping one global database would solve this problem
28  * and improve the performance too.
29  */
30  BALOO_ENGINE_EXPORT Database* globalDatabaseInstance();
31 }
32 
33 #endif // GLOBAL_H
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 Mon Dec 11 2023 03:53:56 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.