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 <QString> 0010 #include <QStringList> 0011 #include <QThread> 0012 0013 class KateBtDatabase; 0014 0015 class BtFileIndexer : public QThread 0016 { 0017 Q_OBJECT 0018 public: 0019 explicit BtFileIndexer(KateBtDatabase *db); 0020 ~BtFileIndexer() override; 0021 void setSearchPaths(const QStringList &urls); 0022 0023 void setFilter(const QStringList &filter); 0024 0025 void cancel(); 0026 0027 protected: 0028 void run() override; 0029 void indexFiles(const QString &url); 0030 0031 private: 0032 bool cancelAsap; 0033 QStringList searchPaths; 0034 QStringList filter; 0035 0036 KateBtDatabase *db; 0037 }; 0038 0039 // kate: space-indent on; indent-width 4; replace-tabs on;