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

List:       kde-pim
Subject:    [Kde-pim] [TAKE2] Cleaning up in libkcal
From:       Allen Winter <winter () kde ! org>
Date:       2004-11-01 18:19:46
Message-ID: 200411011319.46541.winter () kde ! org
[Download RAW message or body]

Second try.

Here are the events() methods from libkcal/calendar.h:
    /**
      Builds and then returns a list of all events that match for the
      date specified. useful for dayView, etc. etc.
      The calendar filter is applied.
     */
    Event::List events( const QDate &date, bool sorted = false );
    /**
       Get events, which occur on the given date.
      The calendar filter is applied.
    */
    Event::List events( const QDateTime &qdt );
    /**
      Get events in a range of dates. If inclusive is set to true, only events
      are returned, which are completely included in the range.
      The calendar filter is applied.
    */
     Event::List events( const QDate &start, const QDate &end,
                        bool inclusive = false);
    /**
       Return filtered list of all events sorted according to sortField.
    */
    virtual Event::List events( EventSortField sortField = EventSortUnsorted, SortDirection \
sortDirection = SortDirectionAscending );

I propose the following changes:
    /**
      Builds and then returns a list of all events that match for the
      date specified. useful for dayView, etc. etc.
      The calendar filter is applied.
     */
    Event::List events( const QDate &date, 
                                  EventSortField sortField = EventSortUnsorted, SortDirection \
sortDirection = SortDirectionAscending );  /**
       Get events, which occur on the given date.
      The calendar filter is applied.
    */
    Event::List events( const QDateTime &qdt,
                                  EventSortField sortField = EventSortUnsorted, SortDirection \
sortDirection = SortDirectionAscending );   /**
      Get events in a range of dates. If inclusive is set to true, only events
      are returned, which are completely included in the range.
      The calendar filter is applied.
    */
     Event::List events( const QDate &start, const QDate &end,
                                  bool inclusive = false,
                                  EventSortField sortField = EventSortUnsorted, SortDirection \
sortDirection = SortDirectionAscending );  /**
       Return filtered list of all events sorted according to sortField.
    */
    virtual Event::List events( EventSortField sortField = EventSortUnsorted, SortDirection \
sortDirection = SortDirectionAscending );

And do the same type of thing for rawEvents().

OK?

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