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 );
This is the common base class for a Jabber/XMPP Client and a Jabber Component.
const std::string getID()
virtual Disco * disco() const
void removeIqHandler(IqHandler *ih, int exttype)
void removeIDHandler(IqHandler *ih)
void registerIqHandler(IqHandler *ih, int exttype)
void registerStanzaExtension(StanzaExtension *ext)
void removeFeature(const std::string &feature)
void addFeature(const std::string &feature)
StanzaError error() const
An abstraction of an IQ stanza.
const std::string & bare() const
void addExtension(const StanzaExtension *se)
const Error * error() const
const std::string & id() const
const StanzaExtension * findExtension(int type) const
A virtual interface that helps requesting Jabber VCards.
virtual void handleIqID(const IQ &iq, int context)
void fetchVCard(const JID &jid, VCardHandler *vch)
void storeVCard(VCard *vcard, VCardHandler *vch)
void cancelVCardOperations(VCardHandler *vch)
VCardManager(ClientBase *parent)
The namespace for the gloox library.
const std::string XMLNS_VCARD_TEMP