This is a discussion on Re: Adding kpart to konqueror - KDE ; On Wednesday 03 August 2005 09:02, Rainer Lehrig wrote: > Hello, > = > I want to embed our application as kpart into konqueror. > The application is a sort of internet browser, but not html. > See: > http://pvbrowser.org ...
On Wednesday 03 August 2005 09:02, Rainer Lehrig wrote:
> I want to embed our application as kpart into konqueror.
> The application is a sort of internet browser, but not html.
> The question is: What do I have to write in the desktop file ?
> cat pvbrowser.desktop
You need to define a mimetype that your kioslave returns for any file (in s=
tat() and get()),
so that your viewer gets used. Name it application/x-vnd.kde.pvbrowser for =
> What do I have to add for openeing a url ?
> : KParts::ReadWritePart(parent, name)
You probably want ReadOnlyPart, not ReadWritePart?
> Not how to handle/define network protocols.
Well, you did it for pvbrowser.protocol, you need to do a similar .protocol=
pv and pvssh, but not using helper=3Dtrue for those - instead they should s=
exec=3Dkio_pvbrowser (the name of your kioslave).
See kdelibs/kioslave/ftp/ftp.protocol for an example.
David Faure, email@example.com, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscrib=