aboutsummaryrefslogtreecommitdiffstats
path: root/apiextractor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'apiextractor.cpp')
-rw-r--r--apiextractor.cpp51
1 files changed, 51 insertions, 0 deletions
diff --git a/apiextractor.cpp b/apiextractor.cpp
index 8a2805383..b81689baf 100644
--- a/apiextractor.cpp
+++ b/apiextractor.cpp
@@ -57,11 +57,22 @@ void ApiExtractor::addTypesystemSearchPath ( const QString& path )
TypeDatabase::instance()->addTypesystemPath(path);
}
+void ApiExtractor::addTypesystemSearchPath ( const QStringList& paths )
+{
+ foreach (QString path, paths)
+ addTypesystemSearchPath(path);
+}
+
void ApiExtractor::addIncludePath ( const QString& path )
{
m_includePaths << path;
}
+void ApiExtractor::addIncludePath ( const QStringList& paths )
+{
+ m_includePaths << paths;
+}
+
void ApiExtractor::setCppFileName(const QString& cppFileName)
{
m_cppFileName = cppFileName;
@@ -87,6 +98,46 @@ void ApiExtractor::setSilent ( bool value )
ReportHandler::setSilent(value);
}
+AbstractMetaEnumList ApiExtractor::globalEnums() const
+{
+ Q_ASSERT(m_builder);
+ return m_builder->globalEnums();
+}
+
+AbstractMetaFunctionList ApiExtractor::globalFunctions() const
+{
+ Q_ASSERT(m_builder);
+ return m_builder->globalFunctions();
+}
+
+AbstractMetaClassList ApiExtractor::classes() const
+{
+ Q_ASSERT(m_builder);
+ return m_builder->classes();
+}
+
+PrimitiveTypeEntryList ApiExtractor::primitiveTypes() const
+{
+ return TypeDatabase::instance()->primitiveTypes();
+}
+
+ContainerTypeEntryList ApiExtractor::containerTypes() const
+{
+ return TypeDatabase::instance()->containerTypes();
+}
+
+QSet<QString> ApiExtractor::qtMetaTypeDeclaredTypeNames() const
+{
+ Q_ASSERT(m_builder);
+ return m_builder->qtMetaTypeDeclaredTypeNames();
+}
+
+int ApiExtractor::classCount() const
+{
+ Q_ASSERT(m_builder);
+ return m_builder->classes().count();
+}
+
bool ApiExtractor::run()
{
if (m_builder)