##// END OF EJS Templates
- wrapped instances are now wrapped by class specific subtypes to facilitate future deriving from python...
- wrapped instances are now wrapped by class specific subtypes to facilitate future deriving from python - object creation has changed by using the python type system (calling the type object with PyObject_Call) git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@54 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r13:d46b01f7163a
r18:44e5ff2700cb
Show More
PythonQtWrapper_QSemaphore.h
23 lines | 696 B | text/x-c | CLexer
#ifndef PYTHONQTWRAPPER_QSEMAPHORE_H
#define PYTHONQTWRAPPER_QSEMAPHORE_H
#include <qsemaphore.h>
#include <QObject>
#include <QVariant>
#include <qsemaphore.h>
class PythonQtWrapper_QSemaphore : public QObject
{ Q_OBJECT
public:
public slots:
QSemaphore* new_QSemaphore(int n = 0);
void delete_QSemaphore(QSemaphore* obj) { delete obj; }
void acquire(QSemaphore* theWrappedObject, int n = 1);
int available(QSemaphore* theWrappedObject) const;
void release(QSemaphore* theWrappedObject, int n = 1);
bool tryAcquire(QSemaphore* theWrappedObject, int n = 1);
bool tryAcquire(QSemaphore* theWrappedObject, int n, int timeout);
};
#endif // PYTHONQTWRAPPER_QSEMAPHORE_H