diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2010-03-19 11:41:42 -0300 |
---|---|---|
committer | Marcelo Lira <marcelo.lira@openbossa.org> | 2010-03-19 15:22:21 -0300 |
commit | 18939a16a6ec9963887e00fd63918b7deb740fde (patch) | |
tree | 96592157a029d190e7c97b628de5dd1d92cacaae /shibokengenerator.h | |
parent | 72786ec7a77908530080f1e44a12080128b8c367 (diff) |
Adds ShibokenGenerator::buildAbstractMetaTypeFromString.
This method tries to build an AbstractMetaType from a string, it is
used by guessCPythonCheckFunction to better handle type replacements
identifying types already known by the type database for the currently
generated, instead of treating said replacements as mere blobs.
Diffstat (limited to 'shibokengenerator.h')
-rw-r--r-- | shibokengenerator.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/shibokengenerator.h b/shibokengenerator.h index 529027e98..52a3d7b65 100644 --- a/shibokengenerator.h +++ b/shibokengenerator.h @@ -301,6 +301,14 @@ public: /// Returns true if the user don't want verbose error messages on the generated bindings. bool verboseErrorMessagesDisabled() const; + /** + * Builds an AbstractMetaType object from a QString. + * Returns NULL if no type could be built from the string. + * \param typeString The string describing the type to be built. + * \return A new AbstractMetaType object that must be deleted by the caller, or a NULL pointer in case of failure. + */ + AbstractMetaType* buildAbstractMetaTypeFromString(QString typeString); + protected: bool doSetup(const QMap<QString, QString>& args); // verify whether the class is copyable |