miqt/qt6/gen_qfile.h

109 lines
5.2 KiB
C++

#pragma once
#ifndef MIQT_QT6_GEN_QFILE_H
#define MIQT_QT6_GEN_QFILE_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 QByteArray;
class QFile;
class QFileDevice;
class QIODevice;
class QIODeviceBase;
class QMetaObject;
class QObject;
#else
typedef struct QByteArray QByteArray;
typedef struct QFile QFile;
typedef struct QFileDevice QFileDevice;
typedef struct QIODevice QIODevice;
typedef struct QIODeviceBase QIODeviceBase;
typedef struct QMetaObject QMetaObject;
typedef struct QObject QObject;
#endif
void QFile_new(QFile** outptr_QFile, QFileDevice** outptr_QFileDevice, QIODevice** outptr_QIODevice, QObject** outptr_QObject, QIODeviceBase** outptr_QIODeviceBase);
void QFile_new2(struct miqt_string name, QFile** outptr_QFile, QFileDevice** outptr_QFileDevice, QIODevice** outptr_QIODevice, QObject** outptr_QObject, QIODeviceBase** outptr_QIODeviceBase);
void QFile_new3(QObject* parent, QFile** outptr_QFile, QFileDevice** outptr_QFileDevice, QIODevice** outptr_QIODevice, QObject** outptr_QObject, QIODeviceBase** outptr_QIODeviceBase);
void QFile_new4(struct miqt_string name, QObject* parent, QFile** outptr_QFile, QFileDevice** outptr_QFileDevice, QIODevice** outptr_QIODevice, QObject** outptr_QObject, QIODeviceBase** outptr_QIODeviceBase);
QMetaObject* QFile_MetaObject(const QFile* self);
void* QFile_Metacast(QFile* self, const char* param1);
struct miqt_string QFile_Tr(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);
bool QFile_Exists(const QFile* self);
bool QFile_ExistsWithFileName(struct miqt_string fileName);
struct miqt_string QFile_SymLinkTarget(const QFile* self);
struct miqt_string QFile_SymLinkTargetWithFileName(struct miqt_string fileName);
bool QFile_Remove(QFile* self);
bool QFile_RemoveWithFileName(struct miqt_string fileName);
bool QFile_MoveToTrash(QFile* self);
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 fileName, struct miqt_string newName);
bool QFile_Copy(QFile* self, struct miqt_string newName);
bool QFile_Copy2(struct miqt_string fileName, struct miqt_string newName);
bool QFile_Open(QFile* self, int flags);
bool QFile_Open2(QFile* self, int flags, int permissions);
bool QFile_Open4(QFile* self, int fd, int ioFlags);
long long QFile_Size(const QFile* self);
bool QFile_Resize(QFile* self, long long sz);
bool QFile_Resize2(struct miqt_string filename, long long sz);
int QFile_Permissions(const QFile* self);
int QFile_PermissionsWithFilename(struct miqt_string filename);
bool QFile_SetPermissions(QFile* self, int permissionSpec);
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);
bool QFile_Open33(QFile* self, int fd, int ioFlags, int handleFlags);
void QFile_override_virtual_FileName(void* self, intptr_t slot);
struct miqt_string QFile_virtualbase_FileName(const void* self);
void QFile_override_virtual_Open(void* self, intptr_t slot);
bool QFile_virtualbase_Open(void* self, int flags);
void QFile_override_virtual_Size(void* self, intptr_t slot);
long long QFile_virtualbase_Size(const void* self);
void QFile_override_virtual_Resize(void* self, intptr_t slot);
bool QFile_virtualbase_Resize(void* self, long long sz);
void QFile_override_virtual_Permissions(void* self, intptr_t slot);
int QFile_virtualbase_Permissions(const void* self);
void QFile_override_virtual_SetPermissions(void* self, intptr_t slot);
bool QFile_virtualbase_SetPermissions(void* self, int permissionSpec);
void QFile_override_virtual_Close(void* self, intptr_t slot);
void QFile_virtualbase_Close(void* self);
void QFile_override_virtual_IsSequential(void* self, intptr_t slot);
bool QFile_virtualbase_IsSequential(const void* self);
void QFile_override_virtual_Pos(void* self, intptr_t slot);
long long QFile_virtualbase_Pos(const void* self);
void QFile_override_virtual_Seek(void* self, intptr_t slot);
bool QFile_virtualbase_Seek(void* self, long long offset);
void QFile_override_virtual_AtEnd(void* self, intptr_t slot);
bool QFile_virtualbase_AtEnd(const void* self);
void QFile_override_virtual_ReadData(void* self, intptr_t slot);
long long QFile_virtualbase_ReadData(void* self, char* data, long long maxlen);
void QFile_override_virtual_WriteData(void* self, intptr_t slot);
long long QFile_virtualbase_WriteData(void* self, const char* data, long long lenVal);
void QFile_override_virtual_ReadLineData(void* self, intptr_t slot);
long long QFile_virtualbase_ReadLineData(void* self, char* data, long long maxlen);
void QFile_Delete(QFile* self, bool isSubclass);
#ifdef __cplusplus
} /* extern C */
#endif
#endif