mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 11:43:16 +02:00
Resource API JSDoc stub
This commit is contained in:
parent
a1de44310f
commit
8ea3a733ca
1 changed files with 5 additions and 4 deletions
|
@ -86,7 +86,6 @@ private:
|
|||
/// Wrapper to expose resources to JS/QML
|
||||
class ScriptableResource : public QObject {
|
||||
|
||||
|
||||
/**jsdoc
|
||||
* @constructor Resource
|
||||
*
|
||||
|
@ -98,12 +97,15 @@ class ScriptableResource : public QObject {
|
|||
* @property {string} url - URL of this resource.
|
||||
* @property {Resource.State} state - Current loading state.
|
||||
*/
|
||||
|
||||
/**jsdoc
|
||||
* @namespace Resource
|
||||
* @variation 0
|
||||
* @property {Resource.State} State
|
||||
*/
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(QUrl url READ getURL)
|
||||
Q_PROPERTY(int state READ getState NOTIFY stateChanged)
|
||||
|
||||
|
||||
public:
|
||||
|
||||
/**jsdoc
|
||||
|
@ -115,7 +117,6 @@ public:
|
|||
* @property {number} FINISHED - The resource has completely finished loading and is ready.
|
||||
* @property {number} FAILED - Downloading the resource has failed.
|
||||
*/
|
||||
|
||||
enum State {
|
||||
QUEUED,
|
||||
LOADING,
|
||||
|
|
Loading…
Reference in a new issue