See http://xmpp.org/protocols/commands/ for more info. Specifically it requires support for http://xmpp.org/extensions/xep-0050.html and http://xmpp.org/extensions/xep-0004.html (the latter is said to be supported in Wocky).
Any news about that?
(In reply to Matej Cepl from comment #0)
> See http://xmpp.org/protocols/commands/ for more info. Specifically it
> requires support for http://xmpp.org/extensions/xep-0050.html and
> http://xmpp.org/extensions/xep-0004.html (the latter is said to be supported
> in Wocky).
From what I can see wocky can parse XEP-0004 forms and can format a response. What wocky can't do is display the form for a user to fill out. (And that's a difficult issue given that the user interface to gabble is provided by either Empathy or KDE Telepathy)
However, I've been working on a prototype that uses telepathy-gabble-xmpp-console, which gives advanced access to the XMPP stream via a gabble plugin.
Currently my prototype does everything in python and uses the SendIQ feature provide by the XMPP console plugin.
I think it'll be easier to discuss what's needed for a proper implementation with a prototype in hand.
(In reply to diane from comment #2)
> I think it'll be easier to discuss what's needed for a proper implementation
> with a prototype in hand.
I suppose that you need to figure out a D-Bus API for exposing this feature, then implement it in Gabble and expose it using the Connection.Sidecars interface.
The client you can implement as you wish. There are examples in tp-glib and tp-qt iirc for adding spec extensions to your build and using them.
Created attachment 127113 [details] [review]
snapshot of progress
I got busy and stopped making progress for a while, but I should share what I did so far. Since I'm primarily a python programmer I implemented XEP-50 as pure python in telepathy-gabble-xmpp-console (and maybe included a few python3 fixes.
This shouldn't be committed, the attached patch is too large and the XML parsing should be in the C plugin and not hacked in using python's xml parsers. I just wanted to try it, and think about the UI.
For some version of the command mode browsing, issuing commands, and generating forms worked. However I didn't manage to implement notes. (some commands return a note and not a form.)
I tried to add a service discovery browser, but I'm not sure how it should work work on muc servers. Large MUC servers can return large large lists of rooms.
-- GitLab Migration Automatic Message --
This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.
You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/telepathy/telepathy-gabble/issues/149.