mirror of
https://github.com/mappu/miqt.git
synced 2024-12-23 01:18:37 +00:00
48 lines
1.5 KiB
C
48 lines
1.5 KiB
C
|
#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);
|
||
|
QMetaObject* QSaveFile_MetaObject(QSaveFile* self);
|
||
|
void QSaveFile_Tr(char* s, char** _out, int* _out_Strlen);
|
||
|
void QSaveFile_TrUtf8(char* s, char** _out, int* _out_Strlen);
|
||
|
void QSaveFile_FileName(QSaveFile* self, char** _out, int* _out_Strlen);
|
||
|
void QSaveFile_SetFileName(QSaveFile* self, const char* name, size_t name_Strlen);
|
||
|
bool QSaveFile_Commit(QSaveFile* self);
|
||
|
void QSaveFile_CancelWriting(QSaveFile* self);
|
||
|
void QSaveFile_SetDirectWriteFallback(QSaveFile* self, bool enabled);
|
||
|
bool QSaveFile_DirectWriteFallback(QSaveFile* self);
|
||
|
void QSaveFile_Tr2(char* s, char* c, char** _out, int* _out_Strlen);
|
||
|
void QSaveFile_Tr3(char* s, char* c, int n, char** _out, int* _out_Strlen);
|
||
|
void QSaveFile_TrUtf82(char* s, char* c, char** _out, int* _out_Strlen);
|
||
|
void QSaveFile_TrUtf83(char* s, char* c, int n, char** _out, int* _out_Strlen);
|
||
|
void QSaveFile_Delete(QSaveFile* self);
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
} /* extern C */
|
||
|
#endif
|
||
|
|
||
|
#endif
|