summaryrefslogtreecommitdiffstats
path: root/generator.cpp
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2010-05-31 15:53:17 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2010-06-03 11:11:02 -0300
commitbe4399fccc20a9c957722a305cc604526fc9bd61 (patch)
treefda0ce07cb851aebd82be7f58b59732bdcf41e36 /generator.cpp
parent4aad76e02a6d4d39b018b83e0d21fc976b153930 (diff)
downloadgeneratorrunner-be4399fccc20a9c957722a305cc604526fc9bd61.tar.gz
generatorrunner-be4399fccc20a9c957722a305cc604526fc9bd61.tar.xz
generatorrunner-be4399fccc20a9c957722a305cc604526fc9bd61.zip
Added methods Generator::findAbstractMetaEnum.
The new methods returns an AbstractMetaEnum for a given TypeEntry, EnumTypeEntry, FlagsTypeEntry or AbstractMetaType. Reviewed by Renato Ara├║jo <renato.filho@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'generator.cpp')
-rw-r--r--generator.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/generator.cpp b/generator.cpp
index 69828ba..d5d1b64 100644
--- a/generator.cpp
+++ b/generator.cpp
@@ -97,6 +97,26 @@ QList<const ContainerTypeEntry*> Generator::containerTypes() const
return m_d->apiextractor->containerTypes();
}
+const AbstractMetaEnum* Generator::findAbstractMetaEnum(const EnumTypeEntry* typeEntry) const
+{
+ return m_d->apiextractor->findAbstractMetaEnum(typeEntry);
+}
+
+const AbstractMetaEnum* Generator::findAbstractMetaEnum(const TypeEntry* typeEntry) const
+{
+ return m_d->apiextractor->findAbstractMetaEnum(typeEntry);
+}
+
+const AbstractMetaEnum* Generator::findAbstractMetaEnum(const FlagsTypeEntry* typeEntry) const
+{
+ return m_d->apiextractor->findAbstractMetaEnum(typeEntry);
+}
+
+const AbstractMetaEnum* Generator::findAbstractMetaEnum(const AbstractMetaType* metaType) const
+{
+ return m_d->apiextractor->findAbstractMetaEnum(metaType);
+}
+
QSet< QString > Generator::qtMetaTypeDeclaredTypeNames() const
{
return m_d->apiextractor->qtMetaTypeDeclaredTypeNames();