miqt/qt/gen_qdirmodel.h

102 lines
5.1 KiB
C
Raw Normal View History

#ifndef GEN_QDIRMODEL_H
#define GEN_QDIRMODEL_H
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
class QDirModel;
class QFileIconProvider;
class QFileInfo;
class QIcon;
class QMetaObject;
class QMimeData;
class QModelIndex;
class QObject;
class QVariant;
#else
typedef struct QDirModel QDirModel;
typedef struct QFileIconProvider QFileIconProvider;
typedef struct QFileInfo QFileInfo;
typedef struct QIcon QIcon;
typedef struct QMetaObject QMetaObject;
typedef struct QMimeData QMimeData;
typedef struct QModelIndex QModelIndex;
typedef struct QObject QObject;
typedef struct QVariant QVariant;
#endif
2024-08-29 07:01:51 +00:00
QDirModel* QDirModel_new(char** nameFilters, uint64_t* nameFilters_Lengths, size_t nameFilters_len, int filters, int sort);
QDirModel* QDirModel_new2();
QDirModel* QDirModel_new3(char** nameFilters, uint64_t* nameFilters_Lengths, size_t nameFilters_len, int filters, int sort, QObject* parent);
QDirModel* QDirModel_new4(QObject* parent);
QMetaObject* QDirModel_MetaObject(const QDirModel* self);
2024-08-29 07:01:51 +00:00
void QDirModel_Tr(const char* s, char** _out, int* _out_Strlen);
void QDirModel_TrUtf8(const char* s, char** _out, int* _out_Strlen);
QModelIndex* QDirModel_Index(const QDirModel* self, int row, int column);
QModelIndex* QDirModel_Parent(const QDirModel* self, QModelIndex* child);
int QDirModel_RowCount(const QDirModel* self);
int QDirModel_ColumnCount(const QDirModel* self);
QVariant* QDirModel_Data(const QDirModel* self, QModelIndex* index);
bool QDirModel_SetData(QDirModel* self, QModelIndex* index, QVariant* value);
QVariant* QDirModel_HeaderData(const QDirModel* self, int section, uintptr_t orientation);
bool QDirModel_HasChildren(const QDirModel* self);
int QDirModel_Flags(const QDirModel* self, QModelIndex* index);
2024-08-29 07:01:51 +00:00
void QDirModel_Sort(QDirModel* self, int column);
void QDirModel_MimeTypes(const QDirModel* self, char*** _out, int** _out_Lengths, size_t* _out_len);
QMimeData* QDirModel_MimeData(const QDirModel* self, QModelIndex** indexes, size_t indexes_len);
2024-08-29 07:01:51 +00:00
bool QDirModel_DropMimeData(QDirModel* self, QMimeData* data, uintptr_t action, int row, int column, QModelIndex* parent);
int QDirModel_SupportedDropActions(const QDirModel* self);
void QDirModel_SetIconProvider(QDirModel* self, QFileIconProvider* provider);
QFileIconProvider* QDirModel_IconProvider(const QDirModel* self);
void QDirModel_SetNameFilters(QDirModel* self, char** filters, uint64_t* filters_Lengths, size_t filters_len);
void QDirModel_NameFilters(const QDirModel* self, char*** _out, int** _out_Lengths, size_t* _out_len);
2024-08-29 07:01:51 +00:00
void QDirModel_SetFilter(QDirModel* self, int filters);
int QDirModel_Filter(const QDirModel* self);
2024-08-29 07:01:51 +00:00
void QDirModel_SetSorting(QDirModel* self, int sort);
int QDirModel_Sorting(const QDirModel* self);
void QDirModel_SetResolveSymlinks(QDirModel* self, bool enable);
bool QDirModel_ResolveSymlinks(const QDirModel* self);
void QDirModel_SetReadOnly(QDirModel* self, bool enable);
bool QDirModel_IsReadOnly(const QDirModel* self);
void QDirModel_SetLazyChildCount(QDirModel* self, bool enable);
bool QDirModel_LazyChildCount(const QDirModel* self);
QModelIndex* QDirModel_IndexWithPath(const QDirModel* self, const char* path, size_t path_Strlen);
bool QDirModel_IsDir(const QDirModel* self, QModelIndex* index);
QModelIndex* QDirModel_Mkdir(QDirModel* self, QModelIndex* parent, const char* name, size_t name_Strlen);
bool QDirModel_Rmdir(QDirModel* self, QModelIndex* index);
bool QDirModel_Remove(QDirModel* self, QModelIndex* index);
void QDirModel_FilePath(const QDirModel* self, QModelIndex* index, char** _out, int* _out_Strlen);
void QDirModel_FileName(const QDirModel* self, QModelIndex* index, char** _out, int* _out_Strlen);
QIcon* QDirModel_FileIcon(const QDirModel* self, QModelIndex* index);
QFileInfo* QDirModel_FileInfo(const QDirModel* self, QModelIndex* index);
void QDirModel_Refresh(QDirModel* self);
2024-08-29 07:01:51 +00:00
void QDirModel_Tr2(const char* s, const char* c, char** _out, int* _out_Strlen);
void QDirModel_Tr3(const char* s, const char* c, int n, char** _out, int* _out_Strlen);
void QDirModel_TrUtf82(const char* s, const char* c, char** _out, int* _out_Strlen);
void QDirModel_TrUtf83(const char* s, const char* c, int n, char** _out, int* _out_Strlen);
QModelIndex* QDirModel_Index3(const QDirModel* self, int row, int column, QModelIndex* parent);
int QDirModel_RowCount1(const QDirModel* self, QModelIndex* parent);
int QDirModel_ColumnCount1(const QDirModel* self, QModelIndex* parent);
QVariant* QDirModel_Data2(const QDirModel* self, QModelIndex* index, int role);
bool QDirModel_SetData3(QDirModel* self, QModelIndex* index, QVariant* value, int role);
QVariant* QDirModel_HeaderData3(const QDirModel* self, int section, uintptr_t orientation, int role);
bool QDirModel_HasChildren1(const QDirModel* self, QModelIndex* index);
2024-08-29 07:01:51 +00:00
void QDirModel_Sort2(QDirModel* self, int column, uintptr_t order);
QModelIndex* QDirModel_Index2(const QDirModel* self, const char* path, size_t path_Strlen, int column);
void QDirModel_Refresh1(QDirModel* self, QModelIndex* parent);
void QDirModel_Delete(QDirModel* self);
#ifdef __cplusplus
} /* extern C */
#endif
#endif