16#include "delayeddelivery.h"
36 friend class ClientBase;
87 const std::string
body(
const std::string& lang =
"default" )
const
89 return findLang( m_bodies, m_body, lang );
101 const std::string
subject(
const std::string& lang =
"default" )
const
103 return findLang( m_subjects, m_subject, lang );
110 const std::string&
thread()
const {
return m_thread; }
122 void setID(
const std::string&
id ) { m_id =
id; }
137 virtual Tag* tag()
const;
149 MessageType m_subtype;
151 std::string m_subject;
154 std::string m_thread;
This is an implementation of XEP-0203 (Delayed Delivery).
An abstraction of a message stanza.
const std::string subject(const std::string &lang="default") const
const std::string body(const std::string &lang="default") const
void setID(const std::string &id)
const DelayedDelivery * when() const
Message(MessageType type, const JID &to, const std::string &body=EmptyString, const std::string &subject=EmptyString, const std::string &thread=EmptyString, const std::string &xmllang=EmptyString)
void setThread(const std::string &thread)
MessageType subtype() const
const std::string & thread() const
const std::string & id() const
const StanzaExtension * findExtension(int type) const
This is an abstraction of an XML element.
The namespace for the gloox library.
const std::string EmptyString
std::map< std::string, std::string > StringMap