Baloo

databasedbis.h
1 /*
2  This file is part of the KDE Baloo project.
3  SPDX-FileCopyrightText: 2015 Vishesh Handa <[email protected]>
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 
13 namespace Baloo {
14 
15 class DatabaseDbis {
16 public:
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
bool isValid(QStringView ifopt)
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.