Hi,
how can I implement the start of a chat to a Bonjour protocol (or link-local
messaging) in Kopete from another program if I have the data like host and
port?
I am asking because:
As you might know I am working on the network-kioslave*, a kioslave which is
to list the network from a device-centric point-of-view. One of the backends
is DNS-SD (Bonjour in Apple's implementation), which also lists the
link-local service instances offered on a host (commited today). Now I would
like to add the possibility to start a chat to a by just clicking on the chat
service item listed in the view.
For services like SSH, VNC, or by just today a KBattleship game offer, the
problem is solved by just having the item forward to a matching url
(ssh:/..., vnc:/..., kbattleship:/...) and assigning the mimetype
(inode/vnd.kde.service.{ssh,vnc,kbattleship,...} the proper application as
handler, e.g. KRDC or KBattleship, done in the "file" association control
module in System Settings.
I can create a url "presence:/somehost.on.net:port/", but how would this be
best transformed into a start of/call to Kopete for a chat with the person at
this remote place? I guess I will need an adapter script, but how would it
work? Is there some code I could take as template to ask Kopete to connect to
a link-local service, and start it if it isn't already running?
* http://frinring.wordpress.com/2009/02/13/browse-your-network/
Cheers
Friedrich
--
Okteta - KDE 4 Hex Editor - http://utils.kde.org/projects/okteta
_______________________________________________
kopete-devel mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kopete-devel