2024-11-17 06:21:37 +00:00
|
|
|
#pragma once
|
|
|
|
#ifndef MIQT_QT_GEN_QDIRMODEL_H
|
|
|
|
#define MIQT_QT_GEN_QDIRMODEL_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 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-11-17 06:21:37 +00:00
|
|
|
QDirModel* QDirModel_new(struct miqt_array /* of struct miqt_string */ nameFilters, int filters, int sort);
|
2024-08-29 07:01:51 +00:00
|
|
|
QDirModel* QDirModel_new2();
|
2024-11-17 06:21:37 +00:00
|
|
|
QDirModel* QDirModel_new3(struct miqt_array /* of struct miqt_string */ nameFilters, int filters, int sort, QObject* parent);
|
2024-08-29 07:01:51 +00:00
|
|
|
QDirModel* QDirModel_new4(QObject* parent);
|
2024-09-11 05:41:09 +00:00
|
|
|
QMetaObject* QDirModel_MetaObject(const QDirModel* self);
|
2024-09-20 22:32:57 +00:00
|
|
|
void* QDirModel_Metacast(QDirModel* self, const char* param1);
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QDirModel_Tr(const char* s);
|
|
|
|
struct miqt_string QDirModel_TrUtf8(const char* s);
|
2024-09-11 05:41:09 +00:00
|
|
|
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);
|
2024-08-25 04:08:24 +00:00
|
|
|
bool QDirModel_SetData(QDirModel* self, QModelIndex* index, QVariant* value);
|
2024-09-18 00:12:02 +00:00
|
|
|
QVariant* QDirModel_HeaderData(const QDirModel* self, int section, int orientation);
|
2024-09-11 05:41:09 +00:00
|
|
|
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);
|
2024-11-17 06:21:37 +00:00
|
|
|
struct miqt_array /* of struct miqt_string */ QDirModel_MimeTypes(const QDirModel* self);
|
|
|
|
QMimeData* QDirModel_MimeData(const QDirModel* self, struct miqt_array /* of QModelIndex* */ indexes);
|
2024-09-18 00:12:02 +00:00
|
|
|
bool QDirModel_DropMimeData(QDirModel* self, QMimeData* data, int action, int row, int column, QModelIndex* parent);
|
2024-09-11 05:41:09 +00:00
|
|
|
int QDirModel_SupportedDropActions(const QDirModel* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QDirModel_SetIconProvider(QDirModel* self, QFileIconProvider* provider);
|
2024-09-11 05:41:09 +00:00
|
|
|
QFileIconProvider* QDirModel_IconProvider(const QDirModel* self);
|
2024-11-17 06:21:37 +00:00
|
|
|
void QDirModel_SetNameFilters(QDirModel* self, struct miqt_array /* of struct miqt_string */ filters);
|
|
|
|
struct miqt_array /* of struct miqt_string */ QDirModel_NameFilters(const QDirModel* self);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QDirModel_SetFilter(QDirModel* self, int filters);
|
2024-09-11 05:41:09 +00:00
|
|
|
int QDirModel_Filter(const QDirModel* self);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QDirModel_SetSorting(QDirModel* self, int sort);
|
2024-09-11 05:41:09 +00:00
|
|
|
int QDirModel_Sorting(const QDirModel* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QDirModel_SetResolveSymlinks(QDirModel* self, bool enable);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QDirModel_ResolveSymlinks(const QDirModel* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QDirModel_SetReadOnly(QDirModel* self, bool enable);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QDirModel_IsReadOnly(const QDirModel* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QDirModel_SetLazyChildCount(QDirModel* self, bool enable);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QDirModel_LazyChildCount(const QDirModel* self);
|
2024-10-18 23:53:33 +00:00
|
|
|
QModelIndex* QDirModel_IndexWithPath(const QDirModel* self, struct miqt_string path);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QDirModel_IsDir(const QDirModel* self, QModelIndex* index);
|
2024-10-18 23:53:33 +00:00
|
|
|
QModelIndex* QDirModel_Mkdir(QDirModel* self, QModelIndex* parent, struct miqt_string name);
|
2024-08-25 04:08:24 +00:00
|
|
|
bool QDirModel_Rmdir(QDirModel* self, QModelIndex* index);
|
|
|
|
bool QDirModel_Remove(QDirModel* self, QModelIndex* index);
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QDirModel_FilePath(const QDirModel* self, QModelIndex* index);
|
|
|
|
struct miqt_string QDirModel_FileName(const QDirModel* self, QModelIndex* index);
|
2024-09-11 05:41:09 +00:00
|
|
|
QIcon* QDirModel_FileIcon(const QDirModel* self, QModelIndex* index);
|
|
|
|
QFileInfo* QDirModel_FileInfo(const QDirModel* self, QModelIndex* index);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QDirModel_Refresh(QDirModel* self);
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QDirModel_Tr2(const char* s, const char* c);
|
|
|
|
struct miqt_string QDirModel_Tr3(const char* s, const char* c, int n);
|
|
|
|
struct miqt_string QDirModel_TrUtf82(const char* s, const char* c);
|
|
|
|
struct miqt_string QDirModel_TrUtf83(const char* s, const char* c, int n);
|
2024-09-11 05:41:09 +00:00
|
|
|
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);
|
2024-08-25 04:08:24 +00:00
|
|
|
bool QDirModel_SetData3(QDirModel* self, QModelIndex* index, QVariant* value, int role);
|
2024-09-18 00:12:02 +00:00
|
|
|
QVariant* QDirModel_HeaderData3(const QDirModel* self, int section, int orientation, int role);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QDirModel_HasChildren1(const QDirModel* self, QModelIndex* index);
|
2024-09-18 00:12:02 +00:00
|
|
|
void QDirModel_Sort2(QDirModel* self, int column, int order);
|
2024-10-18 23:53:33 +00:00
|
|
|
QModelIndex* QDirModel_Index2(const QDirModel* self, struct miqt_string path, int column);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QDirModel_Refresh1(QDirModel* self, QModelIndex* parent);
|
|
|
|
void QDirModel_Delete(QDirModel* self);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|