Baloo

positiondb.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_POSITIONDB_H
9#define BALOO_POSITIONDB_H
10
11#include "engine_export.h"
12
13#include <QByteArray>
14#include <QMap>
15#include <QVector>
16#include <lmdb.h>
17
18namespace Baloo {
19
20class PositionInfo;
21class VectorPositionInfoIterator;
22
23class BALOO_ENGINE_EXPORT PositionDB
24{
25public:
26 explicit PositionDB(MDB_dbi dbi, MDB_txn* txn);
27 ~PositionDB();
28
29 static MDB_dbi create(MDB_txn* txn);
30 static MDB_dbi open(MDB_txn* txn);
31
32 void put(const QByteArray& term, const QVector<PositionInfo>& list);
34 void del(const QByteArray& term);
35
36 VectorPositionInfoIterator* iter(const QByteArray& term);
37
39private:
40 MDB_txn* m_txn;
41 MDB_dbi m_dbi;
42};
43
44}
45
46#endif // BALOO_POSITIONDB_H
Implements storage for docIds without any associated data Instantiated for:
Definition coding.cpp:11
KIOCORE_EXPORT TransferJob * get(const QUrl &url, LoadType reload=NoReload, JobFlags flags=DefaultFlags)
KIOCORE_EXPORT TransferJob * put(const QUrl &url, int permissions, JobFlags flags=DefaultFlags)
QAction * create(StandardAction id, const QObject *recvr, const char *slot, QObject *parent)
KGuiItem open()
KGuiItem del()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 4 2024 11:58:31 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.