2024-11-17 19:21:37 +13:00
|
|
|
#pragma once
|
|
|
|
#ifndef MIQT_QT_GEN_QFILE_H
|
|
|
|
#define MIQT_QT_GEN_QFILE_H
|
2024-08-25 16:08:24 +12:00
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
|
2024-10-16 18:07:56 +13:00
|
|
|
#include "../libmiqt/libmiqt.h"
|
2024-09-15 10:29:05 +12:00
|
|
|
|
2024-08-25 16:08:24 +12:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
2025-01-19 16:39:11 +13:00
|
|
|
class QChildEvent;
|
|
|
|
class QEvent;
|
2024-08-25 16:08:24 +12:00
|
|
|
class QFile;
|
2024-11-19 19:29:06 +13:00
|
|
|
class QFileDevice;
|
|
|
|
class QIODevice;
|
2025-01-19 16:39:11 +13:00
|
|
|
class QMetaMethod;
|
2024-08-25 16:08:24 +12:00
|
|
|
class QMetaObject;
|
|
|
|
class QObject;
|
2025-01-19 16:39:11 +13:00
|
|
|
class QTimerEvent;
|
2024-08-25 16:08:24 +12:00
|
|
|
#else
|
2025-01-19 16:39:11 +13:00
|
|
|
typedef struct QChildEvent QChildEvent;
|
|
|
|
typedef struct QEvent QEvent;
|
2024-08-25 16:08:24 +12:00
|
|
|
typedef struct QFile QFile;
|
2024-11-19 19:29:06 +13:00
|
|
|
typedef struct QFileDevice QFileDevice;
|
|
|
|
typedef struct QIODevice QIODevice;
|
2025-01-19 16:39:11 +13:00
|
|
|
typedef struct QMetaMethod QMetaMethod;
|
2024-08-25 16:08:24 +12:00
|
|
|
typedef struct QMetaObject QMetaObject;
|
|
|
|
typedef struct QObject QObject;
|
2025-01-19 16:39:11 +13:00
|
|
|
typedef struct QTimerEvent QTimerEvent;
|
2024-08-25 16:08:24 +12:00
|
|
|
#endif
|
|
|
|
|
2024-12-07 17:15:57 +13:00
|
|
|
QFile* QFile_new();
|
|
|
|
QFile* QFile_new2(struct miqt_string name);
|
|
|
|
QFile* QFile_new3(QObject* parent);
|
|
|
|
QFile* QFile_new4(struct miqt_string name, QObject* parent);
|
|
|
|
void QFile_virtbase(QFile* src, QFileDevice** outptr_QFileDevice);
|
2024-09-11 17:41:09 +12:00
|
|
|
QMetaObject* QFile_MetaObject(const QFile* self);
|
2024-09-21 10:32:57 +12:00
|
|
|
void* QFile_Metacast(QFile* self, const char* param1);
|
2024-10-19 12:53:33 +13:00
|
|
|
struct miqt_string QFile_Tr(const char* s);
|
|
|
|
struct miqt_string QFile_TrUtf8(const char* s);
|
|
|
|
struct miqt_string QFile_FileName(const QFile* self);
|
|
|
|
void QFile_SetFileName(QFile* self, struct miqt_string name);
|
|
|
|
struct miqt_string QFile_EncodeName(struct miqt_string fileName);
|
|
|
|
struct miqt_string QFile_DecodeName(struct miqt_string localFileName);
|
|
|
|
struct miqt_string QFile_DecodeNameWithLocalFileName(const char* localFileName);
|
2024-09-11 17:41:09 +12:00
|
|
|
bool QFile_Exists(const QFile* self);
|
2024-10-19 12:53:33 +13:00
|
|
|
bool QFile_ExistsWithFileName(struct miqt_string fileName);
|
|
|
|
struct miqt_string QFile_ReadLink(const QFile* self);
|
|
|
|
struct miqt_string QFile_ReadLinkWithFileName(struct miqt_string fileName);
|
|
|
|
struct miqt_string QFile_SymLinkTarget(const QFile* self);
|
|
|
|
struct miqt_string QFile_SymLinkTargetWithFileName(struct miqt_string fileName);
|
2024-08-25 16:08:24 +12:00
|
|
|
bool QFile_Remove(QFile* self);
|
2024-10-19 12:53:33 +13:00
|
|
|
bool QFile_RemoveWithFileName(struct miqt_string fileName);
|
2024-08-25 16:08:24 +12:00
|
|
|
bool QFile_MoveToTrash(QFile* self);
|
2024-10-19 12:53:33 +13:00
|
|
|
bool QFile_MoveToTrashWithFileName(struct miqt_string fileName);
|
|
|
|
bool QFile_Rename(QFile* self, struct miqt_string newName);
|
|
|
|
bool QFile_Rename2(struct miqt_string oldName, struct miqt_string newName);
|
|
|
|
bool QFile_Link(QFile* self, struct miqt_string newName);
|
|
|
|
bool QFile_Link2(struct miqt_string oldname, struct miqt_string newName);
|
|
|
|
bool QFile_Copy(QFile* self, struct miqt_string newName);
|
|
|
|
bool QFile_Copy2(struct miqt_string fileName, struct miqt_string newName);
|
2024-08-29 19:01:51 +12:00
|
|
|
bool QFile_Open(QFile* self, int flags);
|
|
|
|
bool QFile_Open3(QFile* self, int fd, int ioFlags);
|
2024-09-11 17:41:09 +12:00
|
|
|
long long QFile_Size(const QFile* self);
|
2024-08-29 19:01:51 +12:00
|
|
|
bool QFile_Resize(QFile* self, long long sz);
|
2024-10-19 12:53:33 +13:00
|
|
|
bool QFile_Resize2(struct miqt_string filename, long long sz);
|
2024-09-11 17:41:09 +12:00
|
|
|
int QFile_Permissions(const QFile* self);
|
2024-10-19 12:53:33 +13:00
|
|
|
int QFile_PermissionsWithFilename(struct miqt_string filename);
|
2024-08-29 19:01:51 +12:00
|
|
|
bool QFile_SetPermissions(QFile* self, int permissionSpec);
|
2024-10-19 12:53:33 +13:00
|
|
|
bool QFile_SetPermissions2(struct miqt_string filename, int permissionSpec);
|
|
|
|
struct miqt_string QFile_Tr2(const char* s, const char* c);
|
|
|
|
struct miqt_string QFile_Tr3(const char* s, const char* c, int n);
|
|
|
|
struct miqt_string QFile_TrUtf82(const char* s, const char* c);
|
|
|
|
struct miqt_string QFile_TrUtf83(const char* s, const char* c, int n);
|
2024-08-29 19:01:51 +12:00
|
|
|
bool QFile_Open33(QFile* self, int fd, int ioFlags, int handleFlags);
|
2025-01-18 17:57:48 +13:00
|
|
|
bool QFile_override_virtual_FileName(void* self, intptr_t slot);
|
2024-11-19 19:29:06 +13:00
|
|
|
struct miqt_string QFile_virtualbase_FileName(const void* self);
|
2025-01-18 17:57:48 +13:00
|
|
|
bool QFile_override_virtual_Open(void* self, intptr_t slot);
|
2024-11-19 19:29:06 +13:00
|
|
|
bool QFile_virtualbase_Open(void* self, int flags);
|
2025-01-18 17:57:48 +13:00
|
|
|
bool QFile_override_virtual_Size(void* self, intptr_t slot);
|
2024-11-19 19:29:06 +13:00
|
|
|
long long QFile_virtualbase_Size(const void* self);
|
2025-01-18 17:57:48 +13:00
|
|
|
bool QFile_override_virtual_Resize(void* self, intptr_t slot);
|
2024-11-19 19:29:06 +13:00
|
|
|
bool QFile_virtualbase_Resize(void* self, long long sz);
|
2025-01-18 17:57:48 +13:00
|
|
|
bool QFile_override_virtual_Permissions(void* self, intptr_t slot);
|
2024-11-19 19:29:06 +13:00
|
|
|
int QFile_virtualbase_Permissions(const void* self);
|
2025-01-18 17:57:48 +13:00
|
|
|
bool QFile_override_virtual_SetPermissions(void* self, intptr_t slot);
|
2024-11-19 19:29:06 +13:00
|
|
|
bool QFile_virtualbase_SetPermissions(void* self, int permissionSpec);
|
2025-01-18 17:57:48 +13:00
|
|
|
bool QFile_override_virtual_Close(void* self, intptr_t slot);
|
2024-11-19 19:29:06 +13:00
|
|
|
void QFile_virtualbase_Close(void* self);
|
2025-01-18 17:57:48 +13:00
|
|
|
bool QFile_override_virtual_IsSequential(void* self, intptr_t slot);
|
2024-11-19 19:29:06 +13:00
|
|
|
bool QFile_virtualbase_IsSequential(const void* self);
|
2025-01-18 17:57:48 +13:00
|
|
|
bool QFile_override_virtual_Pos(void* self, intptr_t slot);
|
2024-11-19 19:29:06 +13:00
|
|
|
long long QFile_virtualbase_Pos(const void* self);
|
2025-01-18 17:57:48 +13:00
|
|
|
bool QFile_override_virtual_Seek(void* self, intptr_t slot);
|
2024-11-19 19:29:06 +13:00
|
|
|
bool QFile_virtualbase_Seek(void* self, long long offset);
|
2025-01-18 17:57:48 +13:00
|
|
|
bool QFile_override_virtual_AtEnd(void* self, intptr_t slot);
|
2024-11-19 19:29:06 +13:00
|
|
|
bool QFile_virtualbase_AtEnd(const void* self);
|
2025-01-18 17:57:48 +13:00
|
|
|
bool QFile_override_virtual_ReadData(void* self, intptr_t slot);
|
2024-11-19 19:29:06 +13:00
|
|
|
long long QFile_virtualbase_ReadData(void* self, char* data, long long maxlen);
|
2025-01-18 17:57:48 +13:00
|
|
|
bool QFile_override_virtual_WriteData(void* self, intptr_t slot);
|
2024-11-19 19:29:06 +13:00
|
|
|
long long QFile_virtualbase_WriteData(void* self, const char* data, long long lenVal);
|
2025-01-18 17:57:48 +13:00
|
|
|
bool QFile_override_virtual_ReadLineData(void* self, intptr_t slot);
|
2024-11-19 19:29:06 +13:00
|
|
|
long long QFile_virtualbase_ReadLineData(void* self, char* data, long long maxlen);
|
2025-01-19 16:39:11 +13:00
|
|
|
bool QFile_override_virtual_Reset(void* self, intptr_t slot);
|
|
|
|
bool QFile_virtualbase_Reset(void* self);
|
|
|
|
bool QFile_override_virtual_BytesAvailable(void* self, intptr_t slot);
|
|
|
|
long long QFile_virtualbase_BytesAvailable(const void* self);
|
|
|
|
bool QFile_override_virtual_BytesToWrite(void* self, intptr_t slot);
|
|
|
|
long long QFile_virtualbase_BytesToWrite(const void* self);
|
|
|
|
bool QFile_override_virtual_CanReadLine(void* self, intptr_t slot);
|
|
|
|
bool QFile_virtualbase_CanReadLine(const void* self);
|
|
|
|
bool QFile_override_virtual_WaitForReadyRead(void* self, intptr_t slot);
|
|
|
|
bool QFile_virtualbase_WaitForReadyRead(void* self, int msecs);
|
|
|
|
bool QFile_override_virtual_WaitForBytesWritten(void* self, intptr_t slot);
|
|
|
|
bool QFile_virtualbase_WaitForBytesWritten(void* self, int msecs);
|
|
|
|
bool QFile_override_virtual_Event(void* self, intptr_t slot);
|
|
|
|
bool QFile_virtualbase_Event(void* self, QEvent* event);
|
|
|
|
bool QFile_override_virtual_EventFilter(void* self, intptr_t slot);
|
|
|
|
bool QFile_virtualbase_EventFilter(void* self, QObject* watched, QEvent* event);
|
|
|
|
bool QFile_override_virtual_TimerEvent(void* self, intptr_t slot);
|
|
|
|
void QFile_virtualbase_TimerEvent(void* self, QTimerEvent* event);
|
|
|
|
bool QFile_override_virtual_ChildEvent(void* self, intptr_t slot);
|
|
|
|
void QFile_virtualbase_ChildEvent(void* self, QChildEvent* event);
|
|
|
|
bool QFile_override_virtual_CustomEvent(void* self, intptr_t slot);
|
|
|
|
void QFile_virtualbase_CustomEvent(void* self, QEvent* event);
|
|
|
|
bool QFile_override_virtual_ConnectNotify(void* self, intptr_t slot);
|
|
|
|
void QFile_virtualbase_ConnectNotify(void* self, QMetaMethod* signal);
|
|
|
|
bool QFile_override_virtual_DisconnectNotify(void* self, intptr_t slot);
|
|
|
|
void QFile_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal);
|
2025-01-18 17:42:41 +13:00
|
|
|
void QFile_Delete(QFile* self);
|
2024-08-25 16:08:24 +12:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|