C# 클래스 jabber.connection.PubSubManager

상속: jabber.connection.StreamComponent
파일 보기 프로젝트 열기: codebutler/jabber-net 1 사용 예제들

공개 메소드들

메소드 설명
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