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

void KarchiveurApp::createArchiveFromCommandLine ( QStringList  files,
QString  preferedtype = NULL 
)

Automaticaly create a compressed file containing . If there is a single file or directory, create an archive named files.preferedtype, delault compressor set by preferedtype. Otherwise, prompt the user for a name

Automaticaly create a compressed file containing

Parameters:
files 
preferedtype is an archive extension (.zip...) that indicated which type of archive should be created. If
preferedtype is Null, use KArchiver's default archive type If there is a single file or directory, create an archive named files.tar.gz. Otherwise, prompt the user for a name

Definition at line 1785 of file karchiveur.cpp.

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

                                                                                         {

  archiveoperation = new  CArchiveOperationProcessInputFiles( archiveobj,  progress, preferedArchiveType, includewholepath,  ADD_AND_REPLACE_FILES );
  connect(archiveoperation, SIGNAL(operationEnded(int, QString)), this, SLOT(slotMessageArchiveOperation(int , QString )));
  led->setColor(QColor("red"));
  slotStatusMsg(i18n("Creating archive..."));
  enableMenus(false);
  archiveoperation->createArchiveFromCommandLine(files, preferedtype);  
}


Generated by  Doxygen 1.6.0   Back to index