Logo Search packages:      
Sourcecode: ultracopier version File versions  Download package

void copyThread::addToList ( quint64  id,
const QFileInfo &  source,
qint64  size,
const QFileInfo &  destination 
) [slot]

Add item to list.

Parameters:
idThe id of the copy
sourceThe source
sizeThe file of the current index
destinationThe folder or file destination

Definition at line 601 of file CopyThread.cpp.

References firstScanTot, intToQtringSize(), MultiThreadCopyList, NumberOfFileCopied, NumberOfFileTot, and syntetizedStringOverall.

Referenced by Main_window::addToList().

{
      copyItemInternal theAddItem;
      theAddItem.id=id;
      theAddItem.source=source;
      theAddItem.size=size;
      theAddItem.destination=destination;

      firstScanTot+=size;
      NumberOfFileTot++;
      syntetizedStringOverall="File "+QString::number(NumberOfFileCopied)+"/"+QString::number(NumberOfFileTot)+", Total: "+intToQtringSize(firstScanTot);
      {
            QMutexLocker lock_mutex(&MultiThreadCopyList);
            theCopyList.append(theAddItem);
      }
}

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index