##// END OF EJS Templates
improved so that dict contains properties and that dir() shows all available things, including the derived base attributes...
improved so that dict contains properties and that dir() shows all available things, including the derived base attributes git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@70 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r28:cf202027b50b
r34:5daedfb035c8
Show More
PythonQtWrapper_QReadWriteLock.h
31 lines | 1.1 KiB | text/x-c | CLexer
#ifndef PYTHONQTWRAPPER_QREADWRITELOCK_H
#define PYTHONQTWRAPPER_QREADWRITELOCK_H
#include <qreadwritelock.h>
#include <QObject>
#include <PythonQt.h>
#include <QVariant>
#include <qreadwritelock.h>
class PythonQtWrapper_QReadWriteLock : public QObject
{ Q_OBJECT
public:
Q_ENUMS(RecursionMode )
enum RecursionMode{
NonRecursive = QReadWriteLock::NonRecursive, Recursive = QReadWriteLock::Recursive};
public slots:
QReadWriteLock* new_QReadWriteLock();
QReadWriteLock* new_QReadWriteLock(QReadWriteLock::RecursionMode recursionMode);
void delete_QReadWriteLock(QReadWriteLock* obj) { delete obj; }
bool tryLockForWrite(QReadWriteLock* theWrappedObject);
void lockForWrite(QReadWriteLock* theWrappedObject);
void lockForRead(QReadWriteLock* theWrappedObject);
bool tryLockForRead(QReadWriteLock* theWrappedObject, int timeout);
bool tryLockForRead(QReadWriteLock* theWrappedObject);
bool tryLockForWrite(QReadWriteLock* theWrappedObject, int timeout);
void unlock(QReadWriteLock* theWrappedObject);
};
#endif // PYTHONQTWRAPPER_QREADWRITELOCK_H