http status code in khtml

David Faure faure at kde.org
Tue Jan 31 18:46:30 GMT 2006


On Tuesday 31 January 2006 18:06, Miroslav Suchý wrote:
> David Faure wrote:
> > Because my advice was crap, actually. Look at khtml_part.cpp, it says emit started(0).
> > This is because we don't want the progress info to depend on this job only, so it passes 0.
> >
> > I think you need to modify KHTMLPart to add a job() method, implemented as:
> > KIO::Job* KHTMLPart::job() {
> >     return d->m_job;
> > }
> >
> > Right now the job is completely internal to KHTMLPart, I see no way of accessing it
> > from the outside.
> >
> Yes, I see it.
> I have to create fork of kdelibs, add this method and mantain it. :(

Or you could go back in time, tell us that you need that method, and we would add it and you'd have it now :)

> Why is "d" private? Could not it be protected?

No, since the whole point is to be able to preserve binary compatibility.
See the page on binary compatibility on developer.kde.org.

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).




More information about the kfm-devel mailing list