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

void KarchiveurApp::slotRemoveWithUndoThoseFiles ( QStringList  files  )  [protected, slot]

Remove from current archives the files in files, with undo possibility

Definition at line 762 of file karchiveur.cpp.

References CArchive::extractArchive(), CLed::setColor(), slotRemoveThoseFiles(), and slotStatusMsg().

Referenced by slotRedo().

                                                                   {
  slotStatusMsg(i18n("Deleting selected files..."));

      if(operation!=NOARCHIVE)
      {
            QString repTrash;

            led->setColor(QColor("red"));

            listUndo.clear();
            listRedo.clear();

            for(QStringList::Iterator file=files.begin(); file!=files.end(); ++file)
            {
                        listUndo.append(/*tmpdirundo+"/"+*/ *file );
                        //listRedo.append(file);
                        archiveobj->extractArchive(tmpdirundo, EXTRACTONE_AND_BLOCK, *file);
            }
      }

      slotRemoveThoseFiles(files);

      led->setColor(QColor("green"));
  slotStatusMsg(IDS_STATUS_DEFAULT);
}


Generated by  Doxygen 1.6.0   Back to index