virtual Disco::IdentityList handleDiscoNodeIdentities( const JID&, const std::string& ) { Disco::IdentityList dil; if( m_test == 6 ) dil.push_back( new Disco::Identity( "6cat", "6type", "6name" ) ); return dil; }
Disco::IdentityList Adhoc::handleDiscoNodeIdentities( const JID& /*from*/, const std::string& node ) { Disco::IdentityList l; StringMap::const_iterator it = m_items.find( node ); l.push_back( new Disco::Identity( "automation", node == XMLNS_ADHOC_COMMANDS ? "command-list" : "command-node", it == m_items.end() ? "Ad-Hoc Commands" : (*it).second ) ); return l; }
Disco::IdentityList Capabilities::handleDiscoNodeIdentities( const JID&, const std::string& ) { const Disco::IdentityList& il = m_disco->identities(); Disco::IdentityList ret; Disco::IdentityList::const_iterator it = il.begin(); for( ; it != il.end(); ++it ) { ret.push_back( new Disco::Identity( *(*it) ) ); } return ret; }