:orphan:

:py:mod:`slidge.command.adhoc`
==============================

.. py:module:: slidge.command.adhoc


Module Contents
---------------

Classes
~~~~~~~

.. autoapisummary::

   slidge.command.adhoc.AdhocProvider




.. py:class:: AdhocProvider(xmpp)


   A slixmpp-like plugin to handle adhoc commands, with less boilerplate and
   untyped dict values than slixmpp.

   .. py:method:: register(command, jid = None)

      Register a command as a adhoc command.

      this does not need to be called manually, ``BaseGateway`` takes care of
      that.

      :param command:
      :param jid:


   .. py:method:: get_items(jid, node, iq)
      :async:

      Get items for a disco query

      :param jid: who is requesting the disco
      :param node: which command node is requested
      :param iq:  the disco query IQ
      :return: commands accessible to the given JID will be listed



