File indexing completed on 2024-05-05 05:51:19
0001 /* This file is part of the KDE project 0002 SPDX-FileCopyrightText: 2008-2014 Dominik Haumann <dhaumann kde org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-only 0005 */ 0006 0007 #pragma once 0008 0009 #include <QHash> 0010 #include <QMutex> 0011 #include <QString> 0012 #include <QStringList> 0013 0014 class KateBtDatabase 0015 { 0016 public: 0017 KateBtDatabase() 0018 { 0019 } 0020 ~KateBtDatabase() 0021 { 0022 } 0023 0024 void loadFromFile(const QString &url); 0025 void saveToFile(const QString &url) const; 0026 0027 QString value(const QString &key); 0028 0029 void add(const QString &folder, const QStringList &files); 0030 0031 int size() const; 0032 0033 private: 0034 mutable QMutex mutex; 0035 QHash<QString, QStringList> db; 0036 }; 0037 0038 // kate: space-indent on; indent-width 4; replace-tabs on;