Resources API JSDoc stubs

This commit is contained in:
David Rowe 2018-05-12 16:24:34 +12:00
parent 11f984f05b
commit b445371ad8

View file

@ -17,11 +17,30 @@
#include <DependencyManager.h>
/**jsdoc
* @namespace Resources
*
* @hifi-interface
* @hifi-client-entity
* @hifi-server-entity
* @hifi-assignment-client
*/
class ResourceScriptingInterface : public QObject, public Dependency {
Q_OBJECT
public:
/**jsdoc
* @function Resources.overrideUrlPrefix
* @param {string} prefix
* @param {string} replacement
*/
Q_INVOKABLE void overrideUrlPrefix(const QString& prefix, const QString& replacement);
/**jsdoc
* @function Resources.restoreUrlPrefix
* @param {string} prefix
*/
Q_INVOKABLE void restoreUrlPrefix(const QString& prefix) {
overrideUrlPrefix(prefix, "");
}