23 lines
491 B
C++
23 lines
491 B
C++
#pragma once
|
|
|
|
|
|
#include <VirtualFileSystem.hpp>
|
|
|
|
#include "../_base/BaseJsModule.hpp"
|
|
|
|
|
|
class FsJsModule : public BaseJsModule {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit FsJsModule(AtlasJsEngine* engine);
|
|
|
|
// TODO(Faraphel): can a property "Path" redirect to the type directly ?
|
|
/**
|
|
* Create a new path object
|
|
* @param virtualPath the path as a String
|
|
* @return the path as a JavaScript object
|
|
*/
|
|
Q_INVOKABLE QJSValue newPath(const QString& virtualPath) const;
|
|
|
|
};
|