##// END OF EJS Templates
added methods to qt namespace...
added methods to qt namespace git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@71 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r28:cf202027b50b
r35:b8dce620ba5c
Show More
PythonQtWrapper_QSemaphore.cpp
37 lines | 915 B | text/x-c | CppLexer
#include "PythonQtWrapper_QSemaphore.h"
#include <PythonQtSignalReceiver.h>
#include <PythonQtMethodInfo.h>
#include <PythonQtConversion.h>
#include <QVariant>
#include <qsemaphore.h>
QSemaphore* PythonQtWrapper_QSemaphore::new_QSemaphore(int n)
{
return new QSemaphore(n); }
int PythonQtWrapper_QSemaphore::available(QSemaphore* theWrappedObject) const
{
return theWrappedObject->available();
}
void PythonQtWrapper_QSemaphore::acquire(QSemaphore* theWrappedObject, int n)
{
theWrappedObject->acquire(n);
}
bool PythonQtWrapper_QSemaphore::tryAcquire(QSemaphore* theWrappedObject, int n)
{
return theWrappedObject->tryAcquire(n);
}
bool PythonQtWrapper_QSemaphore::tryAcquire(QSemaphore* theWrappedObject, int n, int timeout)
{
return theWrappedObject->tryAcquire(n, timeout);
}
void PythonQtWrapper_QSemaphore::release(QSemaphore* theWrappedObject, int n)
{
theWrappedObject->release(n);
}