##// END OF EJS Templates
started to update/improve docs...
started to update/improve docs git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@68 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r28:cf202027b50b
r32:ae159b178ea0
Show More
PythonQtWrapper_QThreadPool.h
50 lines | 1.7 KiB | text/x-c | CLexer
#ifndef PYTHONQTWRAPPER_QTHREADPOOL_H
#define PYTHONQTWRAPPER_QTHREADPOOL_H
#include <qthreadpool.h>
#include <QObject>
#include <PythonQt.h>
#include <QVariant>
#include <qbytearray.h>
#include <qcoreevent.h>
#include <qlist.h>
#include <qobject.h>
#include <qrunnable.h>
#include <qthreadpool.h>
class PythonQtShell_QThreadPool : public QThreadPool
{
public:
PythonQtShell_QThreadPool(QObject* parent = 0):QThreadPool(parent),_wrapper(NULL) {};
virtual void childEvent(QChildEvent* arg__1);
virtual void customEvent(QEvent* arg__1);
virtual bool event(QEvent* arg__1);
virtual bool eventFilter(QObject* arg__1, QEvent* arg__2);
virtual void timerEvent(QTimerEvent* arg__1);
PythonQtInstanceWrapper* _wrapper;
};
class PythonQtWrapper_QThreadPool : public QObject
{ Q_OBJECT
public:
public slots:
QThreadPool* new_QThreadPool(QObject* parent = 0);
void delete_QThreadPool(QThreadPool* obj) { delete obj; }
int activeThreadCount(QThreadPool* theWrappedObject) const;
void reserveThread(QThreadPool* theWrappedObject);
int expiryTimeout(QThreadPool* theWrappedObject) const;
void start(QThreadPool* theWrappedObject, QRunnable* runnable, int priority = 0);
bool tryStart(QThreadPool* theWrappedObject, QRunnable* runnable);
int maxThreadCount(QThreadPool* theWrappedObject) const;
void waitForDone(QThreadPool* theWrappedObject);
QThreadPool* static_QThreadPool_globalInstance();
void releaseThread(QThreadPool* theWrappedObject);
void setExpiryTimeout(QThreadPool* theWrappedObject, int expiryTimeout);
void setMaxThreadCount(QThreadPool* theWrappedObject, int maxThreadCount);
};
#endif // PYTHONQTWRAPPER_QTHREADPOOL_H