14 #include "rosterprovider.h"
15 #include "presencemanager.h"
16 #include "taghandler.h"
19 #include <gloox/tag.h>
28 :
Plugin( sm, router ), m_handler( rp )
38 static const std::string filter =
"/presence";
42 void PresenceManager::getRoster(
const gloox::JID& jid )
47 Roster::const_iterator it = rm.begin();
48 for( ; it != rm.end(); ++it )
50 switch( (*it).second )
69 if( !tag || !m_handler )
72 const std::string& type = tag->findAttribute( gloox::TYPE );
73 if( type ==
"subscribe" || type ==
"unsubscribe"
74 || type ==
"subscribed" || type ==
"unsubscribed" )
77 printf(
"received a presence tag!!!!!!!!!! %s\n", tag->xml().c_str() );