2024-08-25 04:08:24 +00:00
|
|
|
#ifndef GEN_QTEMPORARYDIR_H
|
|
|
|
#define GEN_QTEMPORARYDIR_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 QTemporaryDir;
|
|
|
|
#else
|
|
|
|
typedef struct QTemporaryDir QTemporaryDir;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
QTemporaryDir* QTemporaryDir_new();
|
2024-10-18 23:53:33 +00:00
|
|
|
QTemporaryDir* QTemporaryDir_new2(struct miqt_string templateName);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QTemporaryDir_IsValid(const QTemporaryDir* self);
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QTemporaryDir_ErrorString(const QTemporaryDir* self);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QTemporaryDir_AutoRemove(const QTemporaryDir* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QTemporaryDir_SetAutoRemove(QTemporaryDir* self, bool b);
|
|
|
|
bool QTemporaryDir_Remove(QTemporaryDir* self);
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QTemporaryDir_Path(const QTemporaryDir* self);
|
|
|
|
struct miqt_string QTemporaryDir_FilePath(const QTemporaryDir* self, struct miqt_string fileName);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QTemporaryDir_Delete(QTemporaryDir* self);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|