gloox  1.0.1
attention.h
1 /*
2  Copyright (c) 2009-2012 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 
15 #ifndef ATTENTION_H__
16 #define ATTENTION_H__
17 
18 
19 #include "stanzaextension.h"
20 
21 #include <string>
22 
23 namespace gloox
24 {
25 
26  class Tag;
27 
34  class GLOOX_API Attention : public StanzaExtension
35  {
36 
37  public:
41  Attention();
42 
46  virtual ~Attention();
47 
48  // reimplemented from StanzaExtension
49  virtual const std::string& filterString() const;
50 
51  // reimplemented from StanzaExtension
52  virtual StanzaExtension* newInstance( const Tag* /*tag*/ ) const
53  {
54  return new Attention();
55  }
56 
57  // reimplemented from StanzaExtension
58  virtual Tag* tag() const;
59 
60  // reimplemented from StanzaExtension
61  virtual StanzaExtension* clone() const
62  {
63  return new Attention();
64  }
65 
66  };
67 
68 }
69 
70 #endif// ATTENTION_H__