-rw-r--r-- | libkcal/calendarlocal.cpp | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/libkcal/calendarlocal.cpp b/libkcal/calendarlocal.cpp index ce3cd09..cb52b7c 100644 --- a/libkcal/calendarlocal.cpp +++ b/libkcal/calendarlocal.cpp | |||
@@ -24,3 +24,3 @@ | |||
24 | #include <qstring.h> | 24 | #include <qstring.h> |
25 | #include <qptrlist.h> | 25 | #include <q3ptrlist.h> |
26 | 26 | ||
@@ -194,3 +194,3 @@ bool CalendarLocal::mergeCalendar( Calendar* remote ) | |||
194 | // if not in local, add it to default calendar | 194 | // if not in local, add it to default calendar |
195 | QPtrList<Incidence> localInc = rawIncidences(); | 195 | Q3PtrList<Incidence> localInc = rawIncidences(); |
196 | Incidence* inL = localInc.first(); | 196 | Incidence* inL = localInc.first(); |
@@ -202,3 +202,3 @@ bool CalendarLocal::mergeCalendar( Calendar* remote ) | |||
202 | } | 202 | } |
203 | QPtrList<Incidence> er = remote->rawIncidences(); | 203 | Q3PtrList<Incidence> er = remote->rawIncidences(); |
204 | Incidence* inR = er.first(); | 204 | Incidence* inR = er.first(); |
@@ -261,5 +261,5 @@ void CalendarLocal::addCalendar( Calendar* cal ) | |||
261 | setSyncEventsEnabled(); | 261 | setSyncEventsEnabled(); |
262 | QPtrList<Incidence> incList; | 262 | Q3PtrList<Incidence> incList; |
263 | { | 263 | { |
264 | QPtrList<Event> EventList = cal->rawEvents(); | 264 | Q3PtrList<Event> EventList = cal->rawEvents(); |
265 | Event * ev = EventList.first(); | 265 | Event * ev = EventList.first(); |
@@ -281,3 +281,3 @@ void CalendarLocal::addCalendar( Calendar* cal ) | |||
281 | 281 | ||
282 | QPtrList<Todo> TodoList = cal->rawTodos(); | 282 | Q3PtrList<Todo> TodoList = cal->rawTodos(); |
283 | Todo * ev = TodoList.first(); | 283 | Todo * ev = TodoList.first(); |
@@ -301,3 +301,3 @@ void CalendarLocal::addCalendar( Calendar* cal ) | |||
301 | { | 301 | { |
302 | QPtrList<Journal> JournalList = cal->journals(); | 302 | Q3PtrList<Journal> JournalList = cal->journals(); |
303 | Journal * ev = JournalList.first(); | 303 | Journal * ev = JournalList.first(); |
@@ -483,5 +483,5 @@ void CalendarLocal::deleteTodo( Todo *todo ) | |||
483 | 483 | ||
484 | QPtrList<Todo> CalendarLocal::rawTodos() | 484 | Q3PtrList<Todo> CalendarLocal::rawTodos() |
485 | { | 485 | { |
486 | QPtrList<Todo> el; | 486 | Q3PtrList<Todo> el; |
487 | for ( Todo *it = mTodoList.first(); it; it = mTodoList.next() ) | 487 | for ( Todo *it = mTodoList.first(); it; it = mTodoList.next() ) |
@@ -501,3 +501,3 @@ void CalendarLocal::removeSyncInfo( QString syncProfile) | |||
501 | { | 501 | { |
502 | QPtrList<Incidence> all = rawIncidences() ; | 502 | Q3PtrList<Incidence> all = rawIncidences() ; |
503 | Incidence *inc; | 503 | Incidence *inc; |
@@ -507,3 +507,3 @@ void CalendarLocal::removeSyncInfo( QString syncProfile) | |||
507 | if ( syncProfile.isEmpty() ) { | 507 | if ( syncProfile.isEmpty() ) { |
508 | QPtrList<Event> el; | 508 | Q3PtrList<Event> el; |
509 | Event *todo; | 509 | Event *todo; |
@@ -522,5 +522,5 @@ void CalendarLocal::removeSyncInfo( QString syncProfile) | |||
522 | } | 522 | } |
523 | QPtrList<Event> CalendarLocal::getExternLastSyncEvents() | 523 | Q3PtrList<Event> CalendarLocal::getExternLastSyncEvents() |
524 | { | 524 | { |
525 | QPtrList<Event> el; | 525 | Q3PtrList<Event> el; |
526 | Event *todo; | 526 | Event *todo; |
@@ -687,5 +687,5 @@ void CalendarLocal::deRegisterAlarm() | |||
687 | 687 | ||
688 | QPtrList<Todo> CalendarLocal::todos( const QDate &date ) | 688 | Q3PtrList<Todo> CalendarLocal::todos( const QDate &date ) |
689 | { | 689 | { |
690 | QPtrList<Todo> todos; | 690 | Q3PtrList<Todo> todos; |
691 | 691 | ||
@@ -788,3 +788,3 @@ void CalendarLocal::appendAlarms( Alarm::List &alarms, Incidence *incidence, | |||
788 | { | 788 | { |
789 | QPtrList<Alarm> alarmList = incidence->alarms(); | 789 | Q3PtrList<Alarm> alarmList = incidence->alarms(); |
790 | Alarm *alarm; | 790 | Alarm *alarm; |
@@ -807,3 +807,3 @@ void CalendarLocal::appendRecurringAlarms( Alarm::List &alarms, | |||
807 | 807 | ||
808 | QPtrList<Alarm> alarmList = incidence->alarms(); | 808 | Q3PtrList<Alarm> alarmList = incidence->alarms(); |
809 | Alarm *alarm; | 809 | Alarm *alarm; |
@@ -846,5 +846,5 @@ void CalendarLocal::insertEvent( Event *event ) | |||
846 | 846 | ||
847 | QPtrList<Event> CalendarLocal::rawEventsForDate( const QDate &qd, bool sorted ) | 847 | Q3PtrList<Event> CalendarLocal::rawEventsForDate( const QDate &qd, bool sorted ) |
848 | { | 848 | { |
849 | QPtrList<Event> eventList; | 849 | Q3PtrList<Event> eventList; |
850 | 850 | ||
@@ -880,3 +880,3 @@ QPtrList<Event> CalendarLocal::rawEventsForDate( const QDate &qd, bool sorted ) | |||
880 | // now, we have to sort it based on dtStart.time() | 880 | // now, we have to sort it based on dtStart.time() |
881 | QPtrList<Event> eventListSorted; | 881 | Q3PtrList<Event> eventListSorted; |
882 | Event *sortEvent; | 882 | Event *sortEvent; |
@@ -896,3 +896,3 @@ QPtrList<Event> CalendarLocal::rawEventsForDate( const QDate &qd, bool sorted ) | |||
896 | 896 | ||
897 | QPtrList<Event> CalendarLocal::rawEvents( const QDate &start, const QDate &end, | 897 | Q3PtrList<Event> CalendarLocal::rawEvents( const QDate &start, const QDate &end, |
898 | bool inclusive ) | 898 | bool inclusive ) |
@@ -901,3 +901,3 @@ QPtrList<Event> CalendarLocal::rawEvents( const QDate &start, const QDate &end, | |||
901 | 901 | ||
902 | QPtrList<Event> eventList; | 902 | Q3PtrList<Event> eventList; |
903 | 903 | ||
@@ -925,3 +925,3 @@ QPtrList<Event> CalendarLocal::rawEvents( const QDate &start, const QDate &end, | |||
925 | bool founOne; | 925 | bool founOne; |
926 | QDate next = event->getNextOccurence( start, &founOne ).date(); | 926 | QDate next = event->getNextOccurence( (QDateTime)start, &founOne ).date(); |
927 | if ( founOne ) { | 927 | if ( founOne ) { |
@@ -974,3 +974,3 @@ QPtrList<Event> CalendarLocal::rawEvents( const QDate &start, const QDate &end, | |||
974 | 974 | ||
975 | QPtrList<Event> CalendarLocal::rawEventsForDate( const QDateTime &qdt ) | 975 | Q3PtrList<Event> CalendarLocal::rawEventsForDate( const QDateTime &qdt ) |
976 | { | 976 | { |
@@ -979,5 +979,5 @@ QPtrList<Event> CalendarLocal::rawEventsForDate( const QDateTime &qdt ) | |||
979 | 979 | ||
980 | QPtrList<Event> CalendarLocal::rawEvents() | 980 | Q3PtrList<Event> CalendarLocal::rawEvents() |
981 | { | 981 | { |
982 | QPtrList<Event> el; | 982 | Q3PtrList<Event> el; |
983 | for ( Event *it = mEventList.first(); it; it = mEventList.next() ) | 983 | for ( Event *it = mEventList.first(); it; it = mEventList.next() ) |
@@ -1008,5 +1008,5 @@ void CalendarLocal::deleteJournal( Journal *journal ) | |||
1008 | 1008 | ||
1009 | QPtrList<Journal> CalendarLocal::journals4Date( const QDate & date ) | 1009 | Q3PtrList<Journal> CalendarLocal::journals4Date( const QDate & date ) |
1010 | { | 1010 | { |
1011 | QPtrList<Journal> el; | 1011 | Q3PtrList<Journal> el; |
1012 | for ( Journal *it = mJournalList.first(); it; it = mJournalList.next() ) | 1012 | for ( Journal *it = mJournalList.first(); it; it = mJournalList.next() ) |
@@ -1042,5 +1042,5 @@ Journal *CalendarLocal::journal( const QString &uid ) | |||
1042 | 1042 | ||
1043 | QPtrList<Journal> CalendarLocal::journals() | 1043 | Q3PtrList<Journal> CalendarLocal::journals() |
1044 | { | 1044 | { |
1045 | QPtrList<Journal> el; | 1045 | Q3PtrList<Journal> el; |
1046 | for ( Journal *it = mJournalList.first(); it; it = mJournalList.next() ) | 1046 | for ( Journal *it = mJournalList.first(); it; it = mJournalList.next() ) |
@@ -1053,3 +1053,3 @@ void CalendarLocal::setCalendarRemove( int id ) | |||
1053 | { | 1053 | { |
1054 | QPtrList<Event> EventList = mEventList; | 1054 | Q3PtrList<Event> EventList = mEventList; |
1055 | Event * ev = EventList.first(); | 1055 | Event * ev = EventList.first(); |
@@ -1063,3 +1063,3 @@ void CalendarLocal::setCalendarRemove( int id ) | |||
1063 | 1063 | ||
1064 | QPtrList<Todo> TodoList = mTodoList; | 1064 | Q3PtrList<Todo> TodoList = mTodoList; |
1065 | Todo * ev = TodoList.first(); | 1065 | Todo * ev = TodoList.first(); |
@@ -1072,3 +1072,3 @@ void CalendarLocal::setCalendarRemove( int id ) | |||
1072 | { | 1072 | { |
1073 | QPtrList<Journal> JournalList = mJournalList; | 1073 | Q3PtrList<Journal> JournalList = mJournalList; |
1074 | Journal * ev = JournalList.first(); | 1074 | Journal * ev = JournalList.first(); |