Logo Search packages:      
Sourcecode: pan version File versions

void DataImpl::get_group_counts ( const Quark group,
unsigned long &  setme_unread,
unsigned long &  setme_total 
) const [virtual]

Get the number of articles and unread articles that we currently have headers on-hand in the specified group. from previous xover sessions.

Implements pan::Data.

Definition at line 569 of file groups.cc.

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

{
  const ReadGroup * g (find_read_group (groupname));
  if (!g)
    unread_count = article_count = 0ul;
  else {
    unread_count = g->_unread_count;
    article_count = g->_article_count;
  }
}


Generated by  Doxygen 1.6.0   Back to index