2024-08-25 04:08:24 +00:00
|
|
|
#ifndef GEN_QSAVEFILE_H
|
|
|
|
#define GEN_QSAVEFILE_H
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
class QMetaObject;
|
|
|
|
class QObject;
|
|
|
|
class QSaveFile;
|
|
|
|
#else
|
|
|
|
typedef struct QMetaObject QMetaObject;
|
|
|
|
typedef struct QObject QObject;
|
|
|
|
typedef struct QSaveFile QSaveFile;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
QSaveFile* QSaveFile_new(const char* name, size_t name_Strlen);
|
|
|
|
QSaveFile* QSaveFile_new2();
|
|
|
|
QSaveFile* QSaveFile_new3(const char* name, size_t name_Strlen, QObject* parent);
|
|
|
|
QSaveFile* QSaveFile_new4(QObject* parent);
|
2024-09-11 05:41:09 +00:00
|
|
|
QMetaObject* QSaveFile_MetaObject(const QSaveFile* self);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QSaveFile_Tr(const char* s, char** _out, int* _out_Strlen);
|
|
|
|
void QSaveFile_TrUtf8(const char* s, char** _out, int* _out_Strlen);
|
2024-09-11 05:41:09 +00:00
|
|
|
void QSaveFile_FileName(const QSaveFile* self, char** _out, int* _out_Strlen);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QSaveFile_SetFileName(QSaveFile* self, const char* name, size_t name_Strlen);
|
2024-08-29 07:01:51 +00:00
|
|
|
bool QSaveFile_Open(QSaveFile* self, int flags);
|
2024-08-25 04:08:24 +00:00
|
|
|
bool QSaveFile_Commit(QSaveFile* self);
|
|
|
|
void QSaveFile_CancelWriting(QSaveFile* self);
|
|
|
|
void QSaveFile_SetDirectWriteFallback(QSaveFile* self, bool enabled);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QSaveFile_DirectWriteFallback(const QSaveFile* self);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QSaveFile_Tr2(const char* s, const char* c, char** _out, int* _out_Strlen);
|
|
|
|
void QSaveFile_Tr3(const char* s, const char* c, int n, char** _out, int* _out_Strlen);
|
|
|
|
void QSaveFile_TrUtf82(const char* s, const char* c, char** _out, int* _out_Strlen);
|
|
|
|
void QSaveFile_TrUtf83(const char* s, const char* c, int n, char** _out, int* _out_Strlen);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QSaveFile_Delete(QSaveFile* self);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|