File indexing completed on 2024-05-26 04:40:58

0001 /*
0002     SPDX-FileCopyrightText: 2012 Sven Brauch <svenbrauch@googlemail.com>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #ifndef KDEVPLATFORM_TESTLANGUAGESUPPORT_H
0008 #define KDEVPLATFORM_TESTLANGUAGESUPPORT_H
0009 
0010 #include "language/interfaces/ilanguagesupport.h"
0011 
0012 #include <QObject>
0013 
0014 using namespace KDevelop;
0015 
0016 class TestLanguageSupport
0017     : public QObject
0018     , public KDevelop::ILanguageSupport
0019 {
0020     Q_OBJECT
0021     Q_INTERFACES(KDevelop::ILanguageSupport)
0022 
0023 public:
0024     using QObject::QObject;
0025 
0026     KDevelop::ParseJob* createParseJob(const IndexedString& url) override;
0027     QString name() const override;
0028 
0029 Q_SIGNALS:
0030     void aboutToCreateParseJob(const IndexedString& url, KDevelop::ParseJob** job);
0031     void parseJobCreated(KDevelop::ParseJob* job);
0032 };
0033 
0034 #endif