rem: bool KAlarmEvent::setRecurAnnualByDate(Recurrence& recurrence, int freq, const QValueList<int>& months, int count, const QDate& end) { if (count < -1) return false; if (count) recurrence.setYearly(Recurrence::rYearlyMonth, freq, count); else if (end.isValid()) recurrence.setYearly(Recurrence::rYearlyMonth, freq, end); else return false; for (QValueListConstIterator<int> it = months.begin();  it != months.end();  ++it) recurrence.addYearlyNum(*it); return true; }
add: void               setRecurAnnualByDate(int freq, const QValueList<int>& months, int count)         { setRecurAnnualByDate(freq, months, count, QDate()); }
context: bool KAlarmEvent::setRecurAnnualByDate(Recurrence& recurrence, int freq, const QValueList<int>& months, int count, const QDate& end){	if (count < -1)		return false;	if (count)		recurrence.setYearly(Recurrence::rYearlyMonth, freq, count);	else if (end.isValid())		recurrence.setYearly(Recurrence::rYearlyMonth, freq, end);	else		return false;	for (QValueListConstIterator<int> it = months.begin();  it != months.end();  ++it)		recurrence.addYearlyNum(*it);	return true;}