gloox  0.9.9.12
xdelayeddelivery.h
1 /*
2  Copyright (c) 2006-2008 by Jakob Schroeter <js@camaya.net>
3  This file is part of the gloox library. http://camaya.net/gloox
4 
5  This software is distributed under a license. The full license
6  agreement can be found in the file LICENSE in this distribution.
7  This software may not be copied, modified, sold or distributed
8  other than expressed in the named license agreement.
9 
10  This software is distributed without any warranty.
11 */
12 
13 
14 #ifndef XDELAYEDDELIVERY_H__
15 #define XDELAYEDDELIVERY_H__
16 
17 #include "stanzaextension.h"
18 #include "jid.h"
19 
20 #include <string>
21 
22 namespace gloox
23 {
24 
25  class Tag;
26 
35  {
36 
37  public:
44  GLOOX_DEPRECATED_CTOR XDelayedDelivery( const JID& from, const std::string stamp,
45  const std::string& reason );
46 
52 
56  virtual ~XDelayedDelivery();
57 
63  const std::string& stamp() const { return m_stamp; }
64 
70  const JID& from() const { return m_from; }
71 
76  const std::string& reason() const { return m_reason; }
77 
78  // reimplemented from StanzaExtension
79  virtual Tag* tag() const;
80 
81  private:
82  JID m_from;
83  std::string m_stamp;
84  std::string m_reason;
85  bool m_valid;
86 
87  };
88 
89 }
90 
91 #endif // XDELAYEDDELIVERY_H__