2020-01-04 16:39:25 +03:00
|
|
|
#include "qif.h"
|
2020-01-05 14:55:57 +03:00
|
|
|
#include "quasarapp.h"
|
2020-01-04 16:39:25 +03:00
|
|
|
|
2020-01-12 16:43:03 +03:00
|
|
|
QIF::QIF()= default;
|
2020-01-04 16:39:25 +03:00
|
|
|
|
2020-01-05 13:58:38 +03:00
|
|
|
Envirement QIF::toolKitLocation() const {
|
2020-01-05 14:55:57 +03:00
|
|
|
// SNAP
|
|
|
|
Envirement result;
|
2020-01-04 16:39:25 +03:00
|
|
|
|
2020-01-05 14:55:57 +03:00
|
|
|
QString AppPath = QuasarAppUtils::Params::getStrArg("appPath", "");
|
|
|
|
result.addEnv(AppPath);
|
|
|
|
|
|
|
|
//Installer
|
|
|
|
result.addEnvRec(AppPath + "../../QIF/", 2);
|
|
|
|
|
|
|
|
return result;
|
2020-01-04 16:39:25 +03:00
|
|
|
}
|
|
|
|
|
2020-01-05 13:58:38 +03:00
|
|
|
QString QIF::getConfig() const {
|
2020-01-05 14:55:57 +03:00
|
|
|
return ":/Distro/Distributions/configures/QIF.json";
|
2020-01-04 16:39:25 +03:00
|
|
|
}
|
|
|
|
|
2020-01-05 13:58:38 +03:00
|
|
|
QString QIF::runCmd() const {
|
2020-01-04 16:39:25 +03:00
|
|
|
return "binarycreator";
|
|
|
|
}
|
|
|
|
|
2020-01-05 14:55:57 +03:00
|
|
|
void QIF::deployTemplate() const {
|
|
|
|
auto customTemplate = QuasarAppUtils::Params::getStrArg("qif", "");
|
|
|
|
|
|
|
|
if (customTemplate.size()) {
|
2020-01-05 13:58:38 +03:00
|
|
|
|
2020-01-05 14:55:57 +03:00
|
|
|
} else {
|
|
|
|
|
|
|
|
}
|
2020-01-05 13:58:38 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
QStringList QIF::runArg() const {
|
|
|
|
return {};
|
|
|
|
}
|
|
|
|
|