gloox  0.9.9.12
Public Member Functions | List of all members
VCardUpdate Class Reference

#include <vcardupdate.h>

Inheritance diagram for VCardUpdate:
Inheritance graph
[legend]
Collaboration diagram for VCardUpdate:
Collaboration graph
[legend]

Public Member Functions

 VCardUpdate ()
 VCardUpdate (const std::string &hash)
 VCardUpdate (Tag *tag)
virtual ~VCardUpdate ()
const std::string & hash () const
Tagtag () const
- Public Member Functions inherited from StanzaExtension
 StanzaExtension (StanzaExtensionType type)
virtual ~StanzaExtension ()
StanzaExtensionType type () const

Detailed Description

This is an abstraction of a vcard-temp:x:update namespace element, as used in XEP-0153 (vCard-Based Avatars).

XEP version: 1.0

Author
Jakob Schroeter js@ca.nosp@m.maya.nosp@m..net
Since
0.9

Definition at line 34 of file vcardupdate.h.

Constructor & Destructor Documentation

Constructs an empty VCardUpdate object.

Definition at line 20 of file vcardupdate.cpp.

VCardUpdate ( const std::string &  hash)

Constructs a new object with the given hash.

Parameters
hashThe current avatar's SHA hash.

Definition at line 26 of file vcardupdate.cpp.

VCardUpdate ( Tag tag)

Constructs an VCardUpdate object from the given Tag. To be recognized properly, the Tag should have a name of 'x' in the vcard-temp:x:update namespace.

Parameters
tagThe Tag to parse.

Definition at line 37 of file vcardupdate.cpp.

~VCardUpdate ( )
virtual

Virtual destructor.

Definition at line 54 of file vcardupdate.cpp.

Member Function Documentation

const std::string& hash ( ) const
inline

Returns the avatar's hash.

Returns
The avatar's SHA hash.

Definition at line 64 of file vcardupdate.h.

Tag * tag ( ) const
virtual

Returns a Tag representation of the extension.

Returns
A Tag representation of the extension.

Implements StanzaExtension.

Definition at line 58 of file vcardupdate.cpp.


The documentation for this class was generated from the following files: