##// 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_QSemaphore.h
25 lines | 719 B | text/x-c | CLexer
#ifndef PYTHONQTWRAPPER_QSEMAPHORE_H
#define PYTHONQTWRAPPER_QSEMAPHORE_H
#include <qsemaphore.h>
#include <QObject>
#include <PythonQt.h>
#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; }
int available(QSemaphore* theWrappedObject) const;
void acquire(QSemaphore* theWrappedObject, int n = 1);
bool tryAcquire(QSemaphore* theWrappedObject, int n = 1);
bool tryAcquire(QSemaphore* theWrappedObject, int n, int timeout);
void release(QSemaphore* theWrappedObject, int n = 1);
};
#endif // PYTHONQTWRAPPER_QSEMAPHORE_H