mirror of
https://github.com/mappu/miqt.git
synced 2025-02-01 19:10:21 +00:00
99 lines
3.7 KiB
C++
99 lines
3.7 KiB
C++
#pragma once
|
|
#ifndef MIQT_QT6_GEN_QTHREAD_H
|
|
#define MIQT_QT6_GEN_QTHREAD_H
|
|
|
|
#include <stdbool.h>
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
#include "../libmiqt/libmiqt.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
class QAbstractEventDispatcher;
|
|
class QChildEvent;
|
|
class QDeadlineTimer;
|
|
class QEvent;
|
|
class QMetaMethod;
|
|
class QMetaObject;
|
|
class QObject;
|
|
class QThread;
|
|
class QTimerEvent;
|
|
#else
|
|
typedef struct QAbstractEventDispatcher QAbstractEventDispatcher;
|
|
typedef struct QChildEvent QChildEvent;
|
|
typedef struct QDeadlineTimer QDeadlineTimer;
|
|
typedef struct QEvent QEvent;
|
|
typedef struct QMetaMethod QMetaMethod;
|
|
typedef struct QMetaObject QMetaObject;
|
|
typedef struct QObject QObject;
|
|
typedef struct QThread QThread;
|
|
typedef struct QTimerEvent QTimerEvent;
|
|
#endif
|
|
|
|
QThread* QThread_new();
|
|
QThread* QThread_new2(QObject* parent);
|
|
void QThread_virtbase(QThread* src, QObject** outptr_QObject);
|
|
QMetaObject* QThread_metaObject(const QThread* self);
|
|
void* QThread_metacast(QThread* self, const char* param1);
|
|
struct miqt_string QThread_tr(const char* s);
|
|
void* QThread_currentThreadId();
|
|
QThread* QThread_currentThread();
|
|
int QThread_idealThreadCount();
|
|
void QThread_yieldCurrentThread();
|
|
void QThread_setPriority(QThread* self, int priority);
|
|
int QThread_priority(const QThread* self);
|
|
bool QThread_isFinished(const QThread* self);
|
|
bool QThread_isRunning(const QThread* self);
|
|
void QThread_requestInterruption(QThread* self);
|
|
bool QThread_isInterruptionRequested(const QThread* self);
|
|
void QThread_setStackSize(QThread* self, unsigned int stackSize);
|
|
unsigned int QThread_stackSize(const QThread* self);
|
|
QAbstractEventDispatcher* QThread_eventDispatcher(const QThread* self);
|
|
void QThread_setEventDispatcher(QThread* self, QAbstractEventDispatcher* eventDispatcher);
|
|
bool QThread_event(QThread* self, QEvent* event);
|
|
int QThread_loopLevel(const QThread* self);
|
|
void QThread_start(QThread* self);
|
|
void QThread_terminate(QThread* self);
|
|
void QThread_exit(QThread* self);
|
|
void QThread_quit(QThread* self);
|
|
bool QThread_wait(QThread* self);
|
|
bool QThread_waitWithTime(QThread* self, unsigned long time);
|
|
void QThread_sleep(unsigned long param1);
|
|
void QThread_msleep(unsigned long param1);
|
|
void QThread_usleep(unsigned long param1);
|
|
void QThread_run(QThread* self);
|
|
struct miqt_string QThread_tr2(const char* s, const char* c);
|
|
struct miqt_string QThread_tr3(const char* s, const char* c, int n);
|
|
void QThread_start1(QThread* self, int param1);
|
|
void QThread_exit1(QThread* self, int retcode);
|
|
bool QThread_wait1(QThread* self, QDeadlineTimer* deadline);
|
|
bool QThread_override_virtual_event(void* self, intptr_t slot);
|
|
bool QThread_virtualbase_event(void* self, QEvent* event);
|
|
bool QThread_override_virtual_run(void* self, intptr_t slot);
|
|
void QThread_virtualbase_run(void* self);
|
|
bool QThread_override_virtual_eventFilter(void* self, intptr_t slot);
|
|
bool QThread_virtualbase_eventFilter(void* self, QObject* watched, QEvent* event);
|
|
bool QThread_override_virtual_timerEvent(void* self, intptr_t slot);
|
|
void QThread_virtualbase_timerEvent(void* self, QTimerEvent* event);
|
|
bool QThread_override_virtual_childEvent(void* self, intptr_t slot);
|
|
void QThread_virtualbase_childEvent(void* self, QChildEvent* event);
|
|
bool QThread_override_virtual_customEvent(void* self, intptr_t slot);
|
|
void QThread_virtualbase_customEvent(void* self, QEvent* event);
|
|
bool QThread_override_virtual_connectNotify(void* self, intptr_t slot);
|
|
void QThread_virtualbase_connectNotify(void* self, QMetaMethod* signal);
|
|
bool QThread_override_virtual_disconnectNotify(void* self, intptr_t slot);
|
|
void QThread_virtualbase_disconnectNotify(void* self, QMetaMethod* signal);
|
|
void QThread_delete(QThread* self);
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern C */
|
|
#endif
|
|
|
|
#endif
|