miqt/qt6/gen_qsavefile.h

84 lines
3.5 KiB
C
Raw Permalink Normal View History

#pragma once
#ifndef MIQT_QT6_GEN_QSAVEFILE_H
#define MIQT_QT6_GEN_QSAVEFILE_H
2024-10-20 05:21:03 +00:00
#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
2024-11-19 06:29:06 +00:00
class QFileDevice;
class QIODevice;
class QIODeviceBase;
2024-10-20 05:21:03 +00:00
class QMetaObject;
class QObject;
class QSaveFile;
#else
2024-11-19 06:29:06 +00:00
typedef struct QFileDevice QFileDevice;
typedef struct QIODevice QIODevice;
typedef struct QIODeviceBase QIODeviceBase;
2024-10-20 05:21:03 +00:00
typedef struct QMetaObject QMetaObject;
typedef struct QObject QObject;
typedef struct QSaveFile QSaveFile;
#endif
2024-12-07 04:15:57 +00:00
QSaveFile* QSaveFile_new(struct miqt_string name);
QSaveFile* QSaveFile_new2();
QSaveFile* QSaveFile_new3(struct miqt_string name, QObject* parent);
QSaveFile* QSaveFile_new4(QObject* parent);
void QSaveFile_virtbase(QSaveFile* src, QFileDevice** outptr_QFileDevice);
2024-10-20 05:21:03 +00:00
QMetaObject* QSaveFile_MetaObject(const QSaveFile* self);
void* QSaveFile_Metacast(QSaveFile* self, const char* param1);
struct miqt_string QSaveFile_Tr(const char* s);
struct miqt_string QSaveFile_FileName(const QSaveFile* self);
void QSaveFile_SetFileName(QSaveFile* self, struct miqt_string name);
bool QSaveFile_Open(QSaveFile* self, int flags);
bool QSaveFile_Commit(QSaveFile* self);
void QSaveFile_CancelWriting(QSaveFile* self);
void QSaveFile_SetDirectWriteFallback(QSaveFile* self, bool enabled);
bool QSaveFile_DirectWriteFallback(const QSaveFile* self);
2024-11-19 06:29:06 +00:00
long long QSaveFile_WriteData(QSaveFile* self, const char* data, long long lenVal);
2024-10-20 05:21:03 +00:00
struct miqt_string QSaveFile_Tr2(const char* s, const char* c);
struct miqt_string QSaveFile_Tr3(const char* s, const char* c, int n);
2024-11-19 06:29:06 +00:00
void QSaveFile_override_virtual_FileName(void* self, intptr_t slot);
struct miqt_string QSaveFile_virtualbase_FileName(const void* self);
void QSaveFile_override_virtual_Open(void* self, intptr_t slot);
bool QSaveFile_virtualbase_Open(void* self, int flags);
void QSaveFile_override_virtual_WriteData(void* self, intptr_t slot);
long long QSaveFile_virtualbase_WriteData(void* self, const char* data, long long lenVal);
void QSaveFile_override_virtual_IsSequential(void* self, intptr_t slot);
bool QSaveFile_virtualbase_IsSequential(const void* self);
void QSaveFile_override_virtual_Pos(void* self, intptr_t slot);
long long QSaveFile_virtualbase_Pos(const void* self);
void QSaveFile_override_virtual_Seek(void* self, intptr_t slot);
bool QSaveFile_virtualbase_Seek(void* self, long long offset);
void QSaveFile_override_virtual_AtEnd(void* self, intptr_t slot);
bool QSaveFile_virtualbase_AtEnd(const void* self);
void QSaveFile_override_virtual_Size(void* self, intptr_t slot);
long long QSaveFile_virtualbase_Size(const void* self);
void QSaveFile_override_virtual_Resize(void* self, intptr_t slot);
bool QSaveFile_virtualbase_Resize(void* self, long long sz);
void QSaveFile_override_virtual_Permissions(void* self, intptr_t slot);
int QSaveFile_virtualbase_Permissions(const void* self);
void QSaveFile_override_virtual_SetPermissions(void* self, intptr_t slot);
bool QSaveFile_virtualbase_SetPermissions(void* self, int permissionSpec);
void QSaveFile_override_virtual_ReadData(void* self, intptr_t slot);
long long QSaveFile_virtualbase_ReadData(void* self, char* data, long long maxlen);
void QSaveFile_override_virtual_ReadLineData(void* self, intptr_t slot);
long long QSaveFile_virtualbase_ReadLineData(void* self, char* data, long long maxlen);
void QSaveFile_Delete(QSaveFile* self, bool isSubclass);
2024-10-20 05:21:03 +00:00
#ifdef __cplusplus
} /* extern C */
#endif
#endif