<div class="gmail_quote">2012/10/1 Mario Bensi <span dir="ltr"><<a href="mailto:mbensi@ipsquad.net" target="_blank">mbensi@ipsquad.net</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>> I will use it of course, maintaining code already available in a larger<br>
> codebase is not an option I would totally avoid it, although I hope it will<br>
> go in Qt 5.1+ because otherwise I will have to make my own github repo<br>
> with a copy of it.<br>
><br>
> What's you plan for pushing more kdelibs stuff in Qt 5.x guys?<br>
><br>
> Anyway I looked at the code from the frameworks branch, the<br>
> tier1/karchive directory doesn't seem to load plugins at runtime<br>
> the way I do. It seems it still has classes such as KTar in the<br>
> library itself, this means that:<br>
> * each time you want to add support for another archive format you<br>
> need to release another version of the library and third parties won't<br>
> be able to write their plugins (the opposite of, for example, the<br>
> modular design for image support in Qt)<br>
<br>
</div>Yes you right in this point. It may be a good idea to add this behaviour in<br>
karchive for framework. Do you want work on this change ?<br></blockquote><div><br></div><div>Yes, it's "just" a matter of finding some time but I will definitely do it.</div><div>I have got kdelibs frameworks branch checked out, and I'm going to build it, the next weeks I will try to make room to my schedule and send a patch.</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><br>
> * applications need to know the format in advance, my implementation<br>
> instead had a public generic API that lets you open a file then it<br>
> detects the mime type and load the appropriate plugin for you.<br>
<br>
</div>For this point you can use KFilterDev::KFilterDev(const QString& fileName) to<br>
use the KCompressionDevice or use findCompressionByFileName(fileName) to get the<br>
compression type for your file.<span><font color="#888888"><br>
</font></span></blockquote></div><br>It supports bzip2, xz and gzip, what if I want to make let's say rar available to every application that is using KArchive?