twisted.im.basechat.GroupConversation

Package twisted :: Package im :: Module basechat :: Class GroupConversation |
[frames | no frames]

## Class GroupConversation

A conversation with a group of people.

Method Summary
| ``__init__`(self, group, chatui)`
| ``hide`(self)` Hides the GroupConversationWindow.
| ``memberChangedNick`(self, oldnick, newnick)` Changes the oldnick in the list of members to newnick and displays this change to the user
| ``memberJoined`(self, member)` Adds the given member to the list of members in the group conversation and displays this to the user
| ``memberLeft`(self, member)` Deletes the given member from the list of members in the group conversation and displays the change to the user
`Deferred` | ``sendText`(self, text)` Sends text to the group.
| ``setGroupMembers`(self, members)` Sets the list of members in the group and displays it to the user
| ``setTopic`(self, topic, author)` Displays the topic (from the server) for the group conversation window
| ``show`(self)` Displays the GroupConversationWindow.
| ``showGroupMessage`(self, sender, text, metadata)` Displays to the user a message sent to this group from the given sender

Method Details

### __init__(self, group, chatui) (Constructor) Parameters: `group` (type=`Group`) `chatui` - ??? (type=`ChatUI`)

### hide(self) Hides the GroupConversationWindow.

### memberChangedNick(self, oldnick, newnick) Changes the oldnick in the list of members to newnick and displays this change to the user Parameters: `oldnick` (type=string) `newnick` (type=string)

### memberJoined(self, member) Adds the given member to the list of members in the group conversation and displays this to the user Parameters: `member` (type=string (XXX: Not Person?))

### memberLeft(self, member) Deletes the given member from the list of members in the group conversation and displays the change to the user Parameters: `member` (type=string)

### sendText(self, text) Sends text to the group. Parameters: `text` (type=string) Returns: `Deferred`

### setGroupMembers(self, members) Sets the list of members in the group and displays it to the user

### setTopic(self, topic, author) Displays the topic (from the server) for the group conversation window Parameters: `topic` (type=string) `author` (type=string (XXX: Not Person?))

### show(self) Displays the GroupConversationWindow.

### showGroupMessage(self, sender, text, metadata=None) Displays to the user a message sent to this group from the given sender Parameters: `sender` (type=string (XXX: Not Person?)) `text` (type=string) `metadata` (type=dict)

Generated by Epydoc 2.0 on Sat May 15 20:08:57 2004 | http://epydoc.sf.net