2024-11-17 06:21:37 +00:00
|
|
|
#pragma once
|
|
|
|
#ifndef MIQT_QT_GEN_QFILE_H
|
|
|
|
#define MIQT_QT_GEN_QFILE_H
|
2024-08-25 04:08:24 +00:00
|
|
|
|
|
|
|
#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 QByteArray;
|
|
|
|
class QFile;
|
|
|
|
class QMetaObject;
|
|
|
|
class QObject;
|
|
|
|
#else
|
|
|
|
typedef struct QByteArray QByteArray;
|
|
|
|
typedef struct QFile QFile;
|
|
|
|
typedef struct QMetaObject QMetaObject;
|
|
|
|
typedef struct QObject QObject;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
QFile* QFile_new();
|
2024-10-18 23:53:33 +00:00
|
|
|
QFile* QFile_new2(struct miqt_string name);
|
2024-08-25 04:08:24 +00:00
|
|
|
QFile* QFile_new3(QObject* parent);
|
2024-10-18 23:53:33 +00:00
|
|
|
QFile* QFile_new4(struct miqt_string name, QObject* parent);
|
2024-09-11 05:41:09 +00:00
|
|
|
QMetaObject* QFile_MetaObject(const QFile* self);
|
2024-09-20 22:32:57 +00:00
|
|
|
void* QFile_Metacast(QFile* self, const char* param1);
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QFile_Tr(const char* s);
|
|
|
|
struct miqt_string QFile_TrUtf8(const char* s);
|
|
|
|
struct miqt_string QFile_FileName(const QFile* self);
|
|
|
|
void QFile_SetFileName(QFile* self, struct miqt_string name);
|
|
|
|
struct miqt_string QFile_EncodeName(struct miqt_string fileName);
|
|
|
|
struct miqt_string QFile_DecodeName(struct miqt_string localFileName);
|
|
|
|
struct miqt_string QFile_DecodeNameWithLocalFileName(const char* localFileName);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QFile_Exists(const QFile* self);
|
2024-10-18 23:53:33 +00:00
|
|
|
bool QFile_ExistsWithFileName(struct miqt_string fileName);
|
|
|
|
struct miqt_string QFile_ReadLink(const QFile* self);
|
|
|
|
struct miqt_string QFile_ReadLinkWithFileName(struct miqt_string fileName);
|
|
|
|
struct miqt_string QFile_SymLinkTarget(const QFile* self);
|
|
|
|
struct miqt_string QFile_SymLinkTargetWithFileName(struct miqt_string fileName);
|
2024-08-25 04:08:24 +00:00
|
|
|
bool QFile_Remove(QFile* self);
|
2024-10-18 23:53:33 +00:00
|
|
|
bool QFile_RemoveWithFileName(struct miqt_string fileName);
|
2024-08-25 04:08:24 +00:00
|
|
|
bool QFile_MoveToTrash(QFile* self);
|
2024-10-18 23:53:33 +00:00
|
|
|
bool QFile_MoveToTrashWithFileName(struct miqt_string fileName);
|
|
|
|
bool QFile_Rename(QFile* self, struct miqt_string newName);
|
|
|
|
bool QFile_Rename2(struct miqt_string oldName, struct miqt_string newName);
|
|
|
|
bool QFile_Link(QFile* self, struct miqt_string newName);
|
|
|
|
bool QFile_Link2(struct miqt_string oldname, struct miqt_string newName);
|
|
|
|
bool QFile_Copy(QFile* self, struct miqt_string newName);
|
|
|
|
bool QFile_Copy2(struct miqt_string fileName, struct miqt_string newName);
|
2024-08-29 07:01:51 +00:00
|
|
|
bool QFile_Open(QFile* self, int flags);
|
|
|
|
bool QFile_Open3(QFile* self, int fd, int ioFlags);
|
2024-09-11 05:41:09 +00:00
|
|
|
long long QFile_Size(const QFile* self);
|
2024-08-29 07:01:51 +00:00
|
|
|
bool QFile_Resize(QFile* self, long long sz);
|
2024-10-18 23:53:33 +00:00
|
|
|
bool QFile_Resize2(struct miqt_string filename, long long sz);
|
2024-09-11 05:41:09 +00:00
|
|
|
int QFile_Permissions(const QFile* self);
|
2024-10-18 23:53:33 +00:00
|
|
|
int QFile_PermissionsWithFilename(struct miqt_string filename);
|
2024-08-29 07:01:51 +00:00
|
|
|
bool QFile_SetPermissions(QFile* self, int permissionSpec);
|
2024-10-18 23:53:33 +00:00
|
|
|
bool QFile_SetPermissions2(struct miqt_string filename, int permissionSpec);
|
|
|
|
struct miqt_string QFile_Tr2(const char* s, const char* c);
|
|
|
|
struct miqt_string QFile_Tr3(const char* s, const char* c, int n);
|
|
|
|
struct miqt_string QFile_TrUtf82(const char* s, const char* c);
|
|
|
|
struct miqt_string QFile_TrUtf83(const char* s, const char* c, int n);
|
2024-08-29 07:01:51 +00:00
|
|
|
bool QFile_Open33(QFile* self, int fd, int ioFlags, int handleFlags);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QFile_Delete(QFile* self);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|