2024-10-20 05:21:03 +00:00
|
|
|
#ifndef GEN_QSTRINGLISTMODEL_H
|
|
|
|
#define GEN_QSTRINGLISTMODEL_H
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
|
|
|
|
#include "../libmiqt/libmiqt.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
class QMetaObject;
|
|
|
|
class QModelIndex;
|
|
|
|
class QObject;
|
|
|
|
class QStringListModel;
|
|
|
|
class QVariant;
|
|
|
|
#else
|
|
|
|
typedef struct QMetaObject QMetaObject;
|
|
|
|
typedef struct QModelIndex QModelIndex;
|
|
|
|
typedef struct QObject QObject;
|
|
|
|
typedef struct QStringListModel QStringListModel;
|
|
|
|
typedef struct QVariant QVariant;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
QStringListModel* QStringListModel_new();
|
2024-11-04 07:18:27 +00:00
|
|
|
QStringListModel* QStringListModel_new2(struct miqt_array /* of struct miqt_string */ strings);
|
2024-10-20 05:21:03 +00:00
|
|
|
QStringListModel* QStringListModel_new3(QObject* parent);
|
2024-11-04 07:18:27 +00:00
|
|
|
QStringListModel* QStringListModel_new4(struct miqt_array /* of struct miqt_string */ strings, QObject* parent);
|
2024-10-20 05:21:03 +00:00
|
|
|
QMetaObject* QStringListModel_MetaObject(const QStringListModel* self);
|
|
|
|
void* QStringListModel_Metacast(QStringListModel* self, const char* param1);
|
|
|
|
struct miqt_string QStringListModel_Tr(const char* s);
|
|
|
|
int QStringListModel_RowCount(const QStringListModel* self);
|
|
|
|
QModelIndex* QStringListModel_Sibling(const QStringListModel* self, int row, int column, QModelIndex* idx);
|
|
|
|
QVariant* QStringListModel_Data(const QStringListModel* self, QModelIndex* index);
|
|
|
|
bool QStringListModel_SetData(QStringListModel* self, QModelIndex* index, QVariant* value);
|
|
|
|
bool QStringListModel_ClearItemData(QStringListModel* self, QModelIndex* index);
|
|
|
|
int QStringListModel_Flags(const QStringListModel* self, QModelIndex* index);
|
|
|
|
bool QStringListModel_InsertRows(QStringListModel* self, int row, int count);
|
|
|
|
bool QStringListModel_RemoveRows(QStringListModel* self, int row, int count);
|
|
|
|
bool QStringListModel_MoveRows(QStringListModel* self, QModelIndex* sourceParent, int sourceRow, int count, QModelIndex* destinationParent, int destinationChild);
|
|
|
|
void QStringListModel_Sort(QStringListModel* self, int column);
|
2024-11-04 07:18:27 +00:00
|
|
|
struct miqt_array QStringListModel_StringList(const QStringListModel* self);
|
|
|
|
void QStringListModel_SetStringList(QStringListModel* self, struct miqt_array /* of struct miqt_string */ strings);
|
2024-10-20 05:21:03 +00:00
|
|
|
int QStringListModel_SupportedDropActions(const QStringListModel* self);
|
|
|
|
struct miqt_string QStringListModel_Tr2(const char* s, const char* c);
|
|
|
|
struct miqt_string QStringListModel_Tr3(const char* s, const char* c, int n);
|
|
|
|
int QStringListModel_RowCount1(const QStringListModel* self, QModelIndex* parent);
|
|
|
|
QVariant* QStringListModel_Data2(const QStringListModel* self, QModelIndex* index, int role);
|
|
|
|
bool QStringListModel_SetData3(QStringListModel* self, QModelIndex* index, QVariant* value, int role);
|
|
|
|
bool QStringListModel_InsertRows3(QStringListModel* self, int row, int count, QModelIndex* parent);
|
|
|
|
bool QStringListModel_RemoveRows3(QStringListModel* self, int row, int count, QModelIndex* parent);
|
|
|
|
void QStringListModel_Sort2(QStringListModel* self, int column, int order);
|
|
|
|
void QStringListModel_Delete(QStringListModel* self);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|