| | 320 | void CCalendarView::OnCheckCalendar() |
| | 321 | { |
| | 322 | // If no selection, check all subscribed calendars |
| | 323 | if (mSingleCalendar) |
| | 324 | { |
| | 325 | calstore::CCalendarStoreNode* node = const_cast<calstore::CCalendarStoreNode*>(calstore::CCalendarStoreManager::sCalendarStoreManager->GetNode(GetCalendar())); |
| | 326 | node->GetProtocol()->CheckCalendar(*node, *node->GetCalendar()); |
| | 327 | } |
| | 328 | else |
| | 329 | { |
| | 330 | const iCal::CICalendarList& cals = calstore::CCalendarStoreManager::sCalendarStoreManager->GetSubscribedCalendars(); |
| | 331 | for(iCal::CICalendarList::const_iterator iter = cals.begin(); iter != cals.end(); iter++) |
| | 332 | { |
| | 333 | calstore::CCalendarStoreNode* node = const_cast<calstore::CCalendarStoreNode*>(calstore::CCalendarStoreManager::sCalendarStoreManager->GetNode(*iter)); |
| | 334 | node->GetProtocol()->CheckCalendar(*node, *node->GetCalendar()); |
| | 335 | } |
| | 336 | } |
| | 337 | |
| | 338 | // Reset all views |
| | 339 | CCalendarView::ResetAll(); |
| | 340 | } |