##// END OF EJS Templates
added initial generated wrappers for Qt 4.4.3...
added initial generated wrappers for Qt 4.4.3 git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@49 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r13:d46b01f7163a
r13:d46b01f7163a
Show More
PythonQtWrapper_QSystemSemaphore.h
29 lines | 1.5 KiB | text/x-c | CLexer
#ifndef PYTHONQTWRAPPER_QSYSTEMSEMAPHORE_H
#define PYTHONQTWRAPPER_QSYSTEMSEMAPHORE_H
#include <qsystemsemaphore.h>
#include <QObject>
#include <QVariant>
#include <qsystemsemaphore.h>
class PythonQtWrapper_QSystemSemaphore : public QObject
{ Q_OBJECT
public:
Q_ENUMS(AccessMode SystemSemaphoreError )
enum AccessMode{
Open = QSystemSemaphore::Open, Create = QSystemSemaphore::Create};
enum SystemSemaphoreError{
NoError = QSystemSemaphore::NoError, PermissionDenied = QSystemSemaphore::PermissionDenied, KeyError = QSystemSemaphore::KeyError, AlreadyExists = QSystemSemaphore::AlreadyExists, NotFound = QSystemSemaphore::NotFound, OutOfResources = QSystemSemaphore::OutOfResources, UnknownError = QSystemSemaphore::UnknownError};
public slots:
QSystemSemaphore* new_QSystemSemaphore(const QString& key, int initialValue = 0, QSystemSemaphore::AccessMode mode = QSystemSemaphore::Open);
void delete_QSystemSemaphore(QSystemSemaphore* obj) { delete obj; }
bool acquire(QSystemSemaphore* theWrappedObject);
QSystemSemaphore::SystemSemaphoreError error(QSystemSemaphore* theWrappedObject) const;
QString errorString(QSystemSemaphore* theWrappedObject) const;
QString key(QSystemSemaphore* theWrappedObject) const;
bool release(QSystemSemaphore* theWrappedObject, int n = 1);
void setKey(QSystemSemaphore* theWrappedObject, const QString& key, int initialValue = 0, QSystemSemaphore::AccessMode mode = QSystemSemaphore::Open);
};
#endif // PYTHONQTWRAPPER_QSYSTEMSEMAPHORE_H