2024-11-17 06:21:37 +00:00
|
|
|
#pragma once
|
|
|
|
#ifndef MIQT_QT_GEN_QIODEVICE_H
|
|
|
|
#define MIQT_QT_GEN_QIODEVICE_H
|
2024-08-25 04:08:24 +00:00
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
#include "../libmiqt/libmiqt.h"
|
2024-09-14 22:29:05 +00:00
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
2024-11-23 06:34:52 +00:00
|
|
|
class QChildEvent;
|
|
|
|
class QEvent;
|
2024-08-25 04:08:24 +00:00
|
|
|
class QIODevice;
|
2024-11-23 06:34:52 +00:00
|
|
|
class QMetaMethod;
|
2024-08-25 04:08:24 +00:00
|
|
|
class QMetaObject;
|
2024-11-19 06:29:06 +00:00
|
|
|
class QObject;
|
2024-11-23 06:34:52 +00:00
|
|
|
class QTimerEvent;
|
2024-08-25 04:08:24 +00:00
|
|
|
#else
|
2024-11-23 06:34:52 +00:00
|
|
|
typedef struct QChildEvent QChildEvent;
|
|
|
|
typedef struct QEvent QEvent;
|
2024-08-25 04:08:24 +00:00
|
|
|
typedef struct QIODevice QIODevice;
|
2024-11-23 06:34:52 +00:00
|
|
|
typedef struct QMetaMethod QMetaMethod;
|
2024-08-25 04:08:24 +00:00
|
|
|
typedef struct QMetaObject QMetaObject;
|
2024-11-19 06:29:06 +00:00
|
|
|
typedef struct QObject QObject;
|
2024-11-23 06:34:52 +00:00
|
|
|
typedef struct QTimerEvent QTimerEvent;
|
2024-08-25 04:08:24 +00:00
|
|
|
#endif
|
|
|
|
|
2024-11-23 06:34:52 +00:00
|
|
|
void QIODevice_new(QIODevice** outptr_QIODevice, QObject** outptr_QObject);
|
|
|
|
void QIODevice_new2(QObject* parent, QIODevice** outptr_QIODevice, QObject** outptr_QObject);
|
2024-09-11 05:41:09 +00:00
|
|
|
QMetaObject* QIODevice_MetaObject(const QIODevice* self);
|
2024-09-20 22:32:57 +00:00
|
|
|
void* QIODevice_Metacast(QIODevice* self, const char* param1);
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QIODevice_Tr(const char* s);
|
|
|
|
struct miqt_string QIODevice_TrUtf8(const char* s);
|
2024-09-11 05:41:09 +00:00
|
|
|
int QIODevice_OpenMode(const QIODevice* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QIODevice_SetTextModeEnabled(QIODevice* self, bool enabled);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QIODevice_IsTextModeEnabled(const QIODevice* self);
|
|
|
|
bool QIODevice_IsOpen(const QIODevice* self);
|
|
|
|
bool QIODevice_IsReadable(const QIODevice* self);
|
|
|
|
bool QIODevice_IsWritable(const QIODevice* self);
|
|
|
|
bool QIODevice_IsSequential(const QIODevice* self);
|
|
|
|
int QIODevice_ReadChannelCount(const QIODevice* self);
|
|
|
|
int QIODevice_WriteChannelCount(const QIODevice* self);
|
|
|
|
int QIODevice_CurrentReadChannel(const QIODevice* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QIODevice_SetCurrentReadChannel(QIODevice* self, int channel);
|
2024-09-11 05:41:09 +00:00
|
|
|
int QIODevice_CurrentWriteChannel(const QIODevice* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QIODevice_SetCurrentWriteChannel(QIODevice* self, int channel);
|
2024-08-29 07:01:51 +00:00
|
|
|
bool QIODevice_Open(QIODevice* self, int mode);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QIODevice_Close(QIODevice* self);
|
2024-09-11 05:41:09 +00:00
|
|
|
long long QIODevice_Pos(const QIODevice* self);
|
|
|
|
long long QIODevice_Size(const QIODevice* self);
|
2024-08-29 07:01:51 +00:00
|
|
|
bool QIODevice_Seek(QIODevice* self, long long pos);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QIODevice_AtEnd(const QIODevice* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
bool QIODevice_Reset(QIODevice* self);
|
2024-09-11 05:41:09 +00:00
|
|
|
long long QIODevice_BytesAvailable(const QIODevice* self);
|
|
|
|
long long QIODevice_BytesToWrite(const QIODevice* self);
|
2024-08-29 07:01:51 +00:00
|
|
|
long long QIODevice_Read(QIODevice* self, char* data, long long maxlen);
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QIODevice_ReadWithMaxlen(QIODevice* self, long long maxlen);
|
|
|
|
struct miqt_string QIODevice_ReadAll(QIODevice* self);
|
2024-08-29 07:01:51 +00:00
|
|
|
long long QIODevice_ReadLine(QIODevice* self, char* data, long long maxlen);
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QIODevice_ReadLine2(QIODevice* self);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QIODevice_CanReadLine(const QIODevice* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QIODevice_StartTransaction(QIODevice* self);
|
|
|
|
void QIODevice_CommitTransaction(QIODevice* self);
|
|
|
|
void QIODevice_RollbackTransaction(QIODevice* self);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QIODevice_IsTransactionStarted(const QIODevice* self);
|
2024-08-29 07:01:51 +00:00
|
|
|
long long QIODevice_Write(QIODevice* self, const char* data, long long lenVal);
|
|
|
|
long long QIODevice_WriteWithData(QIODevice* self, const char* data);
|
2024-10-18 23:53:33 +00:00
|
|
|
long long QIODevice_Write2(QIODevice* self, struct miqt_string data);
|
2024-08-29 07:01:51 +00:00
|
|
|
long long QIODevice_Peek(QIODevice* self, char* data, long long maxlen);
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QIODevice_PeekWithMaxlen(QIODevice* self, long long maxlen);
|
2024-08-29 07:01:51 +00:00
|
|
|
long long QIODevice_Skip(QIODevice* self, long long maxSize);
|
2024-08-25 04:08:24 +00:00
|
|
|
bool QIODevice_WaitForReadyRead(QIODevice* self, int msecs);
|
|
|
|
bool QIODevice_WaitForBytesWritten(QIODevice* self, int msecs);
|
|
|
|
void QIODevice_UngetChar(QIODevice* self, char c);
|
|
|
|
bool QIODevice_PutChar(QIODevice* self, char c);
|
|
|
|
bool QIODevice_GetChar(QIODevice* self, char* c);
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QIODevice_ErrorString(const QIODevice* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QIODevice_ReadyRead(QIODevice* self);
|
2024-10-13 06:06:06 +00:00
|
|
|
void QIODevice_connect_ReadyRead(QIODevice* self, intptr_t slot);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QIODevice_ChannelReadyRead(QIODevice* self, int channel);
|
2024-10-13 06:06:06 +00:00
|
|
|
void QIODevice_connect_ChannelReadyRead(QIODevice* self, intptr_t slot);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QIODevice_BytesWritten(QIODevice* self, long long bytes);
|
2024-10-13 06:06:06 +00:00
|
|
|
void QIODevice_connect_BytesWritten(QIODevice* self, intptr_t slot);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QIODevice_ChannelBytesWritten(QIODevice* self, int channel, long long bytes);
|
2024-10-13 06:06:06 +00:00
|
|
|
void QIODevice_connect_ChannelBytesWritten(QIODevice* self, intptr_t slot);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QIODevice_AboutToClose(QIODevice* self);
|
2024-10-13 06:06:06 +00:00
|
|
|
void QIODevice_connect_AboutToClose(QIODevice* self, intptr_t slot);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QIODevice_ReadChannelFinished(QIODevice* self);
|
2024-10-13 06:06:06 +00:00
|
|
|
void QIODevice_connect_ReadChannelFinished(QIODevice* self, intptr_t slot);
|
2024-11-19 06:29:06 +00:00
|
|
|
long long QIODevice_ReadData(QIODevice* self, char* data, long long maxlen);
|
|
|
|
long long QIODevice_ReadLineData(QIODevice* self, char* data, long long maxlen);
|
|
|
|
long long QIODevice_WriteData(QIODevice* self, const char* data, long long lenVal);
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QIODevice_Tr2(const char* s, const char* c);
|
|
|
|
struct miqt_string QIODevice_Tr3(const char* s, const char* c, int n);
|
|
|
|
struct miqt_string QIODevice_TrUtf82(const char* s, const char* c);
|
|
|
|
struct miqt_string QIODevice_TrUtf83(const char* s, const char* c, int n);
|
|
|
|
struct miqt_string QIODevice_ReadLine1(QIODevice* self, long long maxlen);
|
2024-11-23 06:34:52 +00:00
|
|
|
void QIODevice_override_virtual_IsSequential(void* self, intptr_t slot);
|
|
|
|
bool QIODevice_virtualbase_IsSequential(const void* self);
|
|
|
|
void QIODevice_override_virtual_Open(void* self, intptr_t slot);
|
|
|
|
bool QIODevice_virtualbase_Open(void* self, int mode);
|
|
|
|
void QIODevice_override_virtual_Close(void* self, intptr_t slot);
|
|
|
|
void QIODevice_virtualbase_Close(void* self);
|
|
|
|
void QIODevice_override_virtual_Pos(void* self, intptr_t slot);
|
|
|
|
long long QIODevice_virtualbase_Pos(const void* self);
|
|
|
|
void QIODevice_override_virtual_Size(void* self, intptr_t slot);
|
|
|
|
long long QIODevice_virtualbase_Size(const void* self);
|
|
|
|
void QIODevice_override_virtual_Seek(void* self, intptr_t slot);
|
|
|
|
bool QIODevice_virtualbase_Seek(void* self, long long pos);
|
|
|
|
void QIODevice_override_virtual_AtEnd(void* self, intptr_t slot);
|
|
|
|
bool QIODevice_virtualbase_AtEnd(const void* self);
|
|
|
|
void QIODevice_override_virtual_Reset(void* self, intptr_t slot);
|
|
|
|
bool QIODevice_virtualbase_Reset(void* self);
|
|
|
|
void QIODevice_override_virtual_BytesAvailable(void* self, intptr_t slot);
|
|
|
|
long long QIODevice_virtualbase_BytesAvailable(const void* self);
|
|
|
|
void QIODevice_override_virtual_BytesToWrite(void* self, intptr_t slot);
|
|
|
|
long long QIODevice_virtualbase_BytesToWrite(const void* self);
|
|
|
|
void QIODevice_override_virtual_CanReadLine(void* self, intptr_t slot);
|
|
|
|
bool QIODevice_virtualbase_CanReadLine(const void* self);
|
|
|
|
void QIODevice_override_virtual_WaitForReadyRead(void* self, intptr_t slot);
|
|
|
|
bool QIODevice_virtualbase_WaitForReadyRead(void* self, int msecs);
|
|
|
|
void QIODevice_override_virtual_WaitForBytesWritten(void* self, intptr_t slot);
|
|
|
|
bool QIODevice_virtualbase_WaitForBytesWritten(void* self, int msecs);
|
|
|
|
void QIODevice_override_virtual_ReadData(void* self, intptr_t slot);
|
|
|
|
long long QIODevice_virtualbase_ReadData(void* self, char* data, long long maxlen);
|
|
|
|
void QIODevice_override_virtual_ReadLineData(void* self, intptr_t slot);
|
|
|
|
long long QIODevice_virtualbase_ReadLineData(void* self, char* data, long long maxlen);
|
|
|
|
void QIODevice_override_virtual_WriteData(void* self, intptr_t slot);
|
|
|
|
long long QIODevice_virtualbase_WriteData(void* self, const char* data, long long lenVal);
|
|
|
|
void QIODevice_override_virtual_Event(void* self, intptr_t slot);
|
|
|
|
bool QIODevice_virtualbase_Event(void* self, QEvent* event);
|
|
|
|
void QIODevice_override_virtual_EventFilter(void* self, intptr_t slot);
|
|
|
|
bool QIODevice_virtualbase_EventFilter(void* self, QObject* watched, QEvent* event);
|
|
|
|
void QIODevice_override_virtual_TimerEvent(void* self, intptr_t slot);
|
|
|
|
void QIODevice_virtualbase_TimerEvent(void* self, QTimerEvent* event);
|
|
|
|
void QIODevice_override_virtual_ChildEvent(void* self, intptr_t slot);
|
|
|
|
void QIODevice_virtualbase_ChildEvent(void* self, QChildEvent* event);
|
|
|
|
void QIODevice_override_virtual_CustomEvent(void* self, intptr_t slot);
|
|
|
|
void QIODevice_virtualbase_CustomEvent(void* self, QEvent* event);
|
|
|
|
void QIODevice_override_virtual_ConnectNotify(void* self, intptr_t slot);
|
|
|
|
void QIODevice_virtualbase_ConnectNotify(void* self, QMetaMethod* signal);
|
|
|
|
void QIODevice_override_virtual_DisconnectNotify(void* self, intptr_t slot);
|
|
|
|
void QIODevice_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal);
|
2024-11-19 06:29:06 +00:00
|
|
|
void QIODevice_Delete(QIODevice* self, bool isSubclass);
|
2024-08-25 04:08:24 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|