diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2010-03-02 11:27:26 -0300 |
---|---|---|
committer | Marcelo Lira <marcelo.lira@openbossa.org> | 2010-03-02 14:44:59 -0300 |
commit | ea999da07ab6d244ffb982d7a3c86da1a8976f44 (patch) | |
tree | c1625daa690150f9178c3ce07161d362fc35c334 /shibokengenerator.cpp | |
parent | caa2fdfe7fa7c9450bb06dc1e6c017a04e6fa403 (diff) |
Adds convenience methods to return the name of extended conversion functions.
ShibokenGenerator got the methods:
* QString extendedIsConvertibleFunctionName(TypeEntry*)
Returns the name of an extended "isConvertible" function.
* QString extendedToCppFunctionName(TypeEntry*)
Returns the name of an extended "toCpp" function.
Diffstat (limited to 'shibokengenerator.cpp')
-rw-r--r-- | shibokengenerator.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/shibokengenerator.cpp b/shibokengenerator.cpp index 8ee643fba..912197802 100644 --- a/shibokengenerator.cpp +++ b/shibokengenerator.cpp @@ -1251,6 +1251,16 @@ QString ShibokenGenerator::getModuleHeaderFileName(const QString& moduleName) co return QString("%1_python.h").arg(result.toLower()); } +QString ShibokenGenerator::extendedIsConvertibleFunctionName(const TypeEntry* targetType) const +{ + return QString("ExtendedIsConvertible_%1_%2").arg(targetType->targetLangPackage().replace('.', '_')).arg(targetType->name()); +} + +QString ShibokenGenerator::extendedToCppFunctionName(const TypeEntry* targetType) const +{ + return QString("ExtendedToCpp_%1_%2").arg(targetType->targetLangPackage().replace('.', '_')).arg(targetType->name()); +} + bool ShibokenGenerator::isCopyable(const AbstractMetaClass *metaClass) { |