mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-14 10:26:31 +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>
|
||||
|
||||
/**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, "");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue