Exemplo n.º 1
0
void CPVRChannelGroups::SetSelectedGroup(CPVRChannelGroupPtr group)
{
  // update the selected group
  {
    CSingleLock lock(m_critSection);
    m_selectedGroup = group;
  }

  // update the channel number cache
  group->Renumber();
}
Exemplo n.º 2
0
void CPVRChannelGroups::SetSelectedGroup(const CPVRChannelGroupPtr &group)
{
  // update the selected group
  {
    CSingleLock lock(m_critSection);
    if (m_selectedGroup)
      m_selectedGroup->SetSelectedGroup(false);
    m_selectedGroup = group;
    group->SetSelectedGroup(true);
  }

  // update the channel number cache
  group->Renumber();
}