[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kfm-devel
Subject:    Re: Intergrating mht file to konqueror
From:       Thiago Macieira <thiago.macieira () kdemail ! net>
Date:       2004-11-07 20:14:32
Message-ID: 200411071814.32772.thiago.macieira () kdemail ! net
[Download RAW message or body]


Spiros Georgaras wrote:
>> 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.
>
>I don't think this will do, cause this way we will not be able to get
> the directory listing (like in 'war:/my_warfile.war/') if one of the
> index files exist in the mhtml file

You can change that in the View menu.

>But then konqueror should update its location bar, and I do not know if
> this can be done in a generic way....

By sending a redirection.

>[Property::X-KDE-LocalProtocol]
>Type=QString
>Value=mhtml

That's ok.

>[Property::X-KDE-LocalFile]
>Type=QStringList
>Value=index.html,index.xhtml,/

What if I want a different file?

How do we get a directory listing?

>[Property::X-KDE-LocalServiceType]
>Type=QStringList
>Value=text/html,application/xhtml+xml,inode/directory

I don't think this is needed. The ioslave can return the correct MIME type 
depending on the filename requested.

Or, it could simply use the Content-Type header in the MIME part being 
requested. For instance, "script.php" can have a MIME type of 
text/javascript.

-- 
  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

[Attachment #3 (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic