#include <receipt.h>
An implementation of Message Receipts (XEP-0184) as a StanzaExtension.
- Author
- Jakob Schröter js@ca.nosp@m.maya.nosp@m..net
- Since
- 1.0
Definition at line 32 of file receipt.h.
◆ ReceiptType
Contains valid receipt types (XEP-0184).
Enumerator |
---|
Request | Requests a receipt.
|
Received | The receipt.
|
Invalid | Invalid type.
|
Definition at line 38 of file receipt.h.
◆ Receipt() [1/2]
Constructs a new object from the given Tag.
- Parameters
-
Definition at line 31 of file receipt.cpp.
◆ Receipt() [2/2]
Constructs a new object of the given type.
- Parameters
-
rcpt | The receipt type. |
id | The message ID. |
Definition at line 56 of file receipt.h.
◆ ~Receipt()
Virtual destructor.
Definition at line 63 of file receipt.h.
◆ clone()
◆ filterString()
const std::string & filterString |
( |
| ) |
const |
|
virtual |
Returns an XPath expression that describes a path to child elements of a stanza that an extension handles.
- Returns
- The extension's filter string.
Implements StanzaExtension.
Definition at line 41 of file receipt.cpp.
◆ id()
Returns the message id for acknowledgement tracking.
- Returns
- The message ID for acknowledgement tracking.
Definition at line 75 of file receipt.h.
◆ newInstance()
Returns a new Instance of the derived type. Usually, for a derived class FooExtension, the implementation of this function looks like:
{
return new FooExtension(
tag );
}
StanzaExtension(int type)
- Returns
- The derived extension's new instance.
Implements StanzaExtension.
Definition at line 81 of file receipt.h.
◆ rcpt()
Returns the object's state.
- Returns
- The object's state.
Definition at line 69 of file receipt.h.
◆ tag()
The documentation for this class was generated from the following files: