diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2011-02-16 08:22:51 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-09 19:10:15 -0300 |
commit | 2ca6e422c0a4c58fad74fe523abb25716df81ce2 (patch) | |
tree | 8af161216f0d3f9b63015bc64072ce8d3995bd68 | |
parent | 6fda7c1130e1ca7512ea2936ce2336722381fe07 (diff) |
Added the "ApiExtractor::setDropTypeEntries(QString)" method.
It gets a string of semicolon (;) separated type system entry names
that will be passed to the type system parser to deal with the given
entries.
Reviewed by Lauro Moura <lauro.neto@openbossa.org>
Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
-rw-r--r-- | apiextractor.cpp | 7 | ||||
-rw-r--r-- | apiextractor.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/apiextractor.cpp b/apiextractor.cpp index 700e85072..6443c0735 100644 --- a/apiextractor.cpp +++ b/apiextractor.cpp @@ -109,6 +109,13 @@ void ApiExtractor::setApiVersion(double version) TypeDatabase::instance()->setApiVersion(version); } +void ApiExtractor::setDropTypeEntries(QString dropEntries) +{ + dropEntries.remove(' '); + QStringList entries = dropEntries.split(';'); + TypeDatabase::instance()->setDropTypeEntries(entries); +} + AbstractMetaEnumList ApiExtractor::globalEnums() const { Q_ASSERT(m_builder); diff --git a/apiextractor.h b/apiextractor.h index b7d85c3fc..9874d1275 100644 --- a/apiextractor.h +++ b/apiextractor.h @@ -49,6 +49,7 @@ public: void addIncludePath(const QStringList& paths); void setLogDirectory(const QString& logDir); void setApiVersion(double version); + void setDropTypeEntries(QString dropEntries); AbstractMetaEnumList globalEnums() const; AbstractMetaFunctionList globalFunctions() const; |