C# Класс jabber.connection.ConferenceManager

Наследование: jabber.connection.StreamComponent
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
ConferenceManager_OnStreamChanged void
GotUnique void
InitializeComponent void
Stream_OnProtocol void

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

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

Приватные методы

Метод Описание
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

Описание методов

ConferenceManager() публичный Метод

Creates a new conference manager.
public ConferenceManager ( ) : System
Результат System

ConferenceManager() публичный Метод

Creates a new conference manager in a container
public ConferenceManager ( IContainer container ) : System
container IContainer Parent container.
Результат System

Dispose() защищенный Метод

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.
Результат void

GetRoom() публичный Метод

Joins a conference room.
public GetRoom ( JID roomAndNick ) : Room
roomAndNick JID room@conference/nick, where "nick" is the desred nickname in the room.
Результат Room

GetUniqueRoom() публичный Метод

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
Результат void

HasRoom() публичный Метод

Determines whether or not the conference room is being managed by this ConferenceManager.
public HasRoom ( JID roomAndNick ) : bool
roomAndNick JID Room to look for.
Результат bool

RemoveRoom() публичный Метод

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.
Результат void