stanza.py 656 B

123456789101112131415161718192021222324252627282930313233
  1. """
  2. SleekXMPP: The Sleek XMPP Library
  3. Copyright (C) 2011 Nathanael C. Fritz, Lance J.T. Stout
  4. This file is part of SleekXMPP.
  5. See the file LICENSE for copying permission.
  6. """
  7. from sleekxmpp.xmlstream import ElementBase
  8. class OOBTransfer(ElementBase):
  9. """
  10. """
  11. name = 'query'
  12. namespace = 'jabber:iq:oob'
  13. plugin_attrib = 'oob_transfer'
  14. interfaces = set(('url', 'desc', 'sid'))
  15. sub_interfaces = set(('url', 'desc'))
  16. class OOB(ElementBase):
  17. """
  18. """
  19. name = 'x'
  20. namespace = 'jabber:x:oob'
  21. plugin_attrib = 'oob'
  22. interfaces = set(('url', 'desc', 'size'))
  23. sub_interfaces = interfaces