mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 23:33:34 +02:00
Make placement of callback JSDoc consistent
This commit is contained in:
parent
06ebba554e
commit
49ab504226
1 changed files with 7 additions and 7 deletions
|
@ -47,6 +47,13 @@ public:
|
|||
using Parent = BaseAssetScriptingInterface;
|
||||
AssetScriptingInterface(QObject* parent = nullptr);
|
||||
|
||||
/**jsdoc
|
||||
* Called when an {@link Assets.uploadData} call is complete.
|
||||
* @callback Assets~uploadDataCallback
|
||||
* @param {string} url - The raw URL of the file that the content is stored in, with <code>atp:</code> as the scheme and
|
||||
* the SHA256 hash as the filename (with no extension).
|
||||
* @param {string} hash - The SHA256 hash of the content.
|
||||
*/
|
||||
/**jsdoc
|
||||
* Uploads content to the asset server, storing it in a SHA256-named file.
|
||||
* <p>Note: The asset server destroys any unmapped SHA256-named file at server restart. Use {@link Assets.setMapping} to
|
||||
|
@ -65,13 +72,6 @@ public:
|
|||
* });
|
||||
* });
|
||||
*/
|
||||
/**jsdoc
|
||||
* Called when an {@link Assets.uploadData} call is complete.
|
||||
* @callback Assets~uploadDataCallback
|
||||
* @param {string} url - The raw URL of the file that the content is stored in, with <code>atp:</code> as the scheme and
|
||||
* the SHA256 hash as the filename (with no extension).
|
||||
* @param {string} hash - The SHA256 hash of the content.
|
||||
*/
|
||||
Q_INVOKABLE void uploadData(QString data, QScriptValue callback);
|
||||
|
||||
/**jsdoc
|
||||
|
|
Loading…
Reference in a new issue