C# Class jabber.connection.ConferenceManager

Inheritance: jabber.connection.StreamComponent
Show file Open project: codebutler/jabber-net Class Usage Examples

Private Properties

Property Type Description
ConferenceManager_OnStreamChanged void
GotUnique void
InitializeComponent void
Stream_OnProtocol void

Public Methods

Method Description
ConferenceManager ( ) : System

Creates a new conference manager.

ConferenceManager ( IContainer container ) : System

Creates a new conference manager in a container

GetRoom ( JID roomAndNick ) : Room

Joins a conference room.

GetUniqueRoom ( string server, string nick, RoomStateEvent callback, object state ) : void

Get a unique room name from the given server, and create a Room object for that room with the given nick. You'll be called back on "callback" when complete; the Room will be null if there was an error or timeout. Note: the server should implement the feature http://jabber.org/protocol/muc#unique, or this will return an error. To work around, just create a room with a Guid for a name.

HasRoom ( JID roomAndNick ) : bool

Determines whether or not the conference room is being managed by this ConferenceManager.

RemoveRoom ( JID roomAndNick ) : void

Removes the room from the list. Should most often be called by the Room.Leave() method. If the room does not exist, no exception is thrown.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Performs tasks associated with freeing, releasing, or resetting resources.

Private Methods

Method Description
ConferenceManager_OnStreamChanged ( object sender ) : void
GotUnique ( object sender, IQ iq, object state ) : void
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

Stream_OnProtocol ( object sender, System rp ) : void

Method Details

ConferenceManager() public method

Creates a new conference manager.
public ConferenceManager ( ) : System
return System

ConferenceManager() public method

Creates a new conference manager in a container
public ConferenceManager ( IContainer container ) : System
container IContainer Parent container.
return System

Dispose() protected method

Performs tasks associated with freeing, releasing, or resetting resources.
protected Dispose ( bool disposing ) : void
disposing bool True if managed resources should be disposed; otherwise, false.
return void

GetRoom() public method

Joins a conference room.
public GetRoom ( JID roomAndNick ) : Room
roomAndNick JID room@conference/nick, where "nick" is the desred nickname in the room.
return Room

GetUniqueRoom() public method

Get a unique room name from the given server, and create a Room object for that room with the given nick. You'll be called back on "callback" when complete; the Room will be null if there was an error or timeout. Note: the server should implement the feature http://jabber.org/protocol/muc#unique, or this will return an error. To work around, just create a room with a Guid for a name.
public GetUniqueRoom ( string server, string nick, RoomStateEvent callback, object state ) : void
server string The server to send the request to
nick string The nickname desired in the new room
callback RoomStateEvent A callback to be called when the room is created
state object State object to be passed back when the callback fires
return void

HasRoom() public method

Determines whether or not the conference room is being managed by this ConferenceManager.
public HasRoom ( JID roomAndNick ) : bool
roomAndNick JID Room to look for.
return bool

RemoveRoom() public method

Removes the room from the list. Should most often be called by the Room.Leave() method. If the room does not exist, no exception is thrown.
public RemoveRoom ( JID roomAndNick ) : void
roomAndNick JID Room to remove.
return void