2024-11-17 06:21:37 +00:00
|
|
|
#pragma once
|
|
|
|
#ifndef MIQT_QT_GEN_QSETTINGS_H
|
|
|
|
#define MIQT_QT_GEN_QSETTINGS_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
|
2024-11-19 06:29:06 +00:00
|
|
|
class QChildEvent;
|
|
|
|
class QEvent;
|
|
|
|
class QMetaMethod;
|
2024-08-25 04:08:24 +00:00
|
|
|
class QMetaObject;
|
|
|
|
class QObject;
|
|
|
|
class QSettings;
|
|
|
|
class QTextCodec;
|
2024-11-19 06:29:06 +00:00
|
|
|
class QTimerEvent;
|
2024-08-25 04:08:24 +00:00
|
|
|
class QVariant;
|
|
|
|
#else
|
2024-11-19 06:29:06 +00:00
|
|
|
typedef struct QChildEvent QChildEvent;
|
|
|
|
typedef struct QEvent QEvent;
|
|
|
|
typedef struct QMetaMethod QMetaMethod;
|
2024-08-25 04:08:24 +00:00
|
|
|
typedef struct QMetaObject QMetaObject;
|
|
|
|
typedef struct QObject QObject;
|
|
|
|
typedef struct QSettings QSettings;
|
|
|
|
typedef struct QTextCodec QTextCodec;
|
2024-11-19 06:29:06 +00:00
|
|
|
typedef struct QTimerEvent QTimerEvent;
|
2024-08-25 04:08:24 +00:00
|
|
|
typedef struct QVariant QVariant;
|
|
|
|
#endif
|
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
QSettings* QSettings_new(struct miqt_string organization);
|
|
|
|
QSettings* QSettings_new2(int scope, struct miqt_string organization);
|
|
|
|
QSettings* QSettings_new3(int format, int scope, struct miqt_string organization);
|
|
|
|
QSettings* QSettings_new4(struct miqt_string fileName, int format);
|
|
|
|
QSettings* QSettings_new5();
|
|
|
|
QSettings* QSettings_new6(int scope);
|
|
|
|
QSettings* QSettings_new7(struct miqt_string organization, struct miqt_string application);
|
|
|
|
QSettings* QSettings_new8(struct miqt_string organization, struct miqt_string application, QObject* parent);
|
|
|
|
QSettings* QSettings_new9(int scope, struct miqt_string organization, struct miqt_string application);
|
|
|
|
QSettings* QSettings_new10(int scope, struct miqt_string organization, struct miqt_string application, QObject* parent);
|
|
|
|
QSettings* QSettings_new11(int format, int scope, struct miqt_string organization, struct miqt_string application);
|
|
|
|
QSettings* QSettings_new12(int format, int scope, struct miqt_string organization, struct miqt_string application, QObject* parent);
|
|
|
|
QSettings* QSettings_new13(struct miqt_string fileName, int format, QObject* parent);
|
|
|
|
QSettings* QSettings_new14(QObject* parent);
|
|
|
|
QSettings* QSettings_new15(int scope, QObject* parent);
|
|
|
|
void QSettings_virtbase(QSettings* src, QObject** outptr_QObject);
|
2024-09-11 05:41:09 +00:00
|
|
|
QMetaObject* QSettings_MetaObject(const QSettings* self);
|
2024-09-20 22:32:57 +00:00
|
|
|
void* QSettings_Metacast(QSettings* self, const char* param1);
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QSettings_Tr(const char* s);
|
|
|
|
struct miqt_string QSettings_TrUtf8(const char* s);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QSettings_Clear(QSettings* self);
|
|
|
|
void QSettings_Sync(QSettings* self);
|
2024-09-18 00:12:02 +00:00
|
|
|
int QSettings_Status(const QSettings* self);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QSettings_IsAtomicSyncRequired(const QSettings* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QSettings_SetAtomicSyncRequired(QSettings* self, bool enable);
|
2024-10-18 23:53:33 +00:00
|
|
|
void QSettings_BeginGroup(QSettings* self, struct miqt_string prefix);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QSettings_EndGroup(QSettings* self);
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QSettings_Group(const QSettings* self);
|
|
|
|
int QSettings_BeginReadArray(QSettings* self, struct miqt_string prefix);
|
|
|
|
void QSettings_BeginWriteArray(QSettings* self, struct miqt_string prefix);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QSettings_EndArray(QSettings* self);
|
|
|
|
void QSettings_SetArrayIndex(QSettings* self, int i);
|
2024-11-17 06:21:37 +00:00
|
|
|
struct miqt_array /* of struct miqt_string */ QSettings_AllKeys(const QSettings* self);
|
|
|
|
struct miqt_array /* of struct miqt_string */ QSettings_ChildKeys(const QSettings* self);
|
|
|
|
struct miqt_array /* of struct miqt_string */ QSettings_ChildGroups(const QSettings* self);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QSettings_IsWritable(const QSettings* self);
|
2024-10-18 23:53:33 +00:00
|
|
|
void QSettings_SetValue(QSettings* self, struct miqt_string key, QVariant* value);
|
|
|
|
QVariant* QSettings_Value(const QSettings* self, struct miqt_string key);
|
|
|
|
void QSettings_Remove(QSettings* self, struct miqt_string key);
|
|
|
|
bool QSettings_Contains(const QSettings* self, struct miqt_string key);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QSettings_SetFallbacksEnabled(QSettings* self, bool b);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QSettings_FallbacksEnabled(const QSettings* self);
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QSettings_FileName(const QSettings* self);
|
2024-09-18 00:12:02 +00:00
|
|
|
int QSettings_Format(const QSettings* self);
|
|
|
|
int QSettings_Scope(const QSettings* self);
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QSettings_OrganizationName(const QSettings* self);
|
|
|
|
struct miqt_string QSettings_ApplicationName(const QSettings* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QSettings_SetIniCodec(QSettings* self, QTextCodec* codec);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QSettings_SetIniCodecWithCodecName(QSettings* self, const char* codecName);
|
2024-09-11 05:41:09 +00:00
|
|
|
QTextCodec* QSettings_IniCodec(const QSettings* self);
|
2024-09-18 00:12:02 +00:00
|
|
|
void QSettings_SetDefaultFormat(int format);
|
|
|
|
int QSettings_DefaultFormat();
|
2024-10-18 23:53:33 +00:00
|
|
|
void QSettings_SetSystemIniPath(struct miqt_string dir);
|
|
|
|
void QSettings_SetUserIniPath(struct miqt_string dir);
|
|
|
|
void QSettings_SetPath(int format, int scope, struct miqt_string path);
|
2024-11-19 06:29:06 +00:00
|
|
|
bool QSettings_Event(QSettings* self, QEvent* event);
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QSettings_Tr2(const char* s, const char* c);
|
|
|
|
struct miqt_string QSettings_Tr3(const char* s, const char* c, int n);
|
|
|
|
struct miqt_string QSettings_TrUtf82(const char* s, const char* c);
|
|
|
|
struct miqt_string QSettings_TrUtf83(const char* s, const char* c, int n);
|
|
|
|
void QSettings_BeginWriteArray2(QSettings* self, struct miqt_string prefix, int size);
|
|
|
|
QVariant* QSettings_Value2(const QSettings* self, struct miqt_string key, QVariant* defaultValue);
|
2024-11-19 06:29:06 +00:00
|
|
|
void QSettings_override_virtual_Event(void* self, intptr_t slot);
|
|
|
|
bool QSettings_virtualbase_Event(void* self, QEvent* event);
|
|
|
|
void QSettings_override_virtual_EventFilter(void* self, intptr_t slot);
|
|
|
|
bool QSettings_virtualbase_EventFilter(void* self, QObject* watched, QEvent* event);
|
|
|
|
void QSettings_override_virtual_TimerEvent(void* self, intptr_t slot);
|
|
|
|
void QSettings_virtualbase_TimerEvent(void* self, QTimerEvent* event);
|
|
|
|
void QSettings_override_virtual_ChildEvent(void* self, intptr_t slot);
|
|
|
|
void QSettings_virtualbase_ChildEvent(void* self, QChildEvent* event);
|
|
|
|
void QSettings_override_virtual_CustomEvent(void* self, intptr_t slot);
|
|
|
|
void QSettings_virtualbase_CustomEvent(void* self, QEvent* event);
|
|
|
|
void QSettings_override_virtual_ConnectNotify(void* self, intptr_t slot);
|
|
|
|
void QSettings_virtualbase_ConnectNotify(void* self, QMetaMethod* signal);
|
|
|
|
void QSettings_override_virtual_DisconnectNotify(void* self, intptr_t slot);
|
|
|
|
void QSettings_virtualbase_DisconnectNotify(void* self, QMetaMethod* signal);
|
|
|
|
void QSettings_Delete(QSettings* self, bool isSubclass);
|
2024-08-25 04:08:24 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|