Logo Search packages:      
Sourcecode: pan version File versions

void DataImpl::mark_group_read ( const Quark group  )  [virtual]

This will call listeners' on_group_counts().

Implements pan::Data.

Definition at line 549 of file groups.cc.

References pan::DataImpl::ReadGroup::_servers, and pan::DataImpl::ReadGroup::_unread_count.

{
  ReadGroup * rg (find_read_group (groupname));
  if (rg != 0) {
    foreach (ReadGroup::servers_t, rg->_servers, it) {
      //std::cerr << LINE_ID << " marking read range [0..." << it->second._xover_high << "] in " << get_server_address(it->first) << ']' << std::endl;
      it->second._read.mark_range (0, it->second._xover_high, true);
    }
    rg->_unread_count = 0;
    save_group_xovers (*_data_io);
    fire_group_read (groupname);
  }
}


Generated by  Doxygen 1.6.0   Back to index