rem: bool KAlarmEvent::setRecurMonthlyByDate(Recurrence& recurrence, int freq, const QPtrList<int>& days, int count, const QDate& end) { if (count < -1) return false; if (count) recurrence.setMonthly(Recurrence::rMonthlyDay, freq, count); else if (end.isValid()) recurrence.setMonthly(Recurrence::rMonthlyDay, freq, end); else return false; for (QPtrListIterator<int> it(days);  it.current();  ++it) recurrence.addMonthlyDay(*it.current()); return true; }
add: void               setRecurMonthlyByDate(int freq, const QValueList<int>& days, const QDate& end)   { setRecurMonthlyByDate(freq, days, 0, end); }
context: bool KAlarmEvent::setRecurMonthlyByDate(Recurrence& recurrence, int freq, const QPtrList<int>& days, int count, const QDate& end){	if (count < -1)		return false;	if (count)		recurrence.setMonthly(Recurrence::rMonthlyDay, freq, count);	else if (end.isValid())		recurrence.setMonthly(Recurrence::rMonthlyDay, freq, end);	else		return false;	for (QPtrListIterator<int> it(days);  it.current();  ++it)		recurrence.addMonthlyDay(*it.current());	return true;}