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

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

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

Метод Описание
AddNodeHandler ( string node, ItemCB addCB, ItemCB removeCB, int maxNumber ) : void

Add a handler for all inbound notifications with the given node name. This is handy for PEP implicit subscriptions.

GetDefaults ( JID service, IqCB callback, object state ) : void

Get the default configuration of the node.

GetNode ( JID service, string node, int maxItems ) : PubSubNode

Subscribes to a publish-subscribe node.

PubSubManager ( ) : System

Creates a manager.

PubSubManager ( IContainer container ) : System

Creates a manager in a container.

RemoveNode ( JID service, string node, bedrock errorHandler ) : void

Removes the publish-subscribe node from the manager and sends a delete node to the XMPP server.

RemoveNodeHandler ( string node, ItemCB cb ) : void

Remove an existing callback.

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

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

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

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

Метод Описание
InitializeComponent ( ) : void

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

OnDefaults ( object sender, IQ iq, object data ) : void
PubSubManager_OnStreamChanged ( object sender ) : void
m_stream_OnProtocol ( object sender, XmlElement rp ) : void

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

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

Add a handler for all inbound notifications with the given node name. This is handy for PEP implicit subscriptions.
public AddNodeHandler ( string node, ItemCB addCB, ItemCB removeCB, int maxNumber ) : void
node string PEP node URI
addCB ItemCB Callback when items added
removeCB ItemCB Callbacks when items removed
maxNumber int Maximum number of items to store per node in this namespace
Результат void

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

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

Get the default configuration of the node.
public GetDefaults ( JID service, IqCB callback, object state ) : void
service JID JID of the pub/sub service
callback IqCB Callback. Must not be null. Will not be called back /// if there is an error, but instead OnError will be called.
state object State information to be passed back to callback
Результат void

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

Subscribes to a publish-subscribe node.
public GetNode ( JID service, string node, int maxItems ) : PubSubNode
service JID Component that handles PubSub requests.
node string The node on the component that the client wants to interact with.
maxItems int Maximum number of items to retain. First one to call Subscribe gets their value, for now.
Результат PubSubNode

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

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

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

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

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

Removes the publish-subscribe node from the manager and sends a delete node to the XMPP server.
public RemoveNode ( JID service, string node, bedrock errorHandler ) : void
service JID /// Component that handles PubSub requests. ///
node string /// The node on the component that the client wants to interact with. ///
errorHandler bedrock /// Callback for any errors with the publish-subscribe node deletion. ///
Результат void

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

Remove an existing callback.
public RemoveNodeHandler ( string node, ItemCB cb ) : void
node string
cb ItemCB
Результат void