vcardupdate.h
/*
Copyright (c) 2006-2023 by Jakob Schröter <js@camaya.net>
This file is part of the gloox library. http://camaya.net/gloox
This software is distributed under a license. The full license
agreement can be found in the file LICENSE in this distribution.
This software may not be copied, modified, sold or distributed
other than expressed in the named license agreement.
This software is distributed without any warranty.
*/
#ifndef VCARDUPDATE_H__
#define VCARDUPDATE_H__
#include "gloox.h"
#include "stanzaextension.h"
#include <string>
namespace gloox
{
class Tag;
class GLOOX_API VCardUpdate : public StanzaExtension
{
public:
VCardUpdate();
VCardUpdate( const std::string& hash );
VCardUpdate( const Tag* tag );
virtual ~VCardUpdate();
const std::string& hash() const { return m_hash; }
bool hasPhoto() { return m_hasPhoto; }
// reimplemented from StanzaExtension
virtual const std::string& filterString() const;
// reimplemented from StanzaExtension
virtual StanzaExtension* newInstance( const Tag* tag ) const
{
return new VCardUpdate( tag );
}
// reimplemented from StanzaExtension
Tag* tag() const;
// reimplemented from StanzaExtension
virtual StanzaExtension* clone() const
{
return new VCardUpdate( *this );
}
private:
std::string m_hash;
bool m_notReady;
bool m_noImage;
bool m_valid;
bool m_hasPhoto;
};
}
#endif // VCARDUPDATE_H__
gloox::StanzaExtension::StanzaExtension
StanzaExtension(int type)
Definition stanzaextension.h:211
gloox::Tag
This is an abstraction of an XML element.
Definition tag.h:47
gloox::VCardUpdate::hash
const std::string & hash() const
Definition vcardupdate.h:65
gloox::VCardUpdate::clone
virtual StanzaExtension * clone() const
Definition vcardupdate.h:90
gloox::VCardUpdate::VCardUpdate
VCardUpdate()
Definition vcardupdate.cpp:20
gloox::VCardUpdate::newInstance
virtual StanzaExtension * newInstance(const Tag *tag) const
Definition vcardupdate.h:81
gloox::VCardUpdate::hasPhoto
bool hasPhoto()
Definition vcardupdate.h:75
gloox::VCardUpdate::tag
Tag * tag() const
Definition vcardupdate.cpp:64
gloox
The namespace for the gloox library.
Definition adhoc.cpp:28