vcardmanager.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 VCARDMANAGER_H__
#define VCARDMANAGER_H__
#include "gloox.h"
#include "iqhandler.h"
namespace gloox
{
class ClientBase;
class VCard;
class VCardHandler;
class GLOOX_API VCardManager : public IqHandler
{
public:
VCardManager( ClientBase* parent );
virtual ~VCardManager();
void fetchVCard( const JID& jid, VCardHandler* vch );
void storeVCard( VCard* vcard, VCardHandler* vch );
void cancelVCardOperations( VCardHandler* vch );
// reimplemented from IqHandler.
virtual bool handleIq( const IQ& iq ) { (void)iq; return false; }
// reimplemented from IqHandler.
virtual void handleIqID( const IQ& iq, int context );
private:
typedef std::map<std::string, VCardHandler*> TrackMap;
ClientBase* m_parent;
TrackMap m_trackMap;
};
}
#endif // VCARDMANAGER_H__
gloox::ClientBase
This is the common base class for a Jabber/XMPP Client and a Jabber Component.
Definition clientbase.h:79
gloox::IQ
An abstraction of an IQ stanza.
Definition iq.h:34
gloox::IqHandler
A virtual interface which can be reimplemented to receive IQ stanzas.
Definition iqhandler.h:32
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::VCardManager::handleIq
virtual bool handleIq(const IQ &iq)
Definition vcardmanager.h:142
gloox::VCardManager::fetchVCard
void fetchVCard(const JID &jid, VCardHandler *vch)
Definition vcardmanager.cpp:45
gloox::VCardManager::storeVCard
void storeVCard(VCard *vcard, VCardHandler *vch)
Definition vcardmanager.cpp:75
gloox::VCardManager::cancelVCardOperations
void cancelVCardOperations(VCardHandler *vch)
Definition vcardmanager.cpp:62
gloox::VCardManager::VCardManager
VCardManager(ClientBase *parent)
Definition vcardmanager.cpp:24
gloox::VCard
A VCard abstraction.
Definition vcard.h:35
gloox
The namespace for the gloox library.
Definition adhoc.cpp:28