C# Class jabber.connection.ConferenceManager

Inheritance: jabber.connection.StreamComponent
Afficher le fichier Open project: codebutler/jabber-net Class Usage Examples

Private Properties

Свойство Type Description
ConferenceManager_OnStreamChanged void
GotUnique void
InitializeComponent void
Stream_OnProtocol void

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

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

Private Methods

Méthode 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 méthode

Creates a new conference manager.
public ConferenceManager ( ) : System
Résultat System

ConferenceManager() public méthode

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

Dispose() protected méthode

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.
Résultat void

GetRoom() public méthode

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

GetUniqueRoom() public méthode

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
Résultat void

HasRoom() public méthode

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

RemoveRoom() public méthode

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.
Résultat void