aboutsummaryrefslogtreecommitdiffstats
path: root/libshiboken/sbkenum.h
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2011-07-05 11:59:33 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:15:27 -0300
commit219ee31ce4cf9c45b9a53cd267df3e8e7b53b0f2 (patch)
tree5619e8d5e5f66dc8b5e234b1589e0ba35e556bdd /libshiboken/sbkenum.h
parent878c6c81a7469335e70856f77142473bb358051d (diff)
Now the generated code stores the enum cpp name on the PyThon type.
This is necessary for finding out the enum name during the signal match function. Fixed the signal register function for signals with default values. Fixes bug #903. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'libshiboken/sbkenum.h')
-rw-r--r--libshiboken/sbkenum.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/libshiboken/sbkenum.h b/libshiboken/sbkenum.h
index 95b500ca4..c61afed91 100644
--- a/libshiboken/sbkenum.h
+++ b/libshiboken/sbkenum.h
@@ -44,7 +44,11 @@ inline bool isShibokenEnum(PyObject* pyObj)
namespace Enum
{
LIBSHIBOKEN_API PyObject* newItem(PyTypeObject* enumType, long itemValue, const char* itemName = 0);
- LIBSHIBOKEN_API PyTypeObject* newType(const char* name);
+
+ LIBSHIBOKEN_API PyTypeObject* newType(const char* name); //Deprecated use 'newTypeWithName'
+ LIBSHIBOKEN_API PyTypeObject* newTypeWithName(const char* name, const char* cppName);
+ LIBSHIBOKEN_API const char* getCppName(PyTypeObject* type);
+
LIBSHIBOKEN_API long getValue(PyObject* enumItem);
LIBSHIBOKEN_API PyObject* getEnumItemFromValue(PyTypeObject* enumType, long itemValue);
}