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"
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
#include "../libmiqt/libmiqt.h"
|
2024-09-14 22:29:05 +00:00
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
#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
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
QSaveFile* QSaveFile_new(struct miqt_string* name);
|
2024-08-25 04:08:24 +00:00
|
|
|
QSaveFile* QSaveFile_new2();
|
2024-09-14 22:29:05 +00:00
|
|
|
QSaveFile* QSaveFile_new3(struct miqt_string* name, QObject* parent);
|
2024-08-25 04:08:24 +00:00
|
|
|
QSaveFile* QSaveFile_new4(QObject* parent);
|
2024-09-11 05:41:09 +00:00
|
|
|
QMetaObject* QSaveFile_MetaObject(const QSaveFile* self);
|
2024-09-20 22:32:57 +00:00
|
|
|
void* QSaveFile_Metacast(QSaveFile* self, const char* param1);
|
2024-09-14 22:29:05 +00:00
|
|
|
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);
|
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-09-14 22:29:05 +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);
|
|
|
|
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-08-25 04:08:24 +00:00
|
|
|
void QSaveFile_Delete(QSaveFile* self);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|