diff options
Diffstat (limited to 'api/logic/tools/BaseExternalTool.cpp')
-rw-r--r-- | api/logic/tools/BaseExternalTool.cpp | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/api/logic/tools/BaseExternalTool.cpp b/api/logic/tools/BaseExternalTool.cpp new file mode 100644 index 00000000..2b97c3c9 --- /dev/null +++ b/api/logic/tools/BaseExternalTool.cpp @@ -0,0 +1,41 @@ +#include "BaseExternalTool.h" + +#include <QProcess> +#include <QDir> + +#ifdef Q_OS_WIN +#include <windows.h> +#endif + +#include "BaseInstance.h" + +BaseExternalTool::BaseExternalTool(SettingsObjectPtr settings, InstancePtr instance, QObject *parent) + : QObject(parent), m_instance(instance), globalSettings(settings) +{ +} + +BaseExternalTool::~BaseExternalTool() +{ +} + +BaseDetachedTool::BaseDetachedTool(SettingsObjectPtr settings, InstancePtr instance, QObject *parent) + : BaseExternalTool(settings, instance, parent) +{ + +} + +void BaseDetachedTool::run() +{ + runImpl(); +} + + +BaseExternalToolFactory::~BaseExternalToolFactory() +{ +} + +BaseDetachedTool *BaseDetachedToolFactory::createDetachedTool(InstancePtr instance, + QObject *parent) +{ + return qobject_cast<BaseDetachedTool *>(createTool(instance, parent)); +} |