miqt/qt/gen_qfileinfo.h

95 lines
4.3 KiB
C
Raw Normal View History

#ifndef GEN_QFILEINFO_H
#define GEN_QFILEINFO_H
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
class QDateTime;
class QDir;
class QFile;
class QFileInfo;
#else
typedef struct QDateTime QDateTime;
typedef struct QDir QDir;
typedef struct QFile QFile;
typedef struct QFileInfo QFileInfo;
#endif
QFileInfo* QFileInfo_new();
QFileInfo* QFileInfo_new2(const char* file, size_t file_Strlen);
QFileInfo* QFileInfo_new3(QFile* file);
QFileInfo* QFileInfo_new4(QDir* dir, const char* file, size_t file_Strlen);
QFileInfo* QFileInfo_new5(QFileInfo* fileinfo);
void QFileInfo_OperatorAssign(QFileInfo* self, QFileInfo* fileinfo);
void QFileInfo_Swap(QFileInfo* self, QFileInfo* other);
bool QFileInfo_OperatorEqual(const QFileInfo* self, QFileInfo* fileinfo);
bool QFileInfo_OperatorNotEqual(const QFileInfo* self, QFileInfo* fileinfo);
void QFileInfo_SetFile(QFileInfo* self, const char* file, size_t file_Strlen);
void QFileInfo_SetFileWithFile(QFileInfo* self, QFile* file);
void QFileInfo_SetFile2(QFileInfo* self, QDir* dir, const char* file, size_t file_Strlen);
bool QFileInfo_Exists(const QFileInfo* self);
bool QFileInfo_ExistsWithFile(const char* file, size_t file_Strlen);
void QFileInfo_Refresh(QFileInfo* self);
void QFileInfo_FilePath(const QFileInfo* self, char** _out, int* _out_Strlen);
void QFileInfo_AbsoluteFilePath(const QFileInfo* self, char** _out, int* _out_Strlen);
void QFileInfo_CanonicalFilePath(const QFileInfo* self, char** _out, int* _out_Strlen);
void QFileInfo_FileName(const QFileInfo* self, char** _out, int* _out_Strlen);
void QFileInfo_BaseName(const QFileInfo* self, char** _out, int* _out_Strlen);
void QFileInfo_CompleteBaseName(const QFileInfo* self, char** _out, int* _out_Strlen);
void QFileInfo_Suffix(const QFileInfo* self, char** _out, int* _out_Strlen);
void QFileInfo_BundleName(const QFileInfo* self, char** _out, int* _out_Strlen);
void QFileInfo_CompleteSuffix(const QFileInfo* self, char** _out, int* _out_Strlen);
void QFileInfo_Path(const QFileInfo* self, char** _out, int* _out_Strlen);
void QFileInfo_AbsolutePath(const QFileInfo* self, char** _out, int* _out_Strlen);
void QFileInfo_CanonicalPath(const QFileInfo* self, char** _out, int* _out_Strlen);
QDir* QFileInfo_Dir(const QFileInfo* self);
QDir* QFileInfo_AbsoluteDir(const QFileInfo* self);
bool QFileInfo_IsReadable(const QFileInfo* self);
bool QFileInfo_IsWritable(const QFileInfo* self);
bool QFileInfo_IsExecutable(const QFileInfo* self);
bool QFileInfo_IsHidden(const QFileInfo* self);
bool QFileInfo_IsNativePath(const QFileInfo* self);
bool QFileInfo_IsRelative(const QFileInfo* self);
bool QFileInfo_IsAbsolute(const QFileInfo* self);
bool QFileInfo_MakeAbsolute(QFileInfo* self);
bool QFileInfo_IsFile(const QFileInfo* self);
bool QFileInfo_IsDir(const QFileInfo* self);
bool QFileInfo_IsSymLink(const QFileInfo* self);
bool QFileInfo_IsSymbolicLink(const QFileInfo* self);
bool QFileInfo_IsShortcut(const QFileInfo* self);
bool QFileInfo_IsJunction(const QFileInfo* self);
bool QFileInfo_IsRoot(const QFileInfo* self);
bool QFileInfo_IsBundle(const QFileInfo* self);
void QFileInfo_ReadLink(const QFileInfo* self, char** _out, int* _out_Strlen);
void QFileInfo_SymLinkTarget(const QFileInfo* self, char** _out, int* _out_Strlen);
void QFileInfo_Owner(const QFileInfo* self, char** _out, int* _out_Strlen);
unsigned int QFileInfo_OwnerId(const QFileInfo* self);
void QFileInfo_Group(const QFileInfo* self, char** _out, int* _out_Strlen);
unsigned int QFileInfo_GroupId(const QFileInfo* self);
bool QFileInfo_Permission(const QFileInfo* self, int permissions);
int QFileInfo_Permissions(const QFileInfo* self);
long long QFileInfo_Size(const QFileInfo* self);
QDateTime* QFileInfo_Created(const QFileInfo* self);
QDateTime* QFileInfo_BirthTime(const QFileInfo* self);
QDateTime* QFileInfo_MetadataChangeTime(const QFileInfo* self);
QDateTime* QFileInfo_LastModified(const QFileInfo* self);
QDateTime* QFileInfo_LastRead(const QFileInfo* self);
QDateTime* QFileInfo_FileTime(const QFileInfo* self, uintptr_t time);
bool QFileInfo_Caching(const QFileInfo* self);
void QFileInfo_SetCaching(QFileInfo* self, bool on);
void QFileInfo_Delete(QFileInfo* self);
#ifdef __cplusplus
} /* extern C */
#endif
#endif