general kio slave for reading embedded files
Thiago Macieira
thiago at kde.org
Sun Dec 17 08:21:38 GMT 2006
Jos van den Oever wrote:
>I would like to port the kioslave that comes with Strigi to KDE4 and
>place it in kdelibs/kioslave/ or kdebase/runtime/kioslave/.
>The current name of the kioslave is jstream:// which is not good.
>Something like archive:// might be better.
I am not sure an ioslave is the best approach here.
I think this should be in libkio, working atop all ioslaves. That way, you
can browse into archives in any ioslave, including remote files.
That in turn means the naming scheme has to change. The actual file name
and the data inside the archive should be separated by a # (for an HTML
file, # marks an anchor inside the file; for an archive, why not mark the
file inside?). The reason for that is that, for remote files, the cost of
statting to find out if they exist is too high. The information should be
present at the start.
But this is just the external presentation. Strigi can stay unchanged.
In other words, I'd like this to work:
file:///home/kde/a.zip#/b.tar.gz/x.rpm/y.deb/README
or
file:///home/kde/a.zip#/b.tar.gz#/x.rpm#/y.deb#/README
as well as
http://localhost/~kde/a.zip#/b.tar.gz/x.rpm/y.deb/README
fish://remotehost/home/kde/a.zip#/b.tar.gz/x.rpm/y.deb/README
ftp://remotehost/home/kde/a.zip#/b.tar.gz/x.rpm/y.deb/README
(Note all three represent different capabilities of KIO: fish is a
random-access protocol; ftp is a filesystem but streaming-only protocol;
http doesn't support directory listing)
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20061217/ac0a7b5e/attachment.sig>
More information about the kde-core-devel
mailing list