Home | Trees | Index | Help |
|
---|
|
Method Summary | |
---|---|
Initialize a MucRoomState object. | |
Send a nick change request to the room. | |
unicode |
Configure the room using the provided data. |
unicode |
Get own nick. |
JID |
Get own room JID or a room JID for given nick . |
MucRoomUser |
Get a room user with given nick or JID. |
Send a join request for the room. | |
Send a leave request for the room. | |
Process <presence/> received from the room. | |
Process error response for a room configuration request. | |
Process error response for a room configuration form request. | |
Process successful result of a room configuration form request. | |
Process success response for a room configuration request. | |
Process <message type="error"/> received from the room. | |
Process <presence type="error"/> received from the room. | |
Process <message type="groupchat"/> received from the room. | |
Process <presence type="unavailable"/> received from the room. | |
unicode |
Request a configuration form for the room. |
unicode |
Request an "instant room" -- the default configuration for a MUC room. |
Send a message to the room. | |
Called when current stream changes. | |
Send a subject change request to the room. |
Instance Variable Summary | |
---|---|
configured : False if the room requires configuration. | |
handler : MucRoomHandler object containing callbacks to be called. | |
joined : True if the channel is joined. | |
manager : MucRoomManager object managing this room. | |
me : MucRoomUser instance of the owner. | |
own_jid : real jid of the owner (client using this class). | |
room_jid : room jid of the owner. | |
subject : current subject of the room. | |
users : dictionary of users in the room. |
Method Details |
---|
__init__(self,
manager,
own_jid,
room_jid,
handler)
Initialize a |
change_nick(self, new_nick)Send a nick change request to the room.
|
configure_room(self, form)Configure the room using the provided data. Do nothing if the provided form is of type 'cancel'.
|
get_nick(self)Get own nick.
|
get_room_jid(self, nick=None)Get own room JID or a room JID for givennick .
|
get_user(self, nick_or_jid, create=False)Get a room user with given nick or JID.
|
join(self, password=None, history_maxchars=None, history_maxstanzas=None, history_seconds=None, history_since=None)Send a join request for the room.
|
leave(self)Send a leave request for the room. |
process_available_presence(self, stanza)Process <presence/> received from the room.
|
process_configuration_error(self, stanza)Process error response for a room configuration request.
|
process_configuration_form_error(self, stanza)Process error response for a room configuration form request.
|
process_configuration_form_success(self, stanza)Process successful result of a room configuration form request.
|
process_configuration_success(self, stanza)Process success response for a room configuration request.
|
process_error_message(self, stanza)Process <message type="error"/> received from the room.
|
process_error_presence(self, stanza)Process <presence type="error"/> received from the room.
|
process_groupchat_message(self, stanza)Process <message type="groupchat"/> received from the room.
|
process_unavailable_presence(self, stanza)Process <presence type="unavailable"/> received from the room.
|
request_configuration_form(self)Request a configuration form for the room. When the form is received
|
request_instant_room(self)Request an "instant room" -- the default configuration for a MUC room.
|
send_message(self, body)Send a message to the room.
|
set_stream(self, stream)Called when current stream changes. Mark the room not joined and inform
|
set_subject(self, subject)Send a subject change request to the room.
|
Instance Variable Details |
---|
configuredFalse if the room requires configuration. |
handlerMucRoomHandler object containing callbacks to be called. |
joinedTrue if the channel is joined. |
managerMucRoomManager object managing this room. |
meMucRoomUser instance of the owner. |
own_jidreal jid of the owner (client using this class). |
room_jidroom jid of the owner. |
subjectcurrent subject of the room. |
usersdictionary of users in the room. Nicknames are the keys. |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Mon Dec 26 17:57:39 2005 | http://epydoc.sf.net |