From 18939a16a6ec9963887e00fd63918b7deb740fde Mon Sep 17 00:00:00 2001 From: Marcelo Lira Date: Fri, 19 Mar 2010 11:41:42 -0300 Subject: 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. --- shibokengenerator.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'shibokengenerator.h') 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& args); // verify whether the class is copyable -- cgit v1.2.3