gloox
1.0
|
#include <vcardupdate.h>
Public Member Functions | |
VCardUpdate () | |
VCardUpdate (const std::string &hash) | |
VCardUpdate (const Tag *tag) | |
virtual | ~VCardUpdate () |
const std::string & | hash () const |
virtual const std::string & | filterString () const |
virtual StanzaExtension * | newInstance (const Tag *tag) const |
Tag * | tag () const |
virtual StanzaExtension * | clone () const |
Public Member Functions inherited from StanzaExtension | |
StanzaExtension (int type) | |
virtual | ~StanzaExtension () |
int | extensionType () const |
This is an abstraction of a vcard-temp:x:update namespace element, as used in XEP-0153 (vCard-Based Avatars).
XEP version: 1.0
Definition at line 35 of file vcardupdate.h.
VCardUpdate | ( | ) |
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.
hash | The current avatar's SHA hash. |
Definition at line 26 of file vcardupdate.cpp.
VCardUpdate | ( | const 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.
tag | The Tag to parse. |
Definition at line 37 of file vcardupdate.cpp.
|
virtual |
Virtual destructor.
Definition at line 54 of file vcardupdate.cpp.
|
inlinevirtual |
Returns an identical copy of the current StanzaExtension.
Implements StanzaExtension.
Definition at line 80 of file vcardupdate.h.
|
virtual |
Returns an XPath expression that describes a path to child elements of a stanza that an extension handles.
Implements StanzaExtension.
Definition at line 58 of file vcardupdate.cpp.
|
inline |
Returns the avatar's hash.
Definition at line 65 of file vcardupdate.h.
|
inlinevirtual |
Returns a new Instance of the derived type. Usually, for a derived class FooExtension, the implementation of this function looks like:
Implements StanzaExtension.
Definition at line 71 of file vcardupdate.h.
|
virtual |
Returns a Tag representation of the extension.
Implements StanzaExtension.
Definition at line 64 of file vcardupdate.cpp.