From dfa423ac3109e0e40cba5f43471b34b98ed3189d Mon Sep 17 00:00:00 2001 From: Hugo Lima Date: Thu, 20 Aug 2009 13:48:45 -0300 Subject: Removed all generator stuff from APIExtractor, this stuff should be moved to the generator, and the apiextractor library should be just what their name means, an API extractor. This break the APIExtractor source compatibility with no mercy! --- apiextractor.h | 35 +++++++++++++++-------------------- 1 file changed, 15 insertions(+), 20 deletions(-) (limited to 'apiextractor.h') diff --git a/apiextractor.h b/apiextractor.h index 301e8cdd3..cc98cd15a 100644 --- a/apiextractor.h +++ b/apiextractor.h @@ -24,36 +24,31 @@ #ifndef APIEXTRACTOR_H #define APIEXTRACTOR_H -#include -#include -#include +#include "reporthandler.h" +#include -class Generator; +class AbstractMetaBuilder; +class QIODevice; class ApiExtractor { public: - ApiExtractor(int argc, char** argv); + ApiExtractor(); ~ApiExtractor(); - void addGenerator(Generator* generator); - void setVersionHandler(void (*versionHandler)(const char*)) - { - m_versionHandler = versionHandler; - } - - int exec(); + void setTypeSystem(const QString& typeSystemFileName); + void setCppFileName(const QString& cppFileName); + void setDebugLevel(ReportHandler::DebugLevel debugLevel); + void setSupressWarnings(bool value); + void addTypesystemSearchPath(const QString& path); + void addIncludePath(const QString& path); + bool run(); private: - QLinkedList m_generators; - QMap m_args; QString m_typeSystemFileName; - QString m_globalHeaderFileName; - const char* m_programName; - void (*m_versionHandler)(const char*); - - bool parseGeneralArgs(); - void printUsage(); + QString m_cppFileName; + QStringList m_includePaths; + AbstractMetaBuilder* m_builder; // disable copy ApiExtractor(const ApiExtractor&); -- cgit v1.2.3