miqt/qt/gen_qstringlistmodel.h

60 lines
2.8 KiB
C++

#ifndef GEN_QSTRINGLISTMODEL_H
#define GEN_QSTRINGLISTMODEL_H
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#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();
QStringListModel* QStringListModel_new2(char** strings, uint64_t* strings_Lengths, size_t strings_len);
QStringListModel* QStringListModel_new3(QObject* parent);
QStringListModel* QStringListModel_new4(char** strings, uint64_t* strings_Lengths, size_t strings_len, QObject* parent);
QMetaObject* QStringListModel_MetaObject(QStringListModel* self);
void QStringListModel_Tr(char* s, char** _out, int* _out_Strlen);
void QStringListModel_TrUtf8(char* s, char** _out, int* _out_Strlen);
int QStringListModel_RowCount(QStringListModel* self);
QModelIndex* QStringListModel_Sibling(QStringListModel* self, int row, int column, QModelIndex* idx);
QVariant* QStringListModel_Data(QStringListModel* self, QModelIndex* index);
bool QStringListModel_SetData(QStringListModel* self, QModelIndex* index, QVariant* value);
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_StringList(QStringListModel* self, char*** _out, int** _out_Lengths, size_t* _out_len);
void QStringListModel_SetStringList(QStringListModel* self, char** strings, uint64_t* strings_Lengths, size_t strings_len);
void QStringListModel_Tr2(char* s, char* c, char** _out, int* _out_Strlen);
void QStringListModel_Tr3(char* s, char* c, int n, char** _out, int* _out_Strlen);
void QStringListModel_TrUtf82(char* s, char* c, char** _out, int* _out_Strlen);
void QStringListModel_TrUtf83(char* s, char* c, int n, char** _out, int* _out_Strlen);
int QStringListModel_RowCount1(QStringListModel* self, QModelIndex* parent);
QVariant* QStringListModel_Data2(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_Delete(QStringListModel* self);
#ifdef __cplusplus
} /* extern C */
#endif
#endif