vcardhandler.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 VCARDHANDLER_H__
#define VCARDHANDLER_H__
#include "macros.h"
#include "vcard.h"
#include "jid.h"
namespace gloox
{
class VCard;
class GLOOX_API VCardHandler
{
public:
enum VCardContext
{
FetchVCard,
StoreVCard
};
virtual ~VCardHandler() {}
virtual void handleVCard( const JID& jid, const VCard* vcard ) = 0;
virtual void handleVCardResult( VCardContext context, const JID& jid,
StanzaError se = StanzaErrorUndefined ) = 0;
};
}
#endif // VCARDHANDLER_H__
gloox::JID
An abstraction of a JID.
Definition jid.h:31
gloox::VCardHandler
A virtual interface that helps requesting Jabber VCards.
Definition vcardhandler.h:37
gloox::VCardHandler::handleVCardResult
virtual void handleVCardResult(VCardContext context, const JID &jid, StanzaError se=StanzaErrorUndefined)=0
gloox::VCardHandler::handleVCard
virtual void handleVCard(const JID &jid, const VCard *vcard)=0
gloox::VCardHandler::VCardContext
VCardContext
Definition vcardhandler.h:43
gloox::VCardHandler::StoreVCard
@ StoreVCard
Definition vcardhandler.h:45
gloox::VCardHandler::FetchVCard
@ FetchVCard
Definition vcardhandler.h:44
gloox::VCardHandler::~VCardHandler
virtual ~VCardHandler()
Definition vcardhandler.h:51
gloox::VCard
A VCard abstraction.
Definition vcard.h:35
gloox
The namespace for the gloox library.
Definition adhoc.cpp:28
gloox::StanzaError
StanzaError
Definition gloox.h:872
gloox::StanzaErrorUndefined
@ StanzaErrorUndefined
Definition gloox.h:952