From 3ebd85e83e6f9d4ac59ce1828548f7236e2b1af0 Mon Sep 17 00:00:00 2001 From: zautrix Date: Mon, 02 Aug 2004 00:09:04 +0000 Subject: More sync hacking --- (limited to 'libkcal/calendarlocal.cpp') diff --git a/libkcal/calendarlocal.cpp b/libkcal/calendarlocal.cpp index 3c572f0..09ce9f0 100644 --- a/libkcal/calendarlocal.cpp +++ b/libkcal/calendarlocal.cpp @@ -222,6 +222,19 @@ Todo *CalendarLocal::todo( int id ) return 0; } +QPtrList CalendarLocal::getExternLastSyncEvents() +{ + QPtrList el; + Event *todo; + for ( todo = mEventList.first(); todo; todo = mEventList.next() ) { + if ( todo->uid().left( 15 ) == QString("last-syncEvent-") ) + if ( todo->summary().left(3) == "E: " ) + el.append( todo ); + } + + return el; + +} Event *CalendarLocal::event( int id ) { Event *todo; @@ -320,7 +333,6 @@ QString CalendarLocal:: getAlarmNotification() ret+= "\n"+mNextAlarmEventDateTimeString; return ret; } - void CalendarLocal::registerAlarm() { mLastAlarmNotificationString = getAlarmNotification(); -- cgit v0.9.0.2