File indexing completed on 2024-05-12 04:39:28

0001 /*
0002     SPDX-FileCopyrightText: 2012 Miha Čančula <miha@noughmad.eu>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef CTESTFINDJOB_H
0008 #define CTESTFINDJOB_H
0009 
0010 #include <KJob>
0011 #include <util/path.h>
0012 
0013 namespace KDevelop {
0014 class IndexedString;
0015 class ReferencedTopDUContext;
0016 }
0017 
0018 class CTestSuite;
0019 
0020 class CTestFindJob : public KJob
0021 {
0022     Q_OBJECT
0023     
0024 public:
0025     explicit CTestFindJob(CTestSuite* suite, QObject* parent = nullptr);
0026     void start() override;
0027     
0028 private Q_SLOTS:
0029     void findTestCases();
0030     void updateReady(const KDevelop::IndexedString& document, const KDevelop::ReferencedTopDUContext& context);
0031 
0032 protected:
0033     bool doKill() override;
0034 private:
0035     CTestSuite* m_suite;
0036     QList<KDevelop::Path> m_pendingFiles;
0037 };
0038 
0039 #endif // CTESTFINDJOB_H