示例#1
0
 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;
 }
示例#2
0
文件: adhoc.cpp 项目: dvdjg/GoapCpp
 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;
 }
示例#3
0
 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;
 }