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

List:       kde-commits
Subject:    branches/KDE/3.5/kdepim/libkcal
From:       Reinhold Kainhofer <reinhold () kainhofer ! com>
Date:       2005-07-30 13:29:49
Message-ID: 1122730189.943962.15617.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 440428 by kainhofe:

-) Use the Observer pattern (instead of an explicit pointer to Incidence*) to inform \
the owner incidence of the recurrence object of changes. This makes the recurrence \
class completely standalong from the rest of libkcal. It should now also be possible \
                to simply copy a recurrence object (the observer is *NOT* copied). 
-) Add methods Incidence::startDateTimesForDate and \
Incidence::startDateTimesForDateTime, which return the list of all start times of all \
recurrences that overlap with the given date or date/time. This makes it easy to \
obtain e.g. all events (and the corresponding recurring start times) that need to be \
                shown on one day in the agenda view or printed in the daily print \
                style.
-) add a template qSortUnique, which calls qHeapSort and then removes all duplicates \
from the list. This is needed in the recurrence code so that each start time occurs \
at most once.




 M  +2 -2      Makefile.am  
 M  +3 -0      event.h  
 M  +122 -5    incidence.cpp  
 M  +34 -1     incidence.h  
 M  +55 -29    recurrence.cpp  
 M  +30 -13    recurrence.h  
 M  +24 -10    recurrencerule.cpp  
 M  +37 -3     recurrencerule.h  
 M  +4 -0      todo.h  


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

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