summaryrefslogtreecommitdiffstats
path: root/generator/shibokengenerator.h
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2010-12-22 14:58:37 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2010-12-23 11:03:04 -0300
commit1f28cdd2994f9a60e05ce887ad5568e3a9c648e9 (patch)
tree5ed35322e068795a932e6e4e7c26501434a91902 /generator/shibokengenerator.h
parentec2ca67a1b93b5890dacaa3683c0a6079906bd5b (diff)
downloadshiboken-1f28cdd2994f9a60e05ce887ad5568e3a9c648e9.tar.gz
shiboken-1f28cdd2994f9a60e05ce887ad5568e3a9c648e9.tar.xz
shiboken-1f28cdd2994f9a60e05ce887ad5568e3a9c648e9.zip
Added support for promoting enums from removed namespaces to upper scope.
Classes in namespaces marked not to be generated are always moved to upper scopes, the current modification add this same behaviour to enums. Tests were also added. Reviewed by Lauro Moura <lauro.neto@openbossa.org> Reviewed by Renato Ara├║jo <renato.filho@openbossa.org>
Diffstat (limited to 'generator/shibokengenerator.h')
-rw-r--r--generator/shibokengenerator.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/generator/shibokengenerator.h b/generator/shibokengenerator.h
index 74396eb0..ade04662 100644
--- a/generator/shibokengenerator.h
+++ b/generator/shibokengenerator.h
@@ -209,6 +209,11 @@ public:
/// Verifies if the class should have a C++ wrapper generated for it, instead of only a Python wrapper.
static bool shouldGenerateCppWrapper(const AbstractMetaClass* metaClass);
+ /// Adds enums eligible for generation from classes/namespaces marked not to be generated.
+ static void lookForEnumsInClassesNotToBeGenerated(AbstractMetaEnumList& enumList, const AbstractMetaClass* metaClass);
+ /// Returns the enclosing class for an enum, or NULL if it should be global.
+ const AbstractMetaClass* getProperEnclosingClassForEnum(const AbstractMetaEnum* metaEnum);
+
static QString wrapperName(const AbstractMetaClass* metaClass);
static QString fullPythonFunctionName(const AbstractMetaFunction* func);