2024-08-25 04:08:24 +00:00
|
|
|
#include <QBasicTimer>
|
|
|
|
#include <QObject>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include "qbasictimer.h"
|
2024-08-25 04:08:24 +00:00
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
#include "gen_qbasictimer.h"
|
2024-08-25 04:08:24 +00:00
|
|
|
|
|
|
|
extern "C" {
|
|
|
|
extern void miqt_exec_callback(void* cb, int argc, void* argv);
|
|
|
|
}
|
|
|
|
|
|
|
|
QBasicTimer* QBasicTimer_new(QBasicTimer* param1) {
|
|
|
|
return new QBasicTimer(*param1);
|
|
|
|
}
|
|
|
|
|
|
|
|
QBasicTimer* QBasicTimer_new2() {
|
|
|
|
return new QBasicTimer();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QBasicTimer_OperatorAssign(QBasicTimer* self, QBasicTimer* param1) {
|
|
|
|
self->operator=(*param1);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QBasicTimer_Swap(QBasicTimer* self, QBasicTimer* other) {
|
|
|
|
self->swap(*other);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QBasicTimer_IsActive(QBasicTimer* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QBasicTimer*>(self)->isActive();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
int QBasicTimer_TimerId(QBasicTimer* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QBasicTimer*>(self)->timerId();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QBasicTimer_Start(QBasicTimer* self, int msec, QObject* obj) {
|
|
|
|
self->start(static_cast<int>(msec), obj);
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
void QBasicTimer_Start2(QBasicTimer* self, int msec, uintptr_t timerType, QObject* obj) {
|
|
|
|
self->start(static_cast<int>(msec), static_cast<Qt::TimerType>(timerType), obj);
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
void QBasicTimer_Stop(QBasicTimer* self) {
|
|
|
|
self->stop();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QBasicTimer_Delete(QBasicTimer* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|