Public Member Functions | List of all members
GPGEncrypted Class Reference

#include <gpgencrypted.h>

Inheritance diagram for GPGEncrypted:
Inheritance graph
Collaboration diagram for GPGEncrypted:
Collaboration graph

Public Member Functions

 GPGEncrypted (const std::string &encrypted)
 GPGEncrypted (Tag *tag)
virtual ~GPGEncrypted ()
const std::string & encrypted () 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 jabber:x:encrypted namespace element, as used in XEP-0027 (Current Jabber OpenPGP Usage).

This class does not encrypt or decrypt any stanza content. It's meant to be an abstraction of the XML representation only.

XEP version: 1.3

Jakob Schroeter

Definition at line 37 of file gpgencrypted.h.

Constructor & Destructor Documentation

GPGEncrypted ( const std::string &  encrypted)

Constructs a new object with the given encrypted message.

encryptedThe encrypted message.

Definition at line 20 of file gpgencrypted.cpp.

GPGEncrypted ( Tag tag)

Constructs an GPGEncrypted object from the given Tag. To be recognized properly, the Tag should have a name of 'x' in the jabber:x:encrypted namespace.

tagThe Tag to parse.

Definition at line 28 of file gpgencrypted.cpp.

~GPGEncrypted ( )

Virtual destructor.

Definition at line 39 of file gpgencrypted.cpp.

Member Function Documentation

const std::string& encrypted ( ) const

Returns the encrypted message.

The encrypted message.

Definition at line 62 of file gpgencrypted.h.

Tag * tag ( ) const

Returns a Tag representation of the extension.

A Tag representation of the extension.

Implements StanzaExtension.

Definition at line 43 of file gpgencrypted.cpp.

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