delayeddelivery.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef DELAYEDDELIVERY_H__
00015 #define DELAYEDDELIVERY_H__
00016
00017 #include "stanzaextension.h"
00018 #include "jid.h"
00019
00020 #include <string>
00021
00022 namespace gloox
00023 {
00024
00025 class Tag;
00026
00034 class DelayedDelivery : public StanzaExtension
00035 {
00036
00037 public:
00044 DelayedDelivery( const JID& from, const std::string stamp, const std::string& reason );
00045
00050 DelayedDelivery( Tag *tag );
00051
00055 virtual ~DelayedDelivery();
00056
00063 const std::string& stamp() const { return m_stamp; }
00064
00069 void setStamp( const std::string& stamp ) { m_stamp = stamp; }
00070
00078 const JID& from() const { return m_from; }
00079
00084 void setFrom( const JID& from ) { m_from = from; }
00085
00090 const std::string& reason() const { return m_reason; }
00091
00096 void setReason( const std::string& reason ) { m_reason = reason; }
00097
00103 GLOOX_DEPRECATED void setBody( const std::string& reason ) { m_reason = reason; }
00104
00105
00106 virtual Tag* tag() const;
00107
00108 private:
00109 JID m_from;
00110 std::string m_stamp;
00111 std::string m_reason;
00112 bool m_valid;
00113 };
00114
00115 }
00116
00117 #endif // DELAYEDDELIVERY_H__