XEP 0085

1.6 Documentation

«  XEP 0084   ::   Contents   ::   XEP 0086  »

XEP 0085

class slixmpp.plugins.xep_0085.XEP_0085(xmpp, config=None)[source]

XEP-0085 Chat State Notifications

stanza = <module 'slixmpp.plugins.xep_0085.stanza' from '/home/docs/checkouts/readthedocs.org/user_builds/slixmpp/checkouts/slix-1.6.0/slixmpp/plugins/xep_0085/stanza.py'>

Stanza elements

Slixmpp: The Slick XMPP Library Copyright (C) 2011 Nathanael C. Fritz, Lance J.T. Stout This file is part of Slixmpp.

See the file LICENSE for copying permissio

class slixmpp.plugins.xep_0085.stanza.Active(xml=None, parent=None)[source]
name = 'active'
class slixmpp.plugins.xep_0085.stanza.ChatState(xml=None, parent=None)[source]

Example chat state stanzas:

<message>
  <active xmlns="http://jabber.org/protocol/chatstates" />
</message>

<message>
  <paused xmlns="http://jabber.org/protocol/chatstates" />
</message>
del_chat_state()[source]
get_chat_state()[source]
interfaces = {'chat_state'}
is_extension = True
name = ''
namespace = 'http://jabber.org/protocol/chatstates'
plugin_attrib = 'chat_state'
set_chat_state(state)[source]
setup(xml=None)[source]

Initialize the stanza’s XML contents.

Will return True if XML was generated according to the stanza’s definition instead of building a stanza object from an existing XML object.

Parameters

xml – An existing XML object to use for the stanza’s content instead of generating new XML.

states = {'active', 'composing', 'gone', 'inactive', 'paused'}
sub_interfaces = {'chat_state'}
class slixmpp.plugins.xep_0085.stanza.Composing(xml=None, parent=None)[source]
name = 'composing'
class slixmpp.plugins.xep_0085.stanza.Gone(xml=None, parent=None)[source]
name = 'gone'
class slixmpp.plugins.xep_0085.stanza.Inactive(xml=None, parent=None)[source]
name = 'inactive'
class slixmpp.plugins.xep_0085.stanza.Paused(xml=None, parent=None)[source]
name = 'paused'

«  XEP 0084   ::   Contents   ::   XEP 0086  »