42 lines · 1.1 KB · C
RawDownload
////  FileScriptingInterface.h//  libraries/script-engine/src////  Created by Elisa Lupin-Jimenez on 6/28/16.//  Copyright 2016 High Fidelity, Inc.////  Distributed under the Apache License, Version 2.0.//  See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html// #ifndef hifi_FileScriptingInterface_h#define hifi_FileScriptingInterface_h #include <QtCore/QObject>#include <QFileInfo>#include <QString> class FileScriptingInterface : public QObject {    Q_OBJECT public:    FileScriptingInterface(QObject* parent); public slots:    QString convertUrlToPath(QUrl url);    void runUnzip(QString path, QUrl url, bool autoAdd, bool isZip, bool isBlocks);    QString getTempDir(); signals:    void unzipResult(QString zipFile, QStringList unzipFile, bool autoAdd, bool isZip, bool isBlocks); private:    bool isTempDir(QString tempDir);    bool hasModel(QStringList fileList);    QStringList unzipFile(QString path, QString tempDir);    void recursiveFileScan(QFileInfo file, QString* dirName);    void downloadZip(QString path, const QString link); }; #endif // hifi_FileScriptingInterface_h

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t