Intergrating mht file to konqueror

Thiago Macieira thiago.macieira at kdemail.net
Sun Nov 7 12:37:22 GMT 2004


Leo Savernik wrote:
>> But if for mhtml we have, according to the type:
>> 'text/html' --> index.html
>> 'application/xml' --> index.xml
>> 'application/xhtml+xml' --> index.xml
>
>Should be index.xhtml
>
>> unrecognized --> / with serviceType 'inode/directory'
>>

I have two ideas:

1) treat kio_mhtml as a container-like protocol, just like kio_tar and 
kio_zip. In that case, it is a T_FILESYSTEM protocol and will always 
return a file listing for listDir("/"). Konqueror will see that one file 
is called "index.html" or "index.xhtml" and decide to open it on its own, 
just as it does with normal files.

The question is: does Konqueror automatically open index.html for 
protocols other than kio_file?

2) treat kio_mhtml like a remote protocol, like kio_ftp. When Konqueror 
sends get("/"), kio_mhtml will send back a redirection to /index.html 
or /index.xhtml.

The questions are: when does Konqueror send listDir("/") or get("/")? How 
do we get a directory listing?

-- 
  Thiago Macieira  -  Registered Linux user #65028
   thiago (AT) macieira (DOT) info
    ICQ UIN: 1967141   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: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20041107/6fe62b14/attachment.sig>


More information about the kfm-devel mailing list