00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef VCARDUPDATE_H__
00015 #define VCARDUPDATE_H__
00016
00017 #include "gloox.h"
00018 #include "stanzaextension.h"
00019
00020 #include <string>
00021
00022 namespace gloox
00023 {
00024
00025 class Tag;
00026
00035 class GLOOX_API VCardUpdate : public StanzaExtension
00036 {
00037 public:
00041 VCardUpdate();
00042
00047 VCardUpdate( const std::string& hash );
00048
00054 VCardUpdate( const Tag* tag );
00055
00059 virtual ~VCardUpdate();
00060
00065 const std::string& hash() const { return m_hash; }
00066
00067
00068 virtual const std::string& filterString() const;
00069
00070
00071 virtual StanzaExtension* newInstance( const Tag* tag ) const
00072 {
00073 return new VCardUpdate( tag );
00074 }
00075
00076
00077 Tag* tag() const;
00078
00079 private:
00080 std::string m_hash;
00081 bool m_notReady;
00082 bool m_noImage;
00083 bool m_valid;
00084
00085 };
00086
00087 }
00088
00089 #endif // VCARDUPDATE_H__