miqt/qt/gen_qsavefile.h

84 lines
4.0 KiB
C
Raw Normal View History

#pragma once
#ifndef MIQT_QT_GEN_QSAVEFILE_H
#define MIQT_QT_GEN_QSAVEFILE_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
2024-11-19 06:29:06 +00:00
class QFileDevice;
class QIODevice;
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 QMetaObject QMetaObject;
typedef struct QObject QObject;
typedef struct QSaveFile QSaveFile;
#endif
2024-11-19 06:29:06 +00:00
void QSaveFile_new(struct miqt_string name, QSaveFile** outptr_QSaveFile, QFileDevice** outptr_QFileDevice, QIODevice** outptr_QIODevice, QObject** outptr_QObject);
void QSaveFile_new2(QSaveFile** outptr_QSaveFile, QFileDevice** outptr_QFileDevice, QIODevice** outptr_QIODevice, QObject** outptr_QObject);
void QSaveFile_new3(struct miqt_string name, QObject* parent, QSaveFile** outptr_QSaveFile, QFileDevice** outptr_QFileDevice, QIODevice** outptr_QIODevice, QObject** outptr_QObject);
void QSaveFile_new4(QObject* parent, QSaveFile** outptr_QSaveFile, QFileDevice** outptr_QFileDevice, QIODevice** outptr_QIODevice, QObject** outptr_QObject);
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_TrUtf8(const char* s);
struct miqt_string QSaveFile_FileName(const QSaveFile* self);
void QSaveFile_SetFileName(QSaveFile* self, struct miqt_string name);
2024-08-29 07:01:51 +00:00
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);
struct miqt_string QSaveFile_Tr2(const char* s, const char* c);
struct miqt_string QSaveFile_Tr3(const char* s, const char* c, int n);
struct miqt_string QSaveFile_TrUtf82(const char* s, const char* c);
struct miqt_string QSaveFile_TrUtf83(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);
#ifdef __cplusplus
} /* extern C */
#endif
#endif