xdelayeddelivery.h

00001 /*
00002   Copyright (c) 2006-2008 by Jakob Schroeter <js@camaya.net>
00003   This file is part of the gloox library. http://camaya.net/gloox
00004 
00005   This software is distributed under a license. The full license
00006   agreement can be found in the file LICENSE in this distribution.
00007   This software may not be copied, modified, sold or distributed
00008   other than expressed in the named license agreement.
00009 
00010   This software is distributed without any warranty.
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       // reimplemented from StanzaExtension
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__

Generated on Sun Apr 27 11:08:14 2008 for gloox by  doxygen 1.5.5