mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 20:17:01 +02:00
Resources API JSDoc stubs
This commit is contained in:
parent
11f984f05b
commit
b445371ad8
1 changed files with 19 additions and 0 deletions
|
@ -17,11 +17,30 @@
|
||||||
|
|
||||||
#include <DependencyManager.h>
|
#include <DependencyManager.h>
|
||||||
|
|
||||||
|
/**jsdoc
|
||||||
|
* @namespace Resources
|
||||||
|
*
|
||||||
|
* @hifi-interface
|
||||||
|
* @hifi-client-entity
|
||||||
|
* @hifi-server-entity
|
||||||
|
* @hifi-assignment-client
|
||||||
|
*/
|
||||||
|
|
||||||
class ResourceScriptingInterface : public QObject, public Dependency {
|
class ResourceScriptingInterface : public QObject, public Dependency {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
/**jsdoc
|
||||||
|
* @function Resources.overrideUrlPrefix
|
||||||
|
* @param {string} prefix
|
||||||
|
* @param {string} replacement
|
||||||
|
*/
|
||||||
Q_INVOKABLE void overrideUrlPrefix(const QString& prefix, const QString& 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) {
|
Q_INVOKABLE void restoreUrlPrefix(const QString& prefix) {
|
||||||
overrideUrlPrefix(prefix, "");
|
overrideUrlPrefix(prefix, "");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue