C# Class agsXMPP.protocol.extensions.caps.Capabilities

It is often desirable for a Jabber/XMPP application (commonly but not necessarily a client) to take different actions depending on the capabilities of another application from which it receives presence information. Examples include:

Showing a different set of icons depending on the capabilities of other clients. Not sending XHTML-IM content to plaintext clients such as cell phones. Allowing the initiation of Voice over IP (VoIP) sessions only to clients that support VoIP. Not showing a "Send a File" button if another user's client does not support File Transfer.

Recently, some existing Jabber clients have begun sending Software Version requests to each entity from which they receive presence. That solution is impractical on a larger scale, particularly for users or applications with large rosters. This document proposes a more robust and scalable solution: namely, a presence-based mechanism for exchanging information about entity capabilities.

Inheritance: Element
Afficher le fichier Open project: Irdis/VSTalk Class Usage Examples

Private Properties

Свойство Type Description
BuildCapsVersion string

Méthodes publiques

Méthode Description
AddExtension ( string ext ) : void
Capabilities ( ) : System

Capabilities ( string version, string node ) : System

ContainsExtension ( string ext ) : bool
RemoveExtension ( string ext ) : void
SetVersion ( agsXMPP.protocol.iq.disco.DiscoInfo di ) : void

Builds and sets the caps ver attribute from a DiscoInfo object

Private Methods

Méthode Description
BuildCapsVersion ( agsXMPP.protocol.iq.disco.DiscoInfo di ) : string

Method Details

AddExtension() public méthode

public AddExtension ( string ext ) : void
ext string
Résultat void

Capabilities() public méthode

public Capabilities ( ) : System
Résultat System

Capabilities() public méthode

public Capabilities ( string version, string node ) : System
version string
node string
Résultat System

ContainsExtension() public méthode

public ContainsExtension ( string ext ) : bool
ext string
Résultat bool

RemoveExtension() public méthode

public RemoveExtension ( string ext ) : void
ext string
Résultat void

SetVersion() public méthode

Builds and sets the caps ver attribute from a DiscoInfo object
public SetVersion ( agsXMPP.protocol.iq.disco.DiscoInfo di ) : void
di agsXMPP.protocol.iq.disco.DiscoInfo
Résultat void