From 2270cb2b4e57b8e3d82dd1cf692eea75a4342c45 Mon Sep 17 00:00:00 2001 From: Hugo Lima Date: Fri, 21 Aug 2009 18:36:37 -0300 Subject: Removed QtDocGenerator dependence from BoostPythonGenerator, so a lot of function were moved from BoostPythonGenerator to the Generator class. In other words, QtDocGenerator finally compiles and their unit test pass :-) --- generator.h | 46 +++++++++++----------------------------------- 1 file changed, 11 insertions(+), 35 deletions(-) (limited to 'generator.h') diff --git a/generator.h b/generator.h index 529d9b249..8040072aa 100644 --- a/generator.h +++ b/generator.h @@ -91,48 +91,24 @@ public: bool setup(const ApiExtractor& extractor, const QMap args); - virtual QMap options() const - { - return QMap(); - } + virtual QMap options() const; /// Returns the classes used to generate the binding code. - AbstractMetaClassList classes() const - { - return m_classes; - } + AbstractMetaClassList classes() const; - AbstractMetaFunctionList globalFunctions() const - { - return m_globalFunctions; - } + AbstractMetaFunctionList globalFunctions() const; - AbstractMetaEnumList globalEnums() const - { - return m_globalEnums; - } + AbstractMetaEnumList globalEnums() const; - QList primitiveTypes() const - { - return m_primitiveTypes; - } + QList primitiveTypes() const; - QList containerTypes() const - { - return m_containerTypes; - } + QList containerTypes() const; /// Returns the output directory - QString outputDirectory() const - { - return m_outDir; - } + QString outputDirectory() const; /// Set the output directory - void setOutputDirectory(const QString &outDir) - { - m_outDir = outDir; - } + void setOutputDirectory(const QString &outDir); /** * Start the code generation, be sure to call setClasses before callign this method. @@ -169,9 +145,9 @@ public: * \param option some extra options * \return the metatype translated to binding source format */ - virtual QString translateType(const AbstractMetaType *metatype, - const AbstractMetaClass *context, - int option = NoOption) const = 0; + QString translateType(const AbstractMetaType *metatype, + const AbstractMetaClass *context, + int option = NoOption) const; /** * Function used to write the fucntion arguments on the class buffer. -- cgit v1.2.3