Baloo

databasedbis.h
1/*
2 This file is part of the KDE Baloo project.
3 SPDX-FileCopyrightText: 2015 Vishesh Handa <vhanda@kde.org>
4
5 SPDX-License-Identifier: LGPL-2.1-or-later
6*/
7
8#ifndef BALOO_DATABASE_DBIS_H
9#define BALOO_DATABASE_DBIS_H
10
11#include <lmdb.h>
12
13namespace Baloo {
14
15class DatabaseDbis {
16public:
17 MDB_dbi postingDbi = 0;
18 MDB_dbi positionDBi = 0;
19
20 MDB_dbi docTermsDbi = 0;
21 MDB_dbi docFilenameTermsDbi = 0;
22 MDB_dbi docXattrTermsDbi = 0;
23
24 MDB_dbi idTreeDbi = 0;
25 MDB_dbi idFilenameDbi = 0;
26
27 MDB_dbi docTimeDbi = 0;
28 MDB_dbi docDataDbi = 0;
29 MDB_dbi contentIndexingDbi = 0;
30
31 MDB_dbi mtimeDbi = 0;
32 MDB_dbi failedIdDbi = 0;
33
34 DatabaseDbis() = default;
35
36 bool isValid() {
37 return postingDbi && positionDBi && docTermsDbi && docFilenameTermsDbi && docXattrTermsDbi &&
38 idTreeDbi && idFilenameDbi && docTimeDbi && docDataDbi && contentIndexingDbi && mtimeDbi
39 && failedIdDbi;
40 }
41};
42
43}
44#endif
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 Sat Dec 21 2024 16:56:58 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.