Intergrating mht file to konqueror

Spiros Georgaras sngeorgaras at otenet.gr
Wed Oct 6 12:55:00 BST 2004


David Faure wrote:
> On Wednesday 06 October 2004 10:27, Spiros Georgaras wrote:
> > Hi again
> >
> > I have managed to activate the file browser of konqueror to browse the
> > mht file. The problem is that when pressing <Enter> in konqueror and the
> > location bar is 'mht:/d/292 Euro.mht/', konqueror opens the file browser
> > but with no contents. (Tha status bar reports 0 files - 0 folders).
>
> Then the problem is your listDir() implementation.
> ...
> ...
> > statEntry( entry );
> > finished();
>
> OK for stat(). But now I suspect your listDir() implementation doesn't send
> the items.

Have fixed everything you said was not correct, and made some more changes but 
I have the same result.

The funny thing is my listDir() is not called when trying to browse 
'/d/Golf.mht'.

The debuging output is:

kio_mht: [kdemain]: Starting 29098
kio_mht: [mhtProtocol::mhtProtocol]
kio_mht: [mhtProtocol::stat]: /d/Golf.mht/
kio_mht: [mhtProtocol::checkNewFile]: full path = /d/Golf.mht/
kio_mht: [mhtProtocol::checkNewFile]: Need to open a new file
kio_mht: [mhtProtocol::checkNewFile]: /d/Golf.mht/  trying /d
kio_mht: [mhtProtocol::checkNewFile]: /d/Golf.mht/  trying /d/Golf.mht
kio_mht: [mhtProtocol::checkNewFile]: Found archiveFile = /d/Golf.mht path=/
kio_mht: [mhtProtocol::checkNewFile]: Opening mht file on /d/Golf.mht
kio_mht: [KmhtArchive::open()]: mhtFileName = /d/Golf.mht
kio_mht: [KmhtArchive::readItems()]: item[i].name = style.css
kio_mht: [KmhtArchive::readItems()]: item[i].name = 61disp.jpg
kio_mht: [KmhtArchive::readItems()]: item[i].name = 60disp.jpg
kio_mht: [KmhtArchive::readItems()]: item[i].name = index.html
kio_mht: [KmhtArchive::readItems()]: item[i].name = 62disp.jpg
kio_mht: [KmhtArchive::readItems()]: item[i].name = 57disp.jpg
kio_mht: [KmhtArchive::readItems()]: item[i].name = 59disp.jpg
kio_mht: [KmhtArchive::readItems()]: item[i].name = logo.jpg
kio_mht: [KmhtArchive::readItems()]: item[i].name = 58disp.jpg
kio_mht: [KmhtArchive::readItems()]: item[i].name = disp.jpg
kio_mht: [mhtProtocol::stat]: Returning Contents

This is the code I had in my last message....

kio_mht: [mhtProtocol::stat]: UDS_FILE_TYPE =  16384

I set UDS_FILE_TYPE = 16384 (4000H) to tell konqueror this is a directory.
I also set UDS_NAME to "/" and UDS_SIZE to the size of the mht file.

Maybe this is where the error is.... Cause I think that konqueror does not 
understand this is a directory and it does not call listDir at all.

What do you think?




More information about the kfm-devel mailing list