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

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

Méthodes publiques

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

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

Sends a PrivacyIq over the active connection

Method Details

AddList() public méthode

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

AddList() public méthode

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

ChangeActiveList() public méthode

Change the active list
public ChangeActiveList ( string name ) : void
name string
Résultat void

ChangeActiveList() public méthode

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

ChangeDefaultList() public méthode

Change the default list
public ChangeDefaultList ( string name ) : void
name string name of the new default list
Résultat void

ChangeDefaultList() public méthode

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

DeclineActiveList() public méthode

Decline the use of any active list
public DeclineActiveList ( ) : void
Résultat void

DeclineActiveList() public méthode

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

DeclineDefaultList() public méthode

Decline the use of the default list
public DeclineDefaultList ( ) : void
Résultat void

DeclineDefaultList() public méthode

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

GetList() public méthode

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

GetList() public méthode

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

GetLists() public méthode

Retrieving all Privacy Lists
public GetLists ( ) : void
Résultat void

GetLists() public méthode

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

PrivacyManager() public méthode

public PrivacyManager ( XmppClientConnection con ) : System
con agsXMPP.XmppClientConnection
Résultat System

RemoveList() public méthode

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

RemoveList() public méthode

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

UpdateList() public méthode

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

UpdateList() public méthode

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