2024-11-17 06:21:37 +00:00
|
|
|
#pragma once
|
|
|
|
#ifndef MIQT_QT_GEN_QURLQUERY_H
|
|
|
|
#define MIQT_QT_GEN_QURLQUERY_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 QChar;
|
|
|
|
class QUrl;
|
|
|
|
class QUrlQuery;
|
|
|
|
#else
|
|
|
|
typedef struct QChar QChar;
|
|
|
|
typedef struct QUrl QUrl;
|
|
|
|
typedef struct QUrlQuery QUrlQuery;
|
|
|
|
#endif
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QUrlQuery_new(QUrlQuery** outptr_QUrlQuery);
|
|
|
|
void QUrlQuery_new2(QUrl* url, QUrlQuery** outptr_QUrlQuery);
|
|
|
|
void QUrlQuery_new3(struct miqt_string queryString, QUrlQuery** outptr_QUrlQuery);
|
|
|
|
void QUrlQuery_new4(QUrlQuery* other, QUrlQuery** outptr_QUrlQuery);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QUrlQuery_OperatorAssign(QUrlQuery* self, QUrlQuery* other);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QUrlQuery_OperatorEqual(const QUrlQuery* self, QUrlQuery* other);
|
|
|
|
bool QUrlQuery_OperatorNotEqual(const QUrlQuery* self, QUrlQuery* other);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QUrlQuery_Swap(QUrlQuery* self, QUrlQuery* other);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QUrlQuery_IsEmpty(const QUrlQuery* self);
|
|
|
|
bool QUrlQuery_IsDetached(const QUrlQuery* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QUrlQuery_Clear(QUrlQuery* self);
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QUrlQuery_Query(const QUrlQuery* self);
|
|
|
|
void QUrlQuery_SetQuery(QUrlQuery* self, struct miqt_string queryString);
|
|
|
|
struct miqt_string QUrlQuery_ToString(const QUrlQuery* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QUrlQuery_SetQueryDelimiters(QUrlQuery* self, QChar* valueDelimiter, QChar* pairDelimiter);
|
2024-09-11 05:41:09 +00:00
|
|
|
QChar* QUrlQuery_QueryValueDelimiter(const QUrlQuery* self);
|
|
|
|
QChar* QUrlQuery_QueryPairDelimiter(const QUrlQuery* self);
|
2024-11-17 06:21:37 +00:00
|
|
|
void QUrlQuery_SetQueryItems(QUrlQuery* self, struct miqt_array /* of struct miqt_map tuple of struct miqt_string and struct miqt_string */ query);
|
|
|
|
struct miqt_array /* of struct miqt_map tuple of struct miqt_string and struct miqt_string */ QUrlQuery_QueryItems(const QUrlQuery* self);
|
2024-10-18 23:53:33 +00:00
|
|
|
bool QUrlQuery_HasQueryItem(const QUrlQuery* self, struct miqt_string key);
|
|
|
|
void QUrlQuery_AddQueryItem(QUrlQuery* self, struct miqt_string key, struct miqt_string value);
|
|
|
|
void QUrlQuery_RemoveQueryItem(QUrlQuery* self, struct miqt_string key);
|
|
|
|
struct miqt_string QUrlQuery_QueryItemValue(const QUrlQuery* self, struct miqt_string key);
|
2024-11-17 06:21:37 +00:00
|
|
|
struct miqt_array /* of struct miqt_string */ QUrlQuery_AllQueryItemValues(const QUrlQuery* self, struct miqt_string key);
|
2024-10-18 23:53:33 +00:00
|
|
|
void QUrlQuery_RemoveAllQueryItems(QUrlQuery* self, struct miqt_string key);
|
2024-08-25 04:08:24 +00:00
|
|
|
QChar* QUrlQuery_DefaultQueryValueDelimiter();
|
|
|
|
QChar* QUrlQuery_DefaultQueryPairDelimiter();
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QUrlQuery_Query1(const QUrlQuery* self, int encoding);
|
|
|
|
struct miqt_string QUrlQuery_ToString1(const QUrlQuery* self, int encoding);
|
2024-11-17 06:21:37 +00:00
|
|
|
struct miqt_array /* of struct miqt_map tuple of struct miqt_string and struct miqt_string */ QUrlQuery_QueryItems1(const QUrlQuery* self, int encoding);
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QUrlQuery_QueryItemValue2(const QUrlQuery* self, struct miqt_string key, int encoding);
|
2024-11-17 06:21:37 +00:00
|
|
|
struct miqt_array /* of struct miqt_string */ QUrlQuery_AllQueryItemValues2(const QUrlQuery* self, struct miqt_string key, int encoding);
|
2024-11-19 06:29:06 +00:00
|
|
|
void QUrlQuery_Delete(QUrlQuery* self, bool isSubclass);
|
2024-08-25 04:08:24 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|