SourceForge.net Logo

PythonQtPrivate Class Reference

internal PythonQt details More...

#include <PythonQt.h>

List of all members.

Public Member Functions

 PythonQtPrivate ()
 ~PythonQtPrivate ()
bool isPythonQtObjectPtrMetaId (int id)
 returns if the id is the id for PythonQtObjectPtr
void removeWrapperPointer (void *obj)
 remove the wrapper ptr again
void removeSignalEmitter (QObject *obj)
 called when a signal emitting QObject is destroyed to remove the signal handler from the hash map
PyObject * wrapQObject (QObject *obj)
 wrap the given QObject into a Python object (or return existing wrapper!)
PyObject * wrapPtr (void *ptr, const QByteArray &name)
 wrap the given ptr into a Python object (or return existing wrapper!) if there is a known QObject of that name or a known wrapper in the factory
void registerClass (const QMetaObject *metaobject)
 registers a QObject derived class to PythonQt (this is implicitly called by addObject as well)
void registerQObjectClassNames (const QStringList &names)
void addDecorators (QObject *o, bool instanceDeco, bool classDeco)
 add a decorator object
void addVariantWrapper (const char *typeName, QObject *wrapper)
 add a wrapper object for the given qvariant, also does an addConstructors() to add constructors for variants
QList< PythonQtSlotInfo * > getDecoratorSlots (const QByteArray &className)
 get list of all slots that are available as decorator slots
bool isEnumType (const QMetaObject *meta, const QByteArray &name)
PythonQtMetaObjectWrappercreateNewPythonQtMetaObjectWrapper (PythonQtClassInfo *info)
 helper method that creates a PythonQtMetaObjectWrapper object
PythonQtWrappercreateNewPythonQtWrapper (QObject *obj, PythonQtClassInfo *info, void *wrappedPtr=NULL)
 helper method that creates a PythonQtWrapper object and registers it in the object map
PythonQtVariantWrappercreateNewPythonQtVariantWrapper (const QVariant &variant)
 helper method that creates a PythonQtVariantWrapper object
PythonQtClassInfogetClassInfo (const QMetaObject *meta)
 get the class info for a meta object (if available)
PythonQtSlotInfogetConstructorSlot (const QByteArray &className)
 get the constructor slot for the given classname
PythonQtSlotInfogetDestructorSlot (const QByteArray &className)
 get the destructor slot for the given classname
PythonQtObjectPtr createModule (const QString &name, PyObject *pycode)
 creates the new module from the given pycode

Friends

class PythonQt


Detailed Description

internal PythonQt details

Definition at line 365 of file PythonQt.h.


Constructor & Destructor Documentation

PythonQtPrivate::PythonQtPrivate (  ) 

PythonQtPrivate::~PythonQtPrivate (  ) 


Member Function Documentation

void PythonQtPrivate::addDecorators ( QObject *  o,
bool  instanceDeco,
bool  classDeco 
)

add a decorator object

void PythonQtPrivate::addVariantWrapper ( const char *  typeName,
QObject *  wrapper 
)

add a wrapper object for the given qvariant, also does an addConstructors() to add constructors for variants

PythonQtObjectPtr PythonQtPrivate::createModule ( const QString &  name,
PyObject *  pycode 
)

creates the new module from the given pycode

PythonQtMetaObjectWrapper* PythonQtPrivate::createNewPythonQtMetaObjectWrapper ( PythonQtClassInfo info  ) 

helper method that creates a PythonQtMetaObjectWrapper object

PythonQtVariantWrapper* PythonQtPrivate::createNewPythonQtVariantWrapper ( const QVariant &  variant  ) 

helper method that creates a PythonQtVariantWrapper object

PythonQtWrapper* PythonQtPrivate::createNewPythonQtWrapper ( QObject *  obj,
PythonQtClassInfo info,
void *  wrappedPtr = NULL 
)

helper method that creates a PythonQtWrapper object and registers it in the object map

PythonQtClassInfo* PythonQtPrivate::getClassInfo ( const QMetaObject *  meta  )  [inline]

get the class info for a meta object (if available)

Definition at line 420 of file PythonQt.h.

00420 { return _knownQtClasses.value(meta->className()); }

PythonQtSlotInfo* PythonQtPrivate::getConstructorSlot ( const QByteArray &  className  )  [inline]

get the constructor slot for the given classname

Definition at line 423 of file PythonQt.h.

00423 { return _constructorSlots.value(className); }

QList<PythonQtSlotInfo*> PythonQtPrivate::getDecoratorSlots ( const QByteArray &  className  ) 

get list of all slots that are available as decorator slots

PythonQtSlotInfo* PythonQtPrivate::getDestructorSlot ( const QByteArray &  className  )  [inline]

get the destructor slot for the given classname

Definition at line 426 of file PythonQt.h.

00426 { return _destructorSlots.value(className); }

bool PythonQtPrivate::isEnumType ( const QMetaObject *  meta,
const QByteArray &  name 
)

check if the enum is either part of the meta class or contains a scope and is an enum of another known metaobject (and as last resort, of the Qt namespace)

bool PythonQtPrivate::isPythonQtObjectPtrMetaId ( int  id  )  [inline]

returns if the id is the id for PythonQtObjectPtr

Definition at line 374 of file PythonQt.h.

00374 { return _PythonQtObjectPtr_metaId == id; }

void PythonQtPrivate::registerClass ( const QMetaObject *  metaobject  ) 

registers a QObject derived class to PythonQt (this is implicitly called by addObject as well)

void PythonQtPrivate::registerQObjectClassNames ( const QStringList &  names  ) 

as an alternative to registerClass, you can tell PythonQt the names of QObject derived classes and it will register the classes when it first sees a pointer to such a derived class

void PythonQtPrivate::removeSignalEmitter ( QObject *  obj  ) 

called when a signal emitting QObject is destroyed to remove the signal handler from the hash map

void PythonQtPrivate::removeWrapperPointer ( void *  obj  ) 

remove the wrapper ptr again

PyObject* PythonQtPrivate::wrapPtr ( void *  ptr,
const QByteArray &  name 
)

wrap the given ptr into a Python object (or return existing wrapper!) if there is a known QObject of that name or a known wrapper in the factory

PyObject* PythonQtPrivate::wrapQObject ( QObject *  obj  ) 

wrap the given QObject into a Python object (or return existing wrapper!)


Friends And Related Function Documentation

friend class PythonQt [friend]

Definition at line 484 of file PythonQt.h.


The documentation for this class was generated from the following file:

Generated on Tue Mar 31 15:35:32 2009 for PythonQt by  doxygen 1.5.8