Intergrating mht file to konqueror
Spiros Georgaras
sngeorgaras at otenet.gr
Tue Oct 5 09:38:30 BST 2004
Hi all
Here I am again with a lot of questions :)
I am experimenting with a kioslave for mht files.
Trying to create a kio_mht slave base on the code of kio_tar by David Faure.
I have three quaesions
1. When i write 'mht:/d/292 Euro.mht/' at the location bar of konqueror I get
the following debug output:
kio_mht: [mhtProtocol::listDir]: mht:/d/292%20Euro.mht/
kio_mht: [mhtProtocol::checkNewFile]: /d/292 Euro.mht/
kio_mht: [mhtProtocol::checkNewFile]: returning /
kio_mht: [mhtProtocol::listDir]: checkNewFile done
kio_mht: [mhtProtocol::listDir]: items = 4
kio_mht: [mhtProtocol::listDir]: adding file = style.css
kio_mht: [mhtProtocol::listDir]: done
kio_mht: [mhtProtocol::listDir]: adding file = epitagi_1.jpg
kio_mht: [mhtProtocol::listDir]: done
kio_mht: [mhtProtocol::listDir]: adding file = index.html
kio_mht: [mhtProtocol::listDir]: done
kio_mht: [mhtProtocol::listDir]: adding file = logo.jpg
kio_mht: [mhtProtocol::listDir]: done
kio_mht: [mhtProtocol::listDir]: done
kio_mht: [kdemain]: Done
My mhtProtocol::listDir function adds a UDSEntry for each of the files
contained in the mht file. Is this the right thing to do?
2. When the location bar of konqueror is 'mht:/d/292 Euro.mht/' and I press
enter, I get the debug:
kio_mht: [mhtProtocol::stat]
kio_mht: [mhtProtocol::stat]/d/fun/292 Euro.mht/
kio_mht: [mhtProtocol::checkNewFile]: /d/fun/292 Euro.mht/
kio_mht: [mhtProtocol::checkNewFile]: returning /
What exactly is the function of mhtProtocol::stat? I mean what arguments could
it take and what should it return?
3. I also want to ask if writing a kioslave is self contained. I mean does
konqueror need to have a corresponding part of code in order to know that it
should display ' mht:/d/292 Euro.mht/' as a directory listing, etc?
Thanks in advance for your answer
Spiros
More information about the kfm-devel
mailing list