void ServerCatchcopy::emitNewCopyWithoutDestination(const uint32_t &client,const uint32_t &orderId,const std::vector<std::string> &sources) { LinkGlobalToLocalClient newAssociation; newAssociation.idClient=client; newAssociation.orderId=orderId; newAssociation.globalOrderId=incrementOrderId(); LinkGlobalToLocalClientList << newAssociation; emit newCopyWithoutDestination(newAssociation.globalOrderId,sources); }
void CopyListener::newPluginCopyWithoutDestination(const quint32 &orderId,const QStringList &sources) { ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Notice,"sources: "+sources.join(";")); PluginInterface_Listener *plugin = qobject_cast<PluginInterface_Listener *>(sender()); CopyRunning newCopyInformation; newCopyInformation.listenInterface = plugin; newCopyInformation.pluginOrderId = orderId; newCopyInformation.orderId = incrementOrderId(); copyRunningList << newCopyInformation; emit newCopyWithoutDestination(orderId,QStringList() << "file",stripSeparator(sources)); }
/** new copy without destination have been pased by the CLI */ void CopyListener::copyWithoutDestination(QStringList sources) { ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Notice,"start"); emit newCopyWithoutDestination(incrementOrderId(),QStringList() << "file",stripSeparator(sources)); }