##// END OF EJS Templates
added support for setattr to allow derived classes to add own attributes...
added support for setattr to allow derived classes to add own attributes git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@66 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r28:cf202027b50b
r30:a523f73e74c6
Show More
PythonQtWrapper_QReadWriteLock.cpp
51 lines | 1.4 KiB | text/x-c | CppLexer
#include "PythonQtWrapper_QReadWriteLock.h"
#include <PythonQtSignalReceiver.h>
#include <PythonQtMethodInfo.h>
#include <PythonQtConversion.h>
#include <QVariant>
#include <qreadwritelock.h>
QReadWriteLock* PythonQtWrapper_QReadWriteLock::new_QReadWriteLock()
{
return new QReadWriteLock(); }
QReadWriteLock* PythonQtWrapper_QReadWriteLock::new_QReadWriteLock(QReadWriteLock::RecursionMode recursionMode)
{
return new QReadWriteLock(recursionMode); }
bool PythonQtWrapper_QReadWriteLock::tryLockForWrite(QReadWriteLock* theWrappedObject)
{
return theWrappedObject->tryLockForWrite();
}
void PythonQtWrapper_QReadWriteLock::lockForWrite(QReadWriteLock* theWrappedObject)
{
theWrappedObject->lockForWrite();
}
void PythonQtWrapper_QReadWriteLock::lockForRead(QReadWriteLock* theWrappedObject)
{
theWrappedObject->lockForRead();
}
bool PythonQtWrapper_QReadWriteLock::tryLockForRead(QReadWriteLock* theWrappedObject, int timeout)
{
return theWrappedObject->tryLockForRead(timeout);
}
bool PythonQtWrapper_QReadWriteLock::tryLockForRead(QReadWriteLock* theWrappedObject)
{
return theWrappedObject->tryLockForRead();
}
bool PythonQtWrapper_QReadWriteLock::tryLockForWrite(QReadWriteLock* theWrappedObject, int timeout)
{
return theWrappedObject->tryLockForWrite(timeout);
}
void PythonQtWrapper_QReadWriteLock::unlock(QReadWriteLock* theWrappedObject)
{
theWrappedObject->unlock();
}