summaryrefslogtreecommitdiff
path: root/CopyEngineManager.cpp
diff options
context:
space:
mode:
authorThomas Preud'homme <robotux@celest.fr>2020-08-11 22:35:12 +0100
committerThomas Preud'homme <robotux@celest.fr>2020-08-11 22:35:12 +0100
commit3ac113857071fc1f225b2e1b42547269e568c6b7 (patch)
tree8b28dd9c44a0d3c7ab8187cd8d8f19d47591d813 /CopyEngineManager.cpp
parent9b10c21f5cad0e2ec27d23c59e65af7141a226f3 (diff)
New upstream version 2.2.4.4
Diffstat (limited to 'CopyEngineManager.cpp')
-rwxr-xr-x[-rw-r--r--]CopyEngineManager.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/CopyEngineManager.cpp b/CopyEngineManager.cpp
index fc1ec95..61a1399 100644..100755
--- a/CopyEngineManager.cpp
+++ b/CopyEngineManager.cpp
@@ -10,7 +10,7 @@
#include "cpp11addition.h"
#ifdef ULTRACOPIER_PLUGIN_ALL_IN_ONE_DIRECT
-#include "plugins/CopyEngine/Ultracopier/CopyEngineFactory.h"
+#include "plugins/CopyEngine/Ultracopier-Spec/CopyEngineFactory.h"
#endif
CopyEngineManager::CopyEngineManager(OptionDialog *optionDialog)
@@ -221,6 +221,7 @@ CopyEngineManager::returnCopyEngine CopyEngineManager::getCopyEngine(const Ultra
pluginList[index].intances.push_back(pluginList.at(index).factory->getInstance());
temp.engine=pluginList.at(index).intances.back();
temp.canDoOnlyCopy=pluginList.at(index).canDoOnlyCopy;
+ temp.havePause=pluginList.at(index).factory->havePause();
temp.type=pluginList.at(index).type;
temp.transferListOperation=pluginList.at(index).transferListOperation;
return temp;
@@ -262,10 +263,13 @@ CopyEngineManager::returnCopyEngine CopyEngineManager::getCopyEngine(const Ultra
temp.engine=NULL;
return temp;
}
- pluginList[index].intances.push_back(pluginList.at(index).factory->getInstance());
+ PluginInterface_CopyEngineFactory * factory=pluginList.at(index).factory;
+ PluginInterface_CopyEngine * newIntance=factory->getInstance();
+ pluginList[index].intances.push_back(newIntance);
temp.engine=pluginList.at(index).intances.back();
temp.canDoOnlyCopy=pluginList.at(index).canDoOnlyCopy;
temp.type=pluginList.at(index).type;
+ temp.havePause=factory->havePause();
temp.transferListOperation=pluginList.at(index).transferListOperation;
return temp;
}