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

Functions related to the QHash class. More...

Functions

DOS_API DosQHashIntQByteArraydos_qhash_int_qbytearray_create (void)
 Create a new QHash<int, QByteArray> More...
 
DOS_API void dos_qhash_int_qbytearray_delete (DosQHashIntQByteArray *vptr)
 Free the memory allocated for the QHash<int, QByteArray> More...
 
DOS_API void dos_qhash_int_qbytearray_insert (DosQHashIntQByteArray *vptr, int key, const char *value)
 Calls the QHash<int, QByteArray>::insert() function. More...
 
DOS_API char * dos_qhash_int_qbytearray_value (const DosQHashIntQByteArray *vptr, int key)
 Calls the QHash<int, QByteArray>::value() function. More...
 

Detailed Description

Functions related to the QHash class.

Function Documentation

◆ dos_qhash_int_qbytearray_create()

DOS_API DosQHashIntQByteArray* dos_qhash_int_qbytearray_create ( void  )

Create a new QHash<int, QByteArray>

Returns
A new QHash<int, QByteArray>
Note
The retuned QHash<int, QByteArray> should be freed using the dos_qhash_int_qbytearray_delete(DosQHashIntQByteArray *) function

◆ dos_qhash_int_qbytearray_delete()

DOS_API void dos_qhash_int_qbytearray_delete ( DosQHashIntQByteArray vptr)

Free the memory allocated for the QHash<int, QByteArray>

Parameters
vptrThe QHash<int, QByteArray>

◆ dos_qhash_int_qbytearray_insert()

DOS_API void dos_qhash_int_qbytearray_insert ( DosQHashIntQByteArray vptr,
int  key,
const char *  value 
)

Calls the QHash<int, QByteArray>::insert() function.

Parameters
vptrThe QHash<int, QByteArray>
keyThe key
valueThe UTF-8 string
Note
The value string is owned by the caller thus it will not be freed

◆ dos_qhash_int_qbytearray_value()

DOS_API char* dos_qhash_int_qbytearray_value ( const DosQHashIntQByteArray vptr,
int  key 
)

Calls the QHash<int, QByteArray>::value() function.

Parameters
vptrThe QHash<int, QByteArray>
keyThe key to which retrive the value
Returns
The UTF-8 string associated to the given value
Note
The returned string should be freed by calling the dos_chararray_delete() function