mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 15:09:24 +02:00
File API JSDoc stubs
This commit is contained in:
parent
42d0620fd1
commit
496154fdbe
1 changed files with 39 additions and 0 deletions
|
@ -16,6 +16,15 @@
|
||||||
#include <QFileInfo>
|
#include <QFileInfo>
|
||||||
#include <QString>
|
#include <QString>
|
||||||
|
|
||||||
|
/**jsdoc
|
||||||
|
* @namespace File
|
||||||
|
*
|
||||||
|
* @hifi-interface
|
||||||
|
* @hifi-client-entity
|
||||||
|
* @hifi-server-entity
|
||||||
|
* @hifi-assignment-client
|
||||||
|
*/
|
||||||
|
|
||||||
class FileScriptingInterface : public QObject {
|
class FileScriptingInterface : public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
|
@ -23,11 +32,41 @@ public:
|
||||||
FileScriptingInterface(QObject* parent);
|
FileScriptingInterface(QObject* parent);
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
|
|
||||||
|
/**jsdoc
|
||||||
|
* @function File.convertUrlToPath
|
||||||
|
* @param {string} url
|
||||||
|
* @returns {string}
|
||||||
|
*/
|
||||||
QString convertUrlToPath(QUrl url);
|
QString convertUrlToPath(QUrl url);
|
||||||
|
|
||||||
|
/**jsdoc
|
||||||
|
* @function File.runUnzip
|
||||||
|
* @param {string} path
|
||||||
|
* @param {string} url
|
||||||
|
* @param {boolean} autoAdd
|
||||||
|
* @param {boolean} isZip
|
||||||
|
* @param {boolean} isBlocks
|
||||||
|
*/
|
||||||
void runUnzip(QString path, QUrl url, bool autoAdd, bool isZip, bool isBlocks);
|
void runUnzip(QString path, QUrl url, bool autoAdd, bool isZip, bool isBlocks);
|
||||||
|
|
||||||
|
/**jsdoc
|
||||||
|
* @function File.getTempDir
|
||||||
|
* @returns {string}
|
||||||
|
*/
|
||||||
QString getTempDir();
|
QString getTempDir();
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
|
|
||||||
|
/**jsdoc
|
||||||
|
* @function File.unzipResult
|
||||||
|
* @param {string} zipFile
|
||||||
|
* @param {string} unzipFile
|
||||||
|
* @param {boolean} autoAdd
|
||||||
|
* @param {boolean} isZip
|
||||||
|
* @param {boolean} isBlocks
|
||||||
|
* @returns {Signal}
|
||||||
|
*/
|
||||||
void unzipResult(QString zipFile, QStringList unzipFile, bool autoAdd, bool isZip, bool isBlocks);
|
void unzipResult(QString zipFile, QStringList unzipFile, bool autoAdd, bool isZip, bool isBlocks);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
Loading…
Reference in a new issue