Commit bd6cffe6 authored by Laurent Montel's avatar Laurent Montel 😁

We need to define directory

parent 74e1db45
......@@ -17,6 +17,7 @@
#include "viewerpluginexternalscriptsloadjob.h"
#include "externalscriptplugin_debug.h"
ViewerPluginExternalScriptsLoadJob::ViewerPluginExternalScriptsLoadJob(QObject *parent)
: QObject(parent)
......@@ -32,7 +33,16 @@ ViewerPluginExternalScriptsLoadJob::~ViewerPluginExternalScriptsLoadJob()
void ViewerPluginExternalScriptsLoadJob::start()
{
mScriptInfos.clear();
//TODO
if (mDirectory.isEmpty()) {
qCDebug(EXTERNALSCRIPTPLUGIN_LOG) << "External script directory not defined";
} else {
//TODO
}
}
void ViewerPluginExternalScriptsLoadJob::setExternalScriptsDirectory(const QString &dir)
{
mDirectory = dir;
}
QVector<ViewerPluginExternalScriptInfo> ViewerPluginExternalScriptsLoadJob::scriptInfos() const
......
......@@ -32,11 +32,13 @@ public:
~ViewerPluginExternalScriptsLoadJob();
void start();
void setExternalScriptsDirectory(const QString &dir);
QVector<ViewerPluginExternalScriptInfo> scriptInfos() const;
private:
QVector<ViewerPluginExternalScriptInfo> mScriptInfos;
QString mDirectory;
};
#endif // VIEWERPLUGINEXTERNALSCRIPTSLOADJOB_H
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment