2024-08-25 04:08:24 +00:00
|
|
|
#include <QRunnable>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include "qrunnable.h"
|
2024-08-25 04:08:24 +00:00
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
#include "gen_qrunnable.h"
|
2024-08-25 04:08:24 +00:00
|
|
|
|
|
|
|
extern "C" {
|
|
|
|
extern void miqt_exec_callback(void* cb, int argc, void* argv);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QRunnable_Run(QRunnable* self) {
|
|
|
|
self->run();
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QRunnable_AutoDelete(QRunnable* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QRunnable*>(self)->autoDelete();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QRunnable_SetAutoDelete(QRunnable* self, bool _autoDelete) {
|
|
|
|
self->setAutoDelete(_autoDelete);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QRunnable_OperatorAssign(QRunnable* self, QRunnable* param1) {
|
|
|
|
self->operator=(*param1);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QRunnable_Delete(QRunnable* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|