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

void KarchiveurApp::slotAddFiles (  )  [slot]

add some files to the archive

Definition at line 588 of file karchiveur.cpp.

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

Referenced by initActions(), and slotFileNew().

{
  led->setColor(QColor("red"));
  slotStatusMsg(i18n("Adding files.."));
  
  if(operation==NOARCHIVE)
  {
    archiveoperation=new CArchiveOperationCreate(archiveobj, progress);
    connect(archiveoperation, SIGNAL(operationEnded(int, QString)), this, SLOT(slotMessageArchiveOperation(int , QString )));
    archiveoperation->createNewArchive();
  }
  else
  {
    archiveoperation=new CArchiveOperationAdd(archiveobj, progress);
    connect(archiveoperation, SIGNAL(operationEnded(int, QString)), this, SLOT(slotMessageArchiveOperation(int , QString )));
    archiveoperation->addFilesToCurrentArchive();
  }
}


Generated by  Doxygen 1.6.0   Back to index