rem: void KMFolderCachedImap::setSubfolderState( imapState state ) { mSubfolderState = state; if ( state == imapNoInformation && folder()->child() ) {  KMFolderNode* node; QPtrListIterator<KMFolderNode> it( *folder()->child() ); for ( ; (node = it.current()); ) { ++it; if (node->isDir()) continue; KMFolder *folder = static_cast<KMFolder*>(node); static_cast<KMFolderCachedImap*>(folder->storage())->setSubfolderState( state ); } } }
add: virtual void setSubfolderState(imapState state) { mSubfolderState = state; }
context: void KMFolderCachedImap::setSubfolderState( imapState state ){  mSubfolderState = state;  if ( state == imapNoInformation && folder()->child() )  {    // pass through to childs    KMFolderNode* node;    QPtrListIterator<KMFolderNode> it( *folder()->child() );    for ( ; (node = it.current()); )    {      ++it;      if (node->isDir()) continue;      KMFolder *folder = static_cast<KMFolder*>(node);      static_cast<KMFolderCachedImap*>(folder->storage())->setSubfolderState( state );    }  }}