mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 23:57:13 +02:00
Interim JSDoc for Recording
This commit is contained in:
parent
497cb4dab6
commit
d65f66a73d
1 changed files with 154 additions and 0 deletions
|
@ -23,6 +23,9 @@
|
||||||
class QScriptEngine;
|
class QScriptEngine;
|
||||||
class QScriptValue;
|
class QScriptValue;
|
||||||
|
|
||||||
|
/**jsdoc
|
||||||
|
* @namespace Recording
|
||||||
|
*/
|
||||||
class RecordingScriptingInterface : public QObject, public Dependency {
|
class RecordingScriptingInterface : public QObject, public Dependency {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
|
@ -32,43 +35,194 @@ public:
|
||||||
void setScriptEngine(QSharedPointer<BaseScriptEngine> scriptEngine) { _scriptEngine = scriptEngine; }
|
void setScriptEngine(QSharedPointer<BaseScriptEngine> scriptEngine) { _scriptEngine = scriptEngine; }
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
|
|
||||||
|
/**jsdoc
|
||||||
|
* @function Recording.loadRecording
|
||||||
|
* @param {string} url
|
||||||
|
* @param {Recording~loadRecordingCallback} [callback=null]
|
||||||
|
*/
|
||||||
|
/**jsdoc
|
||||||
|
* Called when {@link Recording.loadRecording} is complete.
|
||||||
|
* @callback Recording~loadRecordingCallback
|
||||||
|
* @param {boolean} success
|
||||||
|
* @param {string} url
|
||||||
|
*/
|
||||||
void loadRecording(const QString& url, QScriptValue callback = QScriptValue());
|
void loadRecording(const QString& url, QScriptValue callback = QScriptValue());
|
||||||
|
|
||||||
|
|
||||||
|
/**jsdoc
|
||||||
|
* @function Recording.startPlaying
|
||||||
|
*/
|
||||||
void startPlaying();
|
void startPlaying();
|
||||||
|
|
||||||
|
/**jsdoc
|
||||||
|
* @function Recording.pausePlayer
|
||||||
|
*/
|
||||||
void pausePlayer();
|
void pausePlayer();
|
||||||
|
|
||||||
|
/**jsdoc
|
||||||
|
* @function Recording.stopPlaying
|
||||||
|
*/
|
||||||
void stopPlaying();
|
void stopPlaying();
|
||||||
|
|
||||||
|
/**jsdoc
|
||||||
|
* @function Recording.isPlaying
|
||||||
|
* @returns {boolean}
|
||||||
|
*/
|
||||||
bool isPlaying() const;
|
bool isPlaying() const;
|
||||||
|
|
||||||
|
/**jsdoc
|
||||||
|
* @function Recording.isPaused
|
||||||
|
* @returns {boolean}
|
||||||
|
*/
|
||||||
bool isPaused() const;
|
bool isPaused() const;
|
||||||
|
|
||||||
|
|
||||||
|
/**jsdoc
|
||||||
|
* @function Recording.playerElapsed
|
||||||
|
* @returns {number}
|
||||||
|
*/
|
||||||
float playerElapsed() const;
|
float playerElapsed() const;
|
||||||
|
|
||||||
|
/**jsdoc
|
||||||
|
* @function Recording.playerLength
|
||||||
|
* @returns {number}
|
||||||
|
*/
|
||||||
float playerLength() const;
|
float playerLength() const;
|
||||||
|
|
||||||
|
|
||||||
|
/**jsdoc
|
||||||
|
* @function Recording.setPlayerVolume
|
||||||
|
* @param {number} volume
|
||||||
|
*/
|
||||||
void setPlayerVolume(float volume);
|
void setPlayerVolume(float volume);
|
||||||
|
|
||||||
|
/**jsdoc
|
||||||
|
* @function Recording.setPlayerAudioOffset
|
||||||
|
* @param {number} audioOffset
|
||||||
|
*/
|
||||||
void setPlayerAudioOffset(float audioOffset);
|
void setPlayerAudioOffset(float audioOffset);
|
||||||
|
|
||||||
|
/**jsdoc
|
||||||
|
* @function Recording.setPlayerTime
|
||||||
|
* @param {number} time
|
||||||
|
*/
|
||||||
void setPlayerTime(float time);
|
void setPlayerTime(float time);
|
||||||
|
|
||||||
|
/**jsdoc
|
||||||
|
* @function Recording.setPlayerLoop
|
||||||
|
* @param {boolean} loop
|
||||||
|
*/
|
||||||
void setPlayerLoop(bool loop);
|
void setPlayerLoop(bool loop);
|
||||||
|
|
||||||
|
|
||||||
|
/**jsdoc
|
||||||
|
* @function Recording.setPlayerUseDisplayName
|
||||||
|
* @param {boolean} useDisplayName
|
||||||
|
*/
|
||||||
void setPlayerUseDisplayName(bool useDisplayName);
|
void setPlayerUseDisplayName(bool useDisplayName);
|
||||||
|
|
||||||
|
/**jsdoc
|
||||||
|
* @function Recording.setPlayerUseAttachments
|
||||||
|
* @param {boolean} useAttachments
|
||||||
|
*/
|
||||||
void setPlayerUseAttachments(bool useAttachments);
|
void setPlayerUseAttachments(bool useAttachments);
|
||||||
|
|
||||||
|
/**jsdoc
|
||||||
|
* @function Recording.setPlayerUseHeadModel
|
||||||
|
* @param {boolean} useHeadModel
|
||||||
|
*/
|
||||||
void setPlayerUseHeadModel(bool useHeadModel);
|
void setPlayerUseHeadModel(bool useHeadModel);
|
||||||
|
|
||||||
|
/**jsdoc
|
||||||
|
* @function Recording.setPlayerUseSkeletonModel
|
||||||
|
* @param {boolean} useSkeletonModel
|
||||||
|
*/
|
||||||
void setPlayerUseSkeletonModel(bool useSkeletonModel);
|
void setPlayerUseSkeletonModel(bool useSkeletonModel);
|
||||||
|
|
||||||
|
/**jsdoc
|
||||||
|
* @function Recording.setPlayFromCurrentLocation
|
||||||
|
* @param {boolean} playFromCurrentLocation
|
||||||
|
*/
|
||||||
void setPlayFromCurrentLocation(bool playFromCurrentLocation);
|
void setPlayFromCurrentLocation(bool playFromCurrentLocation);
|
||||||
|
|
||||||
|
|
||||||
|
/**jsdoc
|
||||||
|
* @function Recording.getPlayerUseDisplayName
|
||||||
|
* @returns {boolean}
|
||||||
|
*/
|
||||||
bool getPlayerUseDisplayName() { return _useDisplayName; }
|
bool getPlayerUseDisplayName() { return _useDisplayName; }
|
||||||
|
|
||||||
|
/**jsdoc
|
||||||
|
* @function Recording.getPlayerUseAttachments
|
||||||
|
* @returns {boolean}
|
||||||
|
*/
|
||||||
bool getPlayerUseAttachments() { return _useAttachments; }
|
bool getPlayerUseAttachments() { return _useAttachments; }
|
||||||
|
|
||||||
|
/**jsdoc
|
||||||
|
* @function Recording.getPlayerUseHeadModel
|
||||||
|
* @returns {boolean}
|
||||||
|
*/
|
||||||
bool getPlayerUseHeadModel() { return _useHeadModel; }
|
bool getPlayerUseHeadModel() { return _useHeadModel; }
|
||||||
|
|
||||||
|
/**jsdoc
|
||||||
|
* @function Recording.getPlayerUseSkeletonModel
|
||||||
|
* @returns {boolean}
|
||||||
|
*/
|
||||||
bool getPlayerUseSkeletonModel() { return _useSkeletonModel; }
|
bool getPlayerUseSkeletonModel() { return _useSkeletonModel; }
|
||||||
|
|
||||||
|
/**jsdoc
|
||||||
|
* @function Recording.getPlayFromCurrentLocation
|
||||||
|
* @returns {boolean}
|
||||||
|
*/
|
||||||
bool getPlayFromCurrentLocation() { return _playFromCurrentLocation; }
|
bool getPlayFromCurrentLocation() { return _playFromCurrentLocation; }
|
||||||
|
|
||||||
|
|
||||||
|
/**jsdoc
|
||||||
|
* @function Recording.
|
||||||
|
*/
|
||||||
void startRecording();
|
void startRecording();
|
||||||
|
|
||||||
|
/**jsdoc
|
||||||
|
* @function Recording.
|
||||||
|
*/
|
||||||
void stopRecording();
|
void stopRecording();
|
||||||
|
|
||||||
|
/**jsdoc
|
||||||
|
* @function Recording.isRecording
|
||||||
|
* @returns {boolean}
|
||||||
|
*/
|
||||||
bool isRecording() const;
|
bool isRecording() const;
|
||||||
|
|
||||||
|
|
||||||
|
/**jsdoc
|
||||||
|
* @function Recording.recorderElapsed
|
||||||
|
* @returns {number}
|
||||||
|
*/
|
||||||
float recorderElapsed() const;
|
float recorderElapsed() const;
|
||||||
|
|
||||||
|
|
||||||
|
/**jsdoc
|
||||||
|
* @function Recording.getDefaultRecordingSaveDirectory
|
||||||
|
* @returns {string}
|
||||||
|
*/
|
||||||
QString getDefaultRecordingSaveDirectory();
|
QString getDefaultRecordingSaveDirectory();
|
||||||
|
|
||||||
|
/**jsdoc
|
||||||
|
* @function Recording.saveRecording
|
||||||
|
* @param {string} filename
|
||||||
|
*/
|
||||||
void saveRecording(const QString& filename);
|
void saveRecording(const QString& filename);
|
||||||
|
|
||||||
|
/**jsdoc
|
||||||
|
* @function Recording.saveRecordingToAsset
|
||||||
|
* @param {function} getClipAtpUrl
|
||||||
|
*/
|
||||||
bool saveRecordingToAsset(QScriptValue getClipAtpUrl);
|
bool saveRecordingToAsset(QScriptValue getClipAtpUrl);
|
||||||
|
|
||||||
|
/**jsdoc
|
||||||
|
* @function Recording.loadLastRecording
|
||||||
|
*/
|
||||||
void loadLastRecording();
|
void loadLastRecording();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
Loading…
Reference in a new issue