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, fa...@kde.org, http://www.davidfaure.fr Working on KDE, in particular KDE Frameworks 5 _______________________________________________ Kde-frameworks-devel mailing list Kde-frameworks-devel@kde.org https://mail.kde.org/mailman/listinfo/kde-frameworks-devel