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

void KarchiveurApp::slotDiskCutUncut (  )  [slot]

Split/Unsplit the archive in/from small parts

Definition at line 873 of file karchiveur.cpp.

References CArchiveOperation::doCuttUnCutt(), enableMenus(), CWizardCutt::getCuttSize(), CWizardCutt::getRecordDirectory(), CLed::setColor(), CWizardCutt::setNoneArchiveOpened(), and slotMessageArchiveOperation().

Referenced by initActions().

                                    {
  CWizardCutt wiz_cutt;
  led->setColor(QColor("red"));
      
  if(archiveobj==NULL)
    wiz_cutt.setNoneArchiveOpened();

  if(wiz_cutt.exec())
  {
    if(wiz_cutt.getRecordDirectory()!=NULL)
    {
      enableMenus(false);
      archiveoperation = new CArchiveOperationSplit( archiveobj,  progress );
      connect(archiveoperation, SIGNAL(operationEnded(int, QString)), this, SLOT(slotMessageArchiveOperation(int , QString )));
      archiveoperation->doCuttUnCutt(wiz_cutt.getRecordDirectory(), wiz_cutt.getCuttSize());
    }
    else
      led->setColor(QColor("orange"));
  }
  else
    led->setColor(QColor("orange"));
}


Generated by  Doxygen 1.6.0   Back to index