Add a QML api for resource policy handling.