PythonQtWrapper_QTimer.h
50 lines
| 1.4 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QTIMER_H | ||
#define PYTHONQTWRAPPER_QTIMER_H | ||||
#include <qtimer.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVariant> | ||
#include <qbytearray.h> | ||||
#include <qcoreevent.h> | ||||
#include <qlist.h> | ||||
#include <qobject.h> | ||||
#include <qtimer.h> | ||||
florianlink
|
r24 | class PythonQtShell_QTimer : public QTimer | ||
{ | ||||
public: | ||||
PythonQtShell_QTimer(QObject* parent = 0):QTimer(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 PythonQtPublicPromoter_QTimer : public QTimer | ||||
{ public: | ||||
florianlink
|
r28 | inline void promoted_timerEvent(QTimerEvent* arg__1) { QTimer::timerEvent(arg__1); } | ||
florianlink
|
r24 | }; | ||
florianlink
|
r13 | class PythonQtWrapper_QTimer : public QObject | ||
{ Q_OBJECT | ||||
public: | ||||
public slots: | ||||
QTimer* new_QTimer(QObject* parent = 0); | ||||
void delete_QTimer(QTimer* obj) { delete obj; } | ||||
florianlink
|
r24 | void setInterval(QTimer* theWrappedObject, int msec); | ||
florianlink
|
r13 | bool isActive(QTimer* theWrappedObject) const; | ||
florianlink
|
r24 | int interval(QTimer* theWrappedObject) const; | ||
florianlink
|
r13 | bool isSingleShot(QTimer* theWrappedObject) const; | ||
int timerId(QTimer* theWrappedObject) const; | ||||
florianlink
|
r24 | void setSingleShot(QTimer* theWrappedObject, bool singleShot); | ||
void timerEvent(QTimer* theWrappedObject, QTimerEvent* arg__1); | ||||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QTIMER_H | ||||