gloox  0.9.9.12
oob.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 OOB_H__
15 #define OOB_H__
16 
17 #include "stanzaextension.h"
18 #include "macros.h"
19 
20 #include <string>
21 
22 namespace gloox
23 {
24 
25  class Tag;
26 
35  class GLOOX_API OOB : public StanzaExtension
36  {
37  public:
45  OOB( const std::string& url, const std::string& description, bool iqext );
46 
53  OOB( Tag *tag );
54 
58  virtual ~OOB();
59 
64  const std::string& url() const { return m_url; }
65 
70  const std::string& desc() const { return m_desc; }
71 
72  // reimplemented from StanzaExtension
73  Tag* tag() const;
74 
75  private:
76  std::string m_xmlns;
77  std::string m_url;
78  std::string m_desc;
79  bool m_iqext;
80  bool m_valid;
81 
82  };
83 
84 }
85 
86 #endif // OOB_H__