DOtherSide  0.7.1
C language library for creating bindings for the Qt QML language
Functions
QUrl

Functions related to the QUrl class. More...

Functions

DOS_API DosQUrldos_qurl_create (const char *url, int parsingMode)
 Create a new QUrl. More...
 
DOS_API void dos_qurl_delete (DosQUrl *vptr)
 Free the memory allocated for the QUrl. More...
 
DOS_API char * dos_qurl_to_string (const DosQUrl *vptr)
 Calls the QUrl::toString() function. More...
 
DOS_API bool dos_qurl_isValid (const DosQUrl *vptr)
 Class the QUrl::isValid() function. More...
 

Detailed Description

Functions related to the QUrl class.

Function Documentation

◆ dos_qurl_create()

DOS_API DosQUrl* dos_qurl_create ( const char *  url,
int  parsingMode 
)

Create a new QUrl.

Parameters
urlThe UTF-8 string that represents an url
parsingModeThe parsing mode
Note
The retuned QUrl should be freed using the dos_qurl_delete() function

◆ dos_qurl_delete()

DOS_API void dos_qurl_delete ( DosQUrl vptr)

Free the memory allocated for the QUrl.

Parameters
vptrThe QUrl to be freed

◆ dos_qurl_isValid()

DOS_API bool dos_qurl_isValid ( const DosQUrl vptr)

Class the QUrl::isValid() function.

Parameters
vptrThe QUrl
Returns
True if the QUrl is valid, false otherwise

◆ dos_qurl_to_string()

DOS_API char* dos_qurl_to_string ( const DosQUrl vptr)

Calls the QUrl::toString() function.

Parameters
vptrThe QUrl
Returns
The url as an UTF-8 string
Note
The returned string should be freed using the dos_chararray_delete() function