Source code for slixmpp.plugins.xep_0013.stanza
# Slixmpp: The Slick XMPP Library
# Copyright (C) 2012 Nathanael C. Fritz, Lance J.T. Stout
# This file is part of Slixmpp.
# See the file LICENSE for copying permissio
from slixmpp.jid import JID
from slixmpp.xmlstream import ElementBase, register_stanza_plugin
[docs]
class Offline(ElementBase):
name = 'offline'
namespace = 'http://jabber.org/protocol/offline'
plugin_attrib = 'offline'
interfaces = {'fetch', 'purge', 'results'}
bool_interfaces = interfaces
# The results interface is meant only as an easy
# way to access the set of collected message responses
# from the query.
[docs]
class Item(ElementBase):
name = 'item'
namespace = 'http://jabber.org/protocol/offline'
plugin_attrib = 'item'
interfaces = {'action', 'node', 'jid'}
actions = {'view', 'remove'}
register_stanza_plugin(Offline, Item, iterable=True)