PythonQtWrapper_QBasicTimer.h
28 lines
| 766 B
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QBASICTIMER_H | ||
#define PYTHONQTWRAPPER_QBASICTIMER_H | ||||
#include <qbasictimer.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVariant> | ||
#include <qobject.h> | ||||
class PythonQtWrapper_QBasicTimer : public QObject | ||||
{ Q_OBJECT | ||||
public: | ||||
public slots: | ||||
QBasicTimer* new_QBasicTimer(); | ||||
florianlink
|
r24 | QBasicTimer* new_QBasicTimer(const QBasicTimer& other) { | ||
QBasicTimer* a = new QBasicTimer(); | ||||
*((QBasicTimer*)a) = other; | ||||
return a; } | ||||
florianlink
|
r13 | void delete_QBasicTimer(QBasicTimer* obj) { delete obj; } | ||
florianlink
|
r24 | bool isActive(QBasicTimer* theWrappedObject) const; | ||
florianlink
|
r13 | int timerId(QBasicTimer* theWrappedObject) const; | ||
florianlink
|
r24 | void start(QBasicTimer* theWrappedObject, int msec, QObject* obj); | ||
florianlink
|
r73 | void stop(QBasicTimer* theWrappedObject); | ||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QBASICTIMER_H | ||||