2024-08-25 04:08:24 +00:00
|
|
|
#ifndef GEN_QDIR_H
|
|
|
|
#define GEN_QDIR_H
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
#include "binding.h"
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
class QChar;
|
|
|
|
class QDir;
|
|
|
|
class QFileInfo;
|
|
|
|
#else
|
|
|
|
typedef struct QChar QChar;
|
|
|
|
typedef struct QDir QDir;
|
|
|
|
typedef struct QFileInfo QFileInfo;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
QDir* QDir_new(QDir* param1);
|
|
|
|
QDir* QDir_new2();
|
2024-09-14 22:29:05 +00:00
|
|
|
QDir* QDir_new3(struct miqt_string* path, struct miqt_string* nameFilter);
|
|
|
|
QDir* QDir_new4(struct miqt_string* path);
|
|
|
|
QDir* QDir_new5(struct miqt_string* path, struct miqt_string* nameFilter, int sort);
|
|
|
|
QDir* QDir_new6(struct miqt_string* path, struct miqt_string* nameFilter, int sort, int filter);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QDir_OperatorAssign(QDir* self, QDir* param1);
|
2024-09-14 22:29:05 +00:00
|
|
|
void QDir_OperatorAssignWithPath(QDir* self, struct miqt_string* path);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QDir_Swap(QDir* self, QDir* other);
|
2024-09-14 22:29:05 +00:00
|
|
|
void QDir_SetPath(QDir* self, struct miqt_string* path);
|
|
|
|
struct miqt_string* QDir_Path(const QDir* self);
|
|
|
|
struct miqt_string* QDir_AbsolutePath(const QDir* self);
|
|
|
|
struct miqt_string* QDir_CanonicalPath(const QDir* self);
|
|
|
|
void QDir_AddResourceSearchPath(struct miqt_string* path);
|
2024-09-16 07:33:40 +00:00
|
|
|
void QDir_SetSearchPaths(struct miqt_string* prefix, struct miqt_array* /* of struct miqt_string* */ searchPaths);
|
2024-09-14 22:29:05 +00:00
|
|
|
void QDir_AddSearchPath(struct miqt_string* prefix, struct miqt_string* path);
|
|
|
|
struct miqt_array* QDir_SearchPaths(struct miqt_string* prefix);
|
|
|
|
struct miqt_string* QDir_DirName(const QDir* self);
|
|
|
|
struct miqt_string* QDir_FilePath(const QDir* self, struct miqt_string* fileName);
|
|
|
|
struct miqt_string* QDir_AbsoluteFilePath(const QDir* self, struct miqt_string* fileName);
|
|
|
|
struct miqt_string* QDir_RelativeFilePath(const QDir* self, struct miqt_string* fileName);
|
|
|
|
struct miqt_string* QDir_ToNativeSeparators(struct miqt_string* pathName);
|
|
|
|
struct miqt_string* QDir_FromNativeSeparators(struct miqt_string* pathName);
|
|
|
|
bool QDir_Cd(QDir* self, struct miqt_string* dirName);
|
2024-08-25 04:08:24 +00:00
|
|
|
bool QDir_CdUp(QDir* self);
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_array* QDir_NameFilters(const QDir* self);
|
2024-09-16 07:33:40 +00:00
|
|
|
void QDir_SetNameFilters(QDir* self, struct miqt_array* /* of struct miqt_string* */ nameFilters);
|
2024-09-11 05:41:09 +00:00
|
|
|
int QDir_Filter(const QDir* self);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QDir_SetFilter(QDir* self, int filter);
|
2024-09-11 05:41:09 +00:00
|
|
|
int QDir_Sorting(const QDir* self);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QDir_SetSorting(QDir* self, int sort);
|
2024-09-11 05:41:09 +00:00
|
|
|
unsigned int QDir_Count(const QDir* self);
|
|
|
|
bool QDir_IsEmpty(const QDir* self);
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QDir_OperatorSubscript(const QDir* self, int param1);
|
|
|
|
struct miqt_array* QDir_NameFiltersFromString(struct miqt_string* nameFilter);
|
|
|
|
struct miqt_array* QDir_EntryList(const QDir* self);
|
2024-09-16 07:33:40 +00:00
|
|
|
struct miqt_array* QDir_EntryListWithNameFilters(const QDir* self, struct miqt_array* /* of struct miqt_string* */ nameFilters);
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_array* QDir_EntryInfoList(const QDir* self);
|
2024-09-16 07:33:40 +00:00
|
|
|
struct miqt_array* QDir_EntryInfoListWithNameFilters(const QDir* self, struct miqt_array* /* of struct miqt_string* */ nameFilters);
|
2024-09-14 22:29:05 +00:00
|
|
|
bool QDir_Mkdir(const QDir* self, struct miqt_string* dirName);
|
|
|
|
bool QDir_Rmdir(const QDir* self, struct miqt_string* dirName);
|
|
|
|
bool QDir_Mkpath(const QDir* self, struct miqt_string* dirPath);
|
|
|
|
bool QDir_Rmpath(const QDir* self, struct miqt_string* dirPath);
|
2024-08-25 04:08:24 +00:00
|
|
|
bool QDir_RemoveRecursively(QDir* self);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QDir_IsReadable(const QDir* self);
|
|
|
|
bool QDir_Exists(const QDir* self);
|
|
|
|
bool QDir_IsRoot(const QDir* self);
|
2024-09-14 22:29:05 +00:00
|
|
|
bool QDir_IsRelativePath(struct miqt_string* path);
|
|
|
|
bool QDir_IsAbsolutePath(struct miqt_string* path);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QDir_IsRelative(const QDir* self);
|
|
|
|
bool QDir_IsAbsolute(const QDir* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
bool QDir_MakeAbsolute(QDir* self);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QDir_OperatorEqual(const QDir* self, QDir* dir);
|
|
|
|
bool QDir_OperatorNotEqual(const QDir* self, QDir* dir);
|
2024-09-14 22:29:05 +00:00
|
|
|
bool QDir_Remove(QDir* self, struct miqt_string* fileName);
|
|
|
|
bool QDir_Rename(QDir* self, struct miqt_string* oldName, struct miqt_string* newName);
|
|
|
|
bool QDir_ExistsWithName(const QDir* self, struct miqt_string* name);
|
|
|
|
struct miqt_array* QDir_Drives();
|
2024-08-25 04:08:24 +00:00
|
|
|
QChar* QDir_ListSeparator();
|
|
|
|
QChar* QDir_Separator();
|
2024-09-14 22:29:05 +00:00
|
|
|
bool QDir_SetCurrent(struct miqt_string* path);
|
2024-08-25 04:08:24 +00:00
|
|
|
QDir* QDir_Current();
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QDir_CurrentPath();
|
2024-08-25 04:08:24 +00:00
|
|
|
QDir* QDir_Home();
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QDir_HomePath();
|
2024-08-25 04:08:24 +00:00
|
|
|
QDir* QDir_Root();
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QDir_RootPath();
|
2024-08-25 04:08:24 +00:00
|
|
|
QDir* QDir_Temp();
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QDir_TempPath();
|
2024-09-16 07:33:40 +00:00
|
|
|
bool QDir_Match(struct miqt_array* /* of struct miqt_string* */ filters, struct miqt_string* fileName);
|
2024-09-14 22:29:05 +00:00
|
|
|
bool QDir_Match2(struct miqt_string* filter, struct miqt_string* fileName);
|
|
|
|
struct miqt_string* QDir_CleanPath(struct miqt_string* path);
|
2024-09-11 05:41:09 +00:00
|
|
|
void QDir_Refresh(const QDir* self);
|
|
|
|
bool QDir_IsEmpty1(const QDir* self, int filters);
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_array* QDir_EntryList1(const QDir* self, int filters);
|
|
|
|
struct miqt_array* QDir_EntryList2(const QDir* self, int filters, int sort);
|
2024-09-16 07:33:40 +00:00
|
|
|
struct miqt_array* QDir_EntryList22(const QDir* self, struct miqt_array* /* of struct miqt_string* */ nameFilters, int filters);
|
|
|
|
struct miqt_array* QDir_EntryList3(const QDir* self, struct miqt_array* /* of struct miqt_string* */ nameFilters, int filters, int sort);
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_array* QDir_EntryInfoList1(const QDir* self, int filters);
|
|
|
|
struct miqt_array* QDir_EntryInfoList2(const QDir* self, int filters, int sort);
|
2024-09-16 07:33:40 +00:00
|
|
|
struct miqt_array* QDir_EntryInfoList22(const QDir* self, struct miqt_array* /* of struct miqt_string* */ nameFilters, int filters);
|
|
|
|
struct miqt_array* QDir_EntryInfoList3(const QDir* self, struct miqt_array* /* of struct miqt_string* */ nameFilters, int filters, int sort);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QDir_Delete(QDir* self);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|