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

void KarchiveurApp::addToArchive ( QStringList  listfilestoadd,
bool  removefiles,
int  actionfichiers,
QString  relativePath 
)

Add some files to the archive

Parameters:
listfilestoadd : list of files to add
removefiles : remove or not those files from disk
actionfichiers : 0=mode append and replace files, 1=mode update files
relativePath : include only filenames, without their path

Definition at line 1048 of file karchiveur.cpp.

References CArchiveOperation::addFilesToCurrentArchive(), enableMenus(), CLed::setColor(), and slotMessageArchiveOperation().

Referenced by slotUndo().

                                                                                                                       {
  if(archiveoperation!=NULL)
    delete archiveoperation;
  if(archiveobj==NULL)
  {
    led->setColor(QColor("orange"));
    return;
  }
  enableMenus(false);
  led->setColor(QColor("red"));
  archiveoperation = new CArchiveOperationAdd(archiveobj, progress);
  connect(archiveoperation, SIGNAL(operationEnded(int, QString )), this, SLOT(slotMessageArchiveOperation(int, QString )));
  archiveoperation->addFilesToCurrentArchive( listfilestoadd,removefiles,actionfichiers,relativePath);
}


Generated by  Doxygen 1.6.0   Back to index