[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-pim
Subject:    [Kde-pim] CalendarLocal::rawEventsForDate()
From:       Allen Winter <winter () kde ! org>
Date:       2004-11-06 13:55:27
Message-ID: 200411060855.27809.winter () kde ! org
[Download RAW message or body]

Howdy,

It seems that CalendarLocal::rawEventsForDate(QDate date,bool sorted) would be written
much cleaner as

Event::List CalendarLocal::rawEventsForDate( const QDate &qd, bool sorted )
{
  Event::List eventList = rawEvents(qd,qd,true);
  if(sorted) {
    return( sortEvents(&eventList,EventSortStartDate,SortDirectionAscending));
  } else
    return eventList;
  }
}

But if you read the logic in rawEventsForDate(QDate, bool) and rawEvents(QDate,QDate,bool inclusive)
there are subtle differences that I can't figure.   Should I be able to do the rewrite as shown above?
If not, how does the date range logic between these two methods differ?  At very least I want to be able
to write the doc for these two functions.

Regards,
Allen
_______________________________________________
kde-pim mailing list
kde-pim@kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
kde-pim home page at http://pim.kde.org/
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic