pyxmpp.jabber.muccore.MucStanzaExt

Package pyxmpp :: Package jabber :: Module muccore :: Class MucStanzaExt |
[show private | hide private]
[frames | no frames]

## Class MucStanzaExt

Known Subclasses:
  `MucIq`, `MucPresence`

Base class for MUC specific stanza extensions. Used together with one of stanza classes (Iq, Message or Presence).

Method Summary
| ``__init__`(self)` Initialize a `MucStanzaExt` derived object.
| ``clear_muc_child`(self)` Remove the MUC specific stanza payload element.
`MucX` or `MucUserX` or `MucAdminQuery` or `MucOwnerX` | ``get_muc_child`(self)` Get the MUC specific payload element.
`MucAdminQuery` | ``make_muc_admin_quey`(self)` Create <query xmlns="...muc#admin"/> element in the stanza.
`MucUserX` | ``make_muc_userinfo`(self)` Create <x xmlns="...muc#user"/> element in the stanza.
| ``muc_free`(self)` Free MUC specific data.

Method Details

### __init__(self) (Constructor) Initialize a `MucStanzaExt` derived object.

### clear_muc_child(self) Remove the MUC specific stanza payload element.

### get_muc_child(self) Get the MUC specific payload element. Returns: the object describing the stanza payload in MUC namespace. (type=`MucX` or `MucUserX` or `MucAdminQuery` or `MucOwnerX`)

### make_muc_admin_quey(self) Create <query xmlns="...muc#admin"/> element in the stanza. Returns: the element created. (type=`MucAdminQuery`)

### make_muc_userinfo(self) Create <x xmlns="...muc#user"/> element in the stanza. Returns: the element created. (type=`MucUserX`)

### muc_free(self) Free MUC specific data.