gloox  1.0.1
vcardupdate.h
1 /*
2  Copyright (c) 2006-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 #ifndef VCARDUPDATE_H__
15 #define VCARDUPDATE_H__
16 
17 #include "gloox.h"
18 #include "stanzaextension.h"
19 
20 #include <string>
21 
22 namespace gloox
23 {
24 
25  class Tag;
26 
35  class GLOOX_API VCardUpdate : public StanzaExtension
36  {
37  public:
41  VCardUpdate();
42 
47  VCardUpdate( const std::string& hash );
48 
54  VCardUpdate( const Tag* tag );
55 
59  virtual ~VCardUpdate();
60 
65  const std::string& hash() const { return m_hash; }
66 
67  // reimplemented from StanzaExtension
68  virtual const std::string& filterString() const;
69 
70  // reimplemented from StanzaExtension
71  virtual StanzaExtension* newInstance( const Tag* tag ) const
72  {
73  return new VCardUpdate( tag );
74  }
75 
76  // reimplemented from StanzaExtension
77  Tag* tag() const;
78 
79  // reimplemented from StanzaExtension
80  virtual StanzaExtension* clone() const
81  {
82  return new VCardUpdate( *this );
83  }
84 
85  private:
86  std::string m_hash;
87  bool m_notReady;
88  bool m_noImage;
89  bool m_valid;
90 
91  };
92 
93 }
94 
95 #endif // VCARDUPDATE_H__