2024-08-25 04:08:24 +00:00
|
|
|
#ifndef GEN_QURL_H
|
|
|
|
#define GEN_QURL_H
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
class QByteArray;
|
|
|
|
class QUrl;
|
|
|
|
class QUrlQuery;
|
|
|
|
#else
|
|
|
|
typedef struct QByteArray QByteArray;
|
|
|
|
typedef struct QUrl QUrl;
|
|
|
|
typedef struct QUrlQuery QUrlQuery;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
QUrl* QUrl_new();
|
|
|
|
QUrl* QUrl_new2(QUrl* copyVal);
|
2024-08-29 07:01:51 +00:00
|
|
|
QUrl* QUrl_new3(const char* url, size_t url_Strlen);
|
|
|
|
QUrl* QUrl_new4(const char* url, size_t url_Strlen, uintptr_t mode);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QUrl_OperatorAssign(QUrl* self, QUrl* copyVal);
|
|
|
|
void QUrl_OperatorAssignWithUrl(QUrl* self, const char* url, size_t url_Strlen);
|
|
|
|
void QUrl_Swap(QUrl* self, QUrl* other);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QUrl_SetUrl(QUrl* self, const char* url, size_t url_Strlen);
|
|
|
|
void QUrl_Url(QUrl* self, char** _out, int* _out_Strlen);
|
|
|
|
void QUrl_ToString(QUrl* self, char** _out, int* _out_Strlen);
|
|
|
|
void QUrl_ToDisplayString(QUrl* self, char** _out, int* _out_Strlen);
|
|
|
|
QByteArray* QUrl_ToEncoded(QUrl* self);
|
|
|
|
QUrl* QUrl_FromEncoded(QByteArray* url);
|
2024-08-25 04:08:24 +00:00
|
|
|
QUrl* QUrl_FromUserInput(const char* userInput, size_t userInput_Strlen);
|
2024-08-29 07:01:51 +00:00
|
|
|
QUrl* QUrl_FromUserInput2(const char* userInput, size_t userInput_Strlen, const char* workingDirectory, size_t workingDirectory_Strlen);
|
2024-08-25 04:08:24 +00:00
|
|
|
bool QUrl_IsValid(QUrl* self);
|
|
|
|
void QUrl_ErrorString(QUrl* self, char** _out, int* _out_Strlen);
|
|
|
|
bool QUrl_IsEmpty(QUrl* self);
|
|
|
|
void QUrl_Clear(QUrl* self);
|
|
|
|
void QUrl_SetScheme(QUrl* self, const char* scheme, size_t scheme_Strlen);
|
|
|
|
void QUrl_Scheme(QUrl* self, char** _out, int* _out_Strlen);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QUrl_SetAuthority(QUrl* self, const char* authority, size_t authority_Strlen);
|
|
|
|
void QUrl_Authority(QUrl* self, char** _out, int* _out_Strlen);
|
|
|
|
void QUrl_SetUserInfo(QUrl* self, const char* userInfo, size_t userInfo_Strlen);
|
|
|
|
void QUrl_UserInfo(QUrl* self, char** _out, int* _out_Strlen);
|
|
|
|
void QUrl_SetUserName(QUrl* self, const char* userName, size_t userName_Strlen);
|
|
|
|
void QUrl_UserName(QUrl* self, char** _out, int* _out_Strlen);
|
|
|
|
void QUrl_SetPassword(QUrl* self, const char* password, size_t password_Strlen);
|
|
|
|
void QUrl_Password(QUrl* self, char** _out, int* _out_Strlen);
|
|
|
|
void QUrl_SetHost(QUrl* self, const char* host, size_t host_Strlen);
|
|
|
|
void QUrl_Host(QUrl* self, char** _out, int* _out_Strlen);
|
|
|
|
void QUrl_TopLevelDomain(QUrl* self, char** _out, int* _out_Strlen);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QUrl_SetPort(QUrl* self, int port);
|
|
|
|
int QUrl_Port(QUrl* self);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QUrl_SetPath(QUrl* self, const char* path, size_t path_Strlen);
|
|
|
|
void QUrl_Path(QUrl* self, char** _out, int* _out_Strlen);
|
|
|
|
void QUrl_FileName(QUrl* self, char** _out, int* _out_Strlen);
|
2024-08-25 04:08:24 +00:00
|
|
|
bool QUrl_HasQuery(QUrl* self);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QUrl_SetQuery(QUrl* self, const char* query, size_t query_Strlen);
|
|
|
|
void QUrl_SetQueryWithQuery(QUrl* self, QUrlQuery* query);
|
|
|
|
void QUrl_Query(QUrl* self, char** _out, int* _out_Strlen);
|
2024-08-25 04:08:24 +00:00
|
|
|
bool QUrl_HasFragment(QUrl* self);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QUrl_Fragment(QUrl* self, char** _out, int* _out_Strlen);
|
|
|
|
void QUrl_SetFragment(QUrl* self, const char* fragment, size_t fragment_Strlen);
|
2024-08-25 04:08:24 +00:00
|
|
|
QUrl* QUrl_Resolved(QUrl* self, QUrl* relative);
|
|
|
|
bool QUrl_IsRelative(QUrl* self);
|
|
|
|
bool QUrl_IsParentOf(QUrl* self, QUrl* url);
|
|
|
|
bool QUrl_IsLocalFile(QUrl* self);
|
|
|
|
QUrl* QUrl_FromLocalFile(const char* localfile, size_t localfile_Strlen);
|
|
|
|
void QUrl_ToLocalFile(QUrl* self, char** _out, int* _out_Strlen);
|
|
|
|
void QUrl_Detach(QUrl* self);
|
|
|
|
bool QUrl_IsDetached(QUrl* self);
|
|
|
|
bool QUrl_OperatorLesser(QUrl* self, QUrl* url);
|
|
|
|
bool QUrl_OperatorEqual(QUrl* self, QUrl* url);
|
|
|
|
bool QUrl_OperatorNotEqual(QUrl* self, QUrl* url);
|
|
|
|
void QUrl_FromPercentEncoding(QByteArray* param1, char** _out, int* _out_Strlen);
|
|
|
|
QByteArray* QUrl_ToPercentEncoding(const char* param1, size_t param1_Strlen);
|
|
|
|
void QUrl_FromAce(QByteArray* param1, char** _out, int* _out_Strlen);
|
|
|
|
QByteArray* QUrl_ToAce(const char* param1, size_t param1_Strlen);
|
|
|
|
void QUrl_IdnWhitelist(char*** _out, int** _out_Lengths, size_t* _out_len);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QUrl_ToStringList(QUrl** uris, size_t uris_len, char*** _out, int** _out_Lengths, size_t* _out_len);
|
|
|
|
void QUrl_FromStringList(char** uris, uint64_t* uris_Lengths, size_t uris_len, QUrl*** _out, size_t* _out_len);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QUrl_SetIdnWhitelist(char** idnWhitelist, uint64_t* idnWhitelist_Lengths, size_t idnWhitelist_len);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QUrl_SetUrl2(QUrl* self, const char* url, size_t url_Strlen, uintptr_t mode);
|
|
|
|
QUrl* QUrl_FromEncoded2(QByteArray* url, uintptr_t mode);
|
|
|
|
QUrl* QUrl_FromUserInput3(const char* userInput, size_t userInput_Strlen, const char* workingDirectory, size_t workingDirectory_Strlen, int options);
|
|
|
|
void QUrl_SetAuthority2(QUrl* self, const char* authority, size_t authority_Strlen, uintptr_t mode);
|
|
|
|
void QUrl_Authority1(QUrl* self, int options, char** _out, int* _out_Strlen);
|
|
|
|
void QUrl_SetUserInfo2(QUrl* self, const char* userInfo, size_t userInfo_Strlen, uintptr_t mode);
|
|
|
|
void QUrl_UserInfo1(QUrl* self, int options, char** _out, int* _out_Strlen);
|
|
|
|
void QUrl_SetUserName2(QUrl* self, const char* userName, size_t userName_Strlen, uintptr_t mode);
|
|
|
|
void QUrl_UserName1(QUrl* self, int options, char** _out, int* _out_Strlen);
|
|
|
|
void QUrl_SetPassword2(QUrl* self, const char* password, size_t password_Strlen, uintptr_t mode);
|
|
|
|
void QUrl_Password1(QUrl* self, int param1, char** _out, int* _out_Strlen);
|
|
|
|
void QUrl_SetHost2(QUrl* self, const char* host, size_t host_Strlen, uintptr_t mode);
|
|
|
|
void QUrl_Host1(QUrl* self, int param1, char** _out, int* _out_Strlen);
|
|
|
|
void QUrl_TopLevelDomain1(QUrl* self, int options, char** _out, int* _out_Strlen);
|
2024-08-25 04:08:24 +00:00
|
|
|
int QUrl_Port1(QUrl* self, int defaultPort);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QUrl_SetPath2(QUrl* self, const char* path, size_t path_Strlen, uintptr_t mode);
|
|
|
|
void QUrl_Path1(QUrl* self, int options, char** _out, int* _out_Strlen);
|
|
|
|
void QUrl_FileName1(QUrl* self, int options, char** _out, int* _out_Strlen);
|
|
|
|
void QUrl_SetQuery2(QUrl* self, const char* query, size_t query_Strlen, uintptr_t mode);
|
|
|
|
void QUrl_Query1(QUrl* self, int param1, char** _out, int* _out_Strlen);
|
|
|
|
void QUrl_Fragment1(QUrl* self, int options, char** _out, int* _out_Strlen);
|
|
|
|
void QUrl_SetFragment2(QUrl* self, const char* fragment, size_t fragment_Strlen, uintptr_t mode);
|
2024-08-25 04:08:24 +00:00
|
|
|
QByteArray* QUrl_ToPercentEncoding2(const char* param1, size_t param1_Strlen, QByteArray* exclude);
|
|
|
|
QByteArray* QUrl_ToPercentEncoding3(const char* param1, size_t param1_Strlen, QByteArray* exclude, QByteArray* include);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QUrl_FromStringList2(char** uris, uint64_t* uris_Lengths, size_t uris_len, uintptr_t mode, QUrl*** _out, size_t* _out_len);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QUrl_Delete(QUrl* self);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|