summaryrefslogtreecommitdiff
path: root/Core.cpp
diff options
context:
space:
mode:
authorThomas Preud'homme <robotux@celest.fr>2020-08-31 00:44:34 +0100
committerThomas Preud'homme <robotux@celest.fr>2020-08-31 00:44:34 +0100
commitac95ce6e0538249e9c395904b49b078234fdcb5e (patch)
treee10c4b08e8f5e8b462abd28481b9235a11b61ac8 /Core.cpp
parent3ac113857071fc1f225b2e1b42547269e568c6b7 (diff)
New upstream version 2.2.4.5
Diffstat (limited to 'Core.cpp')
-rwxr-xr-xCore.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/Core.cpp b/Core.cpp
index 25f26eb..1a2f3a0 100755
--- a/Core.cpp
+++ b/Core.cpp
@@ -726,6 +726,9 @@ void Core::connectInterfaceAndSync(const unsigned int &index)
if(!connect(currentCopyInstance.engine,&PluginInterface_CopyEngine::newActionOnList,this,&Core::getActionOnList, Qt::QueuedConnection))
ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Critical,"error at connect, the interface can not work correctly: "+std::to_string(index)+": "+std::to_string((uint64_t)sender())+" for newActionOnList()");
+ if(!connect(currentCopyInstance.interface,&PluginInterface_Themes::askProductKey,this,&Core::askProductKey, Qt::QueuedConnection))
+ ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Critical,"error at connect, the interface can not work correctly: "+std::to_string(index)+": "+std::to_string((uint64_t)sender())+" for newActionOnList()");
+
if(!connect(currentCopyInstance.engine,&PluginInterface_CopyEngine::pushFileProgression, currentCopyInstance.interface,&PluginInterface_Themes::setFileProgression, Qt::QueuedConnection))
ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Critical,"error at connect, the interface can not work correctly: "+std::to_string(index)+": "+std::to_string((uint64_t)sender())+" for pushFileProgression()");
if(!connect(currentCopyInstance.engine,&PluginInterface_CopyEngine::pushGeneralProgression, currentCopyInstance.interface,&PluginInterface_Themes::setGeneralProgression, Qt::QueuedConnection))
@@ -758,6 +761,18 @@ void Core::connectInterfaceAndSync(const unsigned int &index)
periodicSynchronizationWithIndex(index);
}
+void Core::changeToUltimate()
+{
+ unsigned int index_sub_loop=0;
+ while(index_sub_loop<copyList.size())
+ {
+ CopyInstance i=copyList.at(index_sub_loop);
+ if(i.interface!=nullptr)
+ i.interface->changeToUltimate();
+ index_sub_loop++;
+ }
+}
+
void Core::periodicSynchronization()
{
unsigned int index_sub_loop=0;