[Kde-extra-gear] gz support for ktorrent

Andrey Vul andrey.vul at gmail.com
Thu Dec 4 17:53:01 CET 2008


On Thu, Dec 4, 2008 at 06:33, Eike Hein <hein at kde.org> wrote:
> Andrey Vul wrote:
>> Is there a preferred way of decompressing zlib-compressed files in
>> KDE? I don't want to make the code uglier or make a patch larger by
>> using zlib.h, introducing C/non-KDE/non-Qt code, especially since this
>> will be my first patch for KDE.
>> A link to the relevant documentation would be ideal.
>
> KArchive / KTar:
> http://api.kde.org/4.x-api/kdelibs-apidocs/kio/html/classKArchive.html
> http://api.kde.org/4.x-api/kdelibs-apidocs/kio/html/classKTar.html
>
> Where the tar stuff also handles gzip and bzip2.
As in zlib-compressed files or zlib-compressed tarballs?

Because if it's the latter, wouldn't it be more appropriate to use
KFilterDev, read the data using QIODevice, then write it to the text
file?



-- 
Andrey Vul


More information about the Kde-extra-gear mailing list