generator.h   generator.h 
skipping to change at line 154 skipping to change at line 154
/// Returns the number of generated items /// Returns the number of generated items
int numGenerated() const; int numGenerated() const;
/// Returns the number of generated items written /// Returns the number of generated items written
int numGeneratedAndWritten() const; int numGeneratedAndWritten() const;
/// Returns the generator's name. Used for cosmetic purposes. /// Returns the generator's name. Used for cosmetic purposes.
virtual const char* name() const = 0; virtual const char* name() const = 0;
/// Returns true if the generator should generate any code for the Abst /// Returns true if the generator should generate any code for the Type
ractMetaClass Entry.
bool shouldGenerateTypeEntry(const TypeEntry*) const;
/// Returns true if the generator should generate any code for the Abst
ractMetaClass.
virtual bool shouldGenerate(const AbstractMetaClass *) const; virtual bool shouldGenerate(const AbstractMetaClass *) const;
/// Returns the subdirectory used to write the binding code of an Abstr actMetaClass. /// Returns the subdirectory used to write the binding code of an Abstr actMetaClass.
virtual QString subDirectoryForClass(const AbstractMetaClass* clazz) co nst; virtual QString subDirectoryForClass(const AbstractMetaClass* clazz) co nst;
/** /**
* Translate metatypes to binding source format. * Translate metatypes to binding source format.
* \param metatype a pointer to metatype * \param metatype a pointer to metatype
* \param context the current meta class * \param context the current meta class
* \param option some extra options * \param option some extra options
skipping to change at line 228 skipping to change at line 231
* available on the given type. The TypeEntry must be a value-type * available on the given type. The TypeEntry must be a value-type
* or else it will return an empty list. * or else it will return an empty list.
* \param type a TypeEntry that is expected to be a value-type * \param type a TypeEntry that is expected to be a value-type
* \return a list of constructors that could be used as implicit conv erters * \return a list of constructors that could be used as implicit conv erters
*/ */
AbstractMetaFunctionList implicitConversions(const TypeEntry* type) con st; AbstractMetaFunctionList implicitConversions(const TypeEntry* type) con st;
/// Convenience function for implicitConversions(const TypeEntry* type) . /// Convenience function for implicitConversions(const TypeEntry* type) .
AbstractMetaFunctionList implicitConversions(const AbstractMetaType* me taType) const; AbstractMetaFunctionList implicitConversions(const AbstractMetaType* me taType) const;
/// Check if type is a pointer.
static bool isPointer(const AbstractMetaType* type);
/// Tells if the type or class is an Object (or QObject) Type.
static bool isObjectType(const TypeEntry* type);
static bool isObjectType(const ComplexTypeEntry* type);
static bool isObjectType(const AbstractMetaType* metaType);
static bool isObjectType(const AbstractMetaClass* metaClass);
/**
* Tries to build a minimal constructor for the type.
* It will check first for a user defined default constructor.
* Returns a null string if it fails.
*/
QString minimalConstructor(const TypeEntry* type) const;
QString minimalConstructor(const AbstractMetaType* type) const;
QString minimalConstructor(const AbstractMetaClass* metaClass) const;
protected: protected:
/** /**
* Returns the file name used to write the binding code of an Abstrac tMetaClass. * Returns the file name used to write the binding code of an Abstrac tMetaClass.
* \param metaClass the AbstractMetaClass for which the file name mus t be * \param metaClass the AbstractMetaClass for which the file name mus t be
* returned * returned
* \return the file name used to write the binding code for the class * \return the file name used to write the binding code for the class
*/ */
virtual QString fileNameForClass(const AbstractMetaClass* metaClass) co nst = 0; virtual QString fileNameForClass(const AbstractMetaClass* metaClass) co nst = 0;
virtual bool doSetup(const QMap<QString, QString>& args) = 0; virtual bool doSetup(const QMap<QString, QString>& args) = 0;
 End of changes. 2 change blocks. 
2 lines changed or deleted 23 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/