APIs for handling cookies from QML