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

bool Kconfigure::openExtractURL ( const KURL &  url,
const QString &  extVal 
) [private]

Open with extract operation

Definition at line 882 of file kconfigure.cpp.

References fileName, filePath, ExtractDlg::getFile(), headerHTML(), logHtml, logOn, logString, recentFiles, and ExtractDlg::setFile().

Referenced by openURL().

{
      ExtractDlg tarOptions;
      tarOptions.setFile( url, extVal );
      if(   tarOptions.exec() )
      {
            filePath = tarOptions.getFile().directory(false,true);
            fileName = tarOptions.getFile().fileName();
            recentFiles->addURL( tarOptions.getFile() );
            if( logOn )
            {
                  if( logHtml )
                  {
                        headerHTML( i18n("Extract files in : %1").arg( filePath ) );
                        logString += "</TD></TR></TABLE><P></P>";
                  } else {
                        logString += ">> " + i18n("Extract files in : %1").arg( filePath ) + "\n\n";
                  }
            }
            return true;
      } else {
            return false;
      }     
}


Generated by  Doxygen 1.6.0   Back to index