Make placement of callback JSDoc consistent

This commit is contained in:
David Rowe 2019-09-05 12:23:56 +12:00
parent 06ebba554e
commit 49ab504226

View file

@ -47,6 +47,13 @@ public:
using Parent = BaseAssetScriptingInterface; using Parent = BaseAssetScriptingInterface;
AssetScriptingInterface(QObject* parent = nullptr); 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 /**jsdoc
* Uploads content to the asset server, storing it in a SHA256-named file. * 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 * <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); Q_INVOKABLE void uploadData(QString data, QScriptValue callback);
/**jsdoc /**jsdoc