00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef XDELAYEDDELIVERY_H__
00015 #define XDELAYEDDELIVERY_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 XDelayedDelivery : public StanzaExtension
00035 {
00036
00037 public:
00044 GLOOX_DEPRECATED_CTOR XDelayedDelivery( const JID& from, const std::string stamp,
00045 const std::string& reason );
00046
00051 XDelayedDelivery( Tag *tag );
00052
00056 virtual ~XDelayedDelivery();
00057
00063 const std::string& stamp() const { return m_stamp; }
00064
00070 const JID& from() const { return m_from; }
00071
00076 const std::string& reason() const { return m_reason; }
00077
00078
00079 virtual Tag* tag() const;
00080
00081 private:
00082 JID m_from;
00083 std::string m_stamp;
00084 std::string m_reason;
00085 bool m_valid;
00086
00087 };
00088
00089 }
00090
00091 #endif // XDELAYEDDELIVERY_H__