aboutsummaryrefslogtreecommitdiffstats
path: root/apiextractor.h
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2009-08-20 13:48:45 -0300
committerHugo Lima <hugo.lima@openbossa.org>2009-08-20 13:48:45 -0300
commitdfa423ac3109e0e40cba5f43471b34b98ed3189d (patch)
treee900a9c1aeb99aa5a9cb2f90489c6629c81e6a57 /apiextractor.h
parent8f9ed5bd51827d96bda708121008b24bb3d55801 (diff)
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!
Diffstat (limited to 'apiextractor.h')
-rw-r--r--apiextractor.h35
1 files changed, 15 insertions, 20 deletions
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 <QLinkedList>
-#include <QMap>
-#include <QString>
+#include "reporthandler.h"
+#include <QStringList>
-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<Generator*> m_generators;
- QMap<QString, QString> 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&);