KArchive design changes
David Faure
faure at kde.org
Wed Nov 21 12:20:22 UTC 2012
On Sunday 28 October 2012 11:34:41 Pier Luigi wrote:
> > > * applications need to know the format in advance, my implementation
> > >
> > > instead had a public generic API that lets you open a file then it
> > > detects the mime type and load the appropriate plugin for you.
> >
> > For this point you can use KFilterDev::KFilterDev(const QString& fileName)
> > to
> > use the KCompressionDevice or use findCompressionByFileName(fileName) to
> > get the
> > compression type for your file.
>
> It supports bzip2, xz and gzip, what if I want to make let's say rar
> available to every application that is using KArchive?
Let's not mix single-file compression (bzip2, xz and gzip ==> KCompressionDevice)
and archives with files and directories (ZIP, TAR, AR, RAR, etc. => KArchive).
--
David Faure, faure at kde.org, http://www.davidfaure.fr
Working on KDE, in particular KDE Frameworks 5
More information about the Kde-frameworks-devel
mailing list