Need help for kdewin-installer - 7zip support

Christian Ehrlicher Ch.Ehrlicher at gmx.de
Thu Jan 18 09:27:38 CET 2007


Von: "Igor Mironchick" <imironchick at gmail.com>
> Hi, i forgot to do something...
> 
> In SzManager::saveCurrentFile( QIODevice * file )
> it is neccessary to do this changes:
> 
> bool
> SzManager::saveCurrentFile( QIODevice * file )
> {
>     if( file->isWritable() )
>     {
>         UInt32 processedSize;
>         size_t offset;
>         size_t outSizeProcessed;
> 
>         res = SzReadFile( &archiveStream.InStream, &db, currentFileIndex,
>             &blockIndex, &outBuffer, &outBufferSize,
>             &offset, &outSizeProcessed,
>             &allocImp, &allocTempImp );
>         if (res != SZ_OK)
>             return false;
> 
>         processedSize = file->writeBlock( (char*)(outBuffer + offset),
> outSizeProcessed );
>         if (processedSize != outSizeProcessed)
>         {
>             res = SZE_FAIL;
>             return false;
>         }
> 
>         return true;
>     }
> 
>     return false;
> }
> 
> It is better :)

Thx for your help, it could be easily ported to qt4 and I've changed it to use QIODevice the way like quazip does. Seems to work fine although I'm having some troubles with SzClean()...

Christian
-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer



More information about the Kde-windows mailing list