C# Class agsXMPP.protocol.iq.privacy.PrivacyManager

Helper class for managing server side privacy lists (blocking communication)
Datei anzeigen Open project: SiteView/ECC8.13 Class Usage Examples

Public Methods

Method Description
AddList ( string name, Item rules ) : void

Add a new list with the given name and rules

AddList ( string name, Item rules, IqCB cb, object cbArg ) : void

Add a new list with the given name and rules.

ChangeActiveList ( string name ) : void

Change the active list

ChangeActiveList ( string name, IqCB cb, object cbArg ) : void

Change the active list

ChangeDefaultList ( string name ) : void

Change the default list

ChangeDefaultList ( string name, IqCB cb, object cbArg ) : void

Change the default list

DeclineActiveList ( ) : void

Decline the use of any active list

DeclineActiveList ( IqCB cb, object cbArg ) : void

Decline the use of any active list

DeclineDefaultList ( ) : void

Decline the use of the default list

DeclineDefaultList ( IqCB cb, object cbArg ) : void

Decline the use of the default list

GetList ( string name ) : void

Requests a privacy list from the server by its name

GetList ( string name, IqCB cb, object cbArg ) : void

Requests a privacy list from the server by its name

GetLists ( ) : void

Retrieving all Privacy Lists

GetLists ( IqCB cb, object cbArg ) : void

Retrieving all Privacy Lists

PrivacyManager ( XmppClientConnection con ) : System
RemoveList ( string name ) : void

Remove a privacy list

RemoveList ( string name, IqCB cb, object cbArg ) : void

Remove a privacy list

UpdateList ( string name, Item rules ) : void

Update the list with the given name and rules.

Specify the desired changes to the list by including all elements/rules in the list (not the "delta")

UpdateList ( string name, Item rules, IqCB cb, object cbArg ) : void

Update the list with the given name and rules.

Specify the desired changes to the list by including all elements/rules in the list (not the "delta")

Private Methods

Method Description
SendStanza ( agsXMPP.protocol.iq.privacy.PrivacyIq pIq, IqCB cb, object cbArg ) : void

Sends a PrivacyIq over the active connection

Method Details

AddList() public method

Add a new list with the given name and rules
public AddList ( string name, Item rules ) : void
name string
rules Item
return void

AddList() public method

Add a new list with the given name and rules.
public AddList ( string name, Item rules, IqCB cb, object cbArg ) : void
name string
rules Item
cb IqCB Callback for the server result
cbArg object Callback arguments for the result when needed
return void

ChangeActiveList() public method

Change the active list
public ChangeActiveList ( string name ) : void
name string
return void

ChangeActiveList() public method

Change the active list
public ChangeActiveList ( string name, IqCB cb, object cbArg ) : void
name string
cb IqCB Callback for the server result
cbArg object Callback arguments for the result when needed
return void

ChangeDefaultList() public method

Change the default list
public ChangeDefaultList ( string name ) : void
name string name of the new default list
return void

ChangeDefaultList() public method

Change the default list
public ChangeDefaultList ( string name, IqCB cb, object cbArg ) : void
name string name of the new default list
cb IqCB Callback for the server result
cbArg object Callback arguments for the result when needed
return void

DeclineActiveList() public method

Decline the use of any active list
public DeclineActiveList ( ) : void
return void

DeclineActiveList() public method

Decline the use of any active list
public DeclineActiveList ( IqCB cb, object cbArg ) : void
cb IqCB Callback for the server result
cbArg object Callback arguments for the result when needed
return void

DeclineDefaultList() public method

Decline the use of the default list
public DeclineDefaultList ( ) : void
return void

DeclineDefaultList() public method

Decline the use of the default list
public DeclineDefaultList ( IqCB cb, object cbArg ) : void
cb IqCB Callback for the server result
cbArg object Callback arguments for the result when needed
return void

GetList() public method

Requests a privacy list from the server by its name
public GetList ( string name ) : void
name string name of the privacy list to retrieve
return void

GetList() public method

Requests a privacy list from the server by its name
public GetList ( string name, IqCB cb, object cbArg ) : void
name string name of the privacy list to retrieve
cb IqCB Callback for the server result
cbArg object Callback arguments for the result when needed
return void

GetLists() public method

Retrieving all Privacy Lists
public GetLists ( ) : void
return void

GetLists() public method

Retrieving all Privacy Lists
public GetLists ( IqCB cb, object cbArg ) : void
cb IqCB Callback for the server result
cbArg object Callback arguments for the result when needed
return void

PrivacyManager() public method

public PrivacyManager ( XmppClientConnection con ) : System
con agsXMPP.XmppClientConnection
return System

RemoveList() public method

Remove a privacy list
public RemoveList ( string name ) : void
name string name of the privacy list to remove
return void

RemoveList() public method

Remove a privacy list
public RemoveList ( string name, IqCB cb, object cbArg ) : void
name string name of the privacy list to remove
cb IqCB Callback for the server result
cbArg object Callback arguments for the result when needed
return void

UpdateList() public method

Update the list with the given name and rules.
Specify the desired changes to the list by including all elements/rules in the list (not the "delta")
public UpdateList ( string name, Item rules ) : void
name string name of the list
rules Item rules of this list
return void

UpdateList() public method

Update the list with the given name and rules.
Specify the desired changes to the list by including all elements/rules in the list (not the "delta")
public UpdateList ( string name, Item rules, IqCB cb, object cbArg ) : void
name string name of this list
rules Item rules of this list
cb IqCB Callback for the server result
cbArg object Callback arguments for the result when needed
return void