14 #include "vcardmanager.h"
15 #include "vcardhandler.h"
17 #include "clientbase.h"
47 if( !m_parent || !vch )
50 TrackMap::const_iterator it = m_trackMap.find( jid.
bare() );
51 if( it != m_trackMap.end() )
54 const std::string&
id = m_parent->
getID();
65 TrackMap::iterator it = m_trackMap.begin();
66 while( it != m_trackMap.end() )
70 if( (*t).second == vch )
71 m_trackMap.erase( t );
77 if( !m_parent || !vch )
80 const std::string&
id = m_parent->
getID();
90 TrackMap::iterator it = m_trackMap.find( iq.
id() );
91 if( it != m_trackMap.end() )
102 (*it).second->handleVCard( iq.
from(), v );
123 m_trackMap.erase( it );
void addFeature(const std::string &feature)
StanzaError error() const
VCardManager(ClientBase *parent)
void removeIDHandler(IqHandler *ih)
An abstraction of an IQ stanza.
A virtual interface that helps requesting Jabber VCards.
void removeIqHandler(IqHandler *ih, int exttype)
void storeVCard(VCard *vcard, VCardHandler *vch)
void registerIqHandler(IqHandler *ih, int exttype)
void addExtension(const StanzaExtension *se)
void registerStanzaExtension(StanzaExtension *ext)
void cancelVCardOperations(VCardHandler *vch)
void fetchVCard(const JID &jid, VCardHandler *vch)
const std::string & bare() const
The namespace for the gloox library.
virtual Disco * disco() const
const std::string getID()
const Error * error() const
const std::string XMLNS_VCARD_TEMP
void removeFeature(const std::string &feature)
const std::string & id() const
This is the common base class for a Jabber/XMPP Client and a Jabber Component.
const StanzaExtension * findExtension(int type) const
virtual void handleIqID(const IQ &iq, int context)