File indexing completed on 2024-05-19 04:41:36

0001 /*
0002     SPDX-FileCopyrightText: 2006 Andreas Pakulat <apaku@gmx.de>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef QMAKEDRIVER_H
0008 #define QMAKEDRIVER_H
0009 
0010 #include <QString>
0011 
0012 #include "parser_export.h"
0013 
0014 namespace QMake
0015 {
0016 class ProjectAST;
0017 /**
0018  * Class to parse a QMake project file or a string containing a QMake project structure
0019  */
0020 class KDEVQMAKEPARSER_EXPORT Driver
0021 {
0022     public:
0023         Driver();
0024         bool readFile( const QString&, const char* = nullptr );
0025         void setContent( const QString& );
0026         void setDebug( bool );
0027         bool parse( ProjectAST** ast );
0028     private:
0029         QString m_content;
0030         bool m_debug = false;
0031 };
0032 }
0033 
0034 #endif
0035