コード例 #1
0
 virtual void handleMUCItems( MUCRoom * /*room*/, const Disco::ItemList& items )
 {
   Disco::ItemList::const_iterator it = items.begin();
   for( ; it != items.end(); ++it )
   {
     printf( "%s -- %s is an item here\n", (*it)->jid().full().c_str(), (*it)->name().c_str() );
   }
 }
コード例 #2
0
ファイル: flexoff_example.cpp プロジェクト: junction/jn-tapi
 virtual void handleFlexibleOfflineMessageHeaders( const Disco::ItemList& headers )
 {
   printf( "FlexOff: %d headers received.\n", headers.size() );
   StringList l;
   l.push_back( "Fdd" );
   l.push_back( (*(headers.begin()))->node() );
   f->fetchMessages( l );
   f->removeMessages( l );
 }