Basic Live Connect support for java

Simon Hausmann hausmann at kde.org
Wed May 15 13:58:37 BST 2002


On Thu, May 09, 2002 at 10:40:40PM +0200, Koos Vriezen wrote:
> Hi,
> 
> Ok, after studying kparts a bit, I've made this patch today. It adds a
> LiveConnectExtension in the Kparts namespace. The patch for khtml can be
> merged with the Java LiveConnect thing. Except for HTMLEmbedElementImpl
> not connecting to the LiveConnectExtension::event signal, its pretty
> complete. The event slot should evaluate 'document.embedname.event(args)'
> 
> I've also made a small patch for kaboodle as a test. Now this works:
> 
> <HTML><BODY>
> <H2>audio/x-wav</H2>
> <EMBED src="file:/usr/local/kde3/share/sounds/KDE_Startup.wav"
>  name="audio" width=250 height=100 type="audio/x-wav">
> </EMBED>
> <br>
> <A HREF="javascript:audio.play()">play</A>
> <A HREF="javascript:audio.stop()">stop</A>
> </BODY></HTML>
> 
> Thus, if a third party would support khtml plugins, it should implement
> ReadOnlyPart and LiveConnectExtension for LiveConnect support.

Cool idea. Just one little thought: How about using QVariant to pass
the data around, instead of the enum and QString?


Simon




More information about the kfm-devel mailing list