Baloo

global.h
1/*
2 This file is part of the KDE Baloo Project
3 SPDX-FileCopyrightText: 2015 Ashish Bansal <bansal.ashish096@gmail.com>
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 "engine_export.h"
12#include <QString>
13
14namespace Baloo {
15 class Database;
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-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:20:16 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.