aboutsummaryrefslogtreecommitdiffstats
path: root/abstractmetabuilder.h
diff options
context:
space:
mode:
Diffstat (limited to 'abstractmetabuilder.h')
-rw-r--r--abstractmetabuilder.h17
1 files changed, 14 insertions, 3 deletions
diff --git a/abstractmetabuilder.h b/abstractmetabuilder.h
index 525d4d3b1..e676f1217 100644
--- a/abstractmetabuilder.h
+++ b/abstractmetabuilder.h
@@ -29,7 +29,10 @@
#include "typesystem.h"
#include "typeparser.h"
-#include <QtCore/QSet>
+#include <QSet>
+#include <QFileInfo>
+
+class TypeDatabase;
class APIEXTRACTOR_API AbstractMetaBuilder
{
@@ -160,8 +163,7 @@ public:
bool isQObject(const QString &qualifiedName);
bool isEnum(const QStringList &qualifiedName);
- void fixQObjectForScope(TypeDatabase *types,
- NamespaceModelItem item);
+ void fixQObjectForScope(TypeDatabase* types, NamespaceModelItem item);
// QtScript
QSet<QString> qtMetaTypeDeclaredTypeNames() const
@@ -169,6 +171,13 @@ public:
return m_qmetatypeDeclaredTypenames;
}
+ /**
+ * AbstractMetaBuilder should know what's the global header being used,
+ * so any class declared under this header wont have the include file
+ * filled.
+ */
+ void setGlobalHeader(const QString& globalHeader);
+
protected:
AbstractMetaClass *argumentToClass(ArgumentModelItem);
@@ -212,6 +221,7 @@ protected:
private:
void sortLists();
AbstractMetaArgumentList reverseList(const AbstractMetaArgumentList& list);
+ void setInclude(TypeEntry* te, const QString& fileName) const;
AbstractMetaClassList m_metaClasses;
AbstractMetaClassList m_templates;
@@ -241,6 +251,7 @@ private:
QSet<QString> m_qmetatypeDeclaredTypenames;
QString m_logDirectory;
+ QFileInfo m_globalHeader;
};
#endif // ABSTRACTMETBUILDER_H