summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--libkcal/calendar.h4
-rw-r--r--libkcal/calendarlocal.cpp4
-rw-r--r--libkcal/calendarlocal.h4
-rw-r--r--libkcal/sharpformat.cpp10
4 files changed, 11 insertions, 11 deletions
diff --git a/libkcal/calendar.h b/libkcal/calendar.h
index d59bca6..4a3223c 100644
--- a/libkcal/calendar.h
+++ b/libkcal/calendar.h
@@ -164,3 +164,3 @@ public:
virtual Event *event( const QString &UniqueStr ) = 0;
- virtual Event *event( QString, int ) = 0;
+ virtual Event *event( QString, QString ) = 0;
/**
@@ -213,3 +213,3 @@ public:
virtual Todo *todo( const QString &uid ) = 0;
- virtual Todo *todo( QString, int ) = 0;
+ virtual Todo *todo( QString, QString ) = 0;
/**
diff --git a/libkcal/calendarlocal.cpp b/libkcal/calendarlocal.cpp
index e464a77..21b4aaf 100644
--- a/libkcal/calendarlocal.cpp
+++ b/libkcal/calendarlocal.cpp
@@ -214,3 +214,3 @@ QPtrList<Todo> CalendarLocal::rawTodos()
}
-Todo *CalendarLocal::todo( QString syncProf, int id )
+Todo *CalendarLocal::todo( QString syncProf, QString id )
{
@@ -237,3 +237,3 @@ QPtrList<Event> CalendarLocal::getExternLastSyncEvents()
}
-Event *CalendarLocal::event( QString syncProf, int id )
+Event *CalendarLocal::event( QString syncProf, QString id )
{
diff --git a/libkcal/calendarlocal.h b/libkcal/calendarlocal.h
index 4728063..5b6c64c 100644
--- a/libkcal/calendarlocal.h
+++ b/libkcal/calendarlocal.h
@@ -177,4 +177,4 @@ class CalendarLocal : public Calendar
bool inclusive = false );
- Todo *todo( QString, int uid );
- Event *event( QString,int uid );
+ Todo *todo( QString, QString );
+ Event *event( QString, QString );
diff --git a/libkcal/sharpformat.cpp b/libkcal/sharpformat.cpp
index e8934bf..ebfe164 100644
--- a/libkcal/sharpformat.cpp
+++ b/libkcal/sharpformat.cpp
@@ -87,3 +87,3 @@ class SharpParser : public QObject
Event *event;
- event = existingCalendar->event( "Sharp_DTM",attList[0].toInt() );
+ event = existingCalendar->event( "Sharp_DTM",attList[0] );
if ( event )
@@ -100,4 +100,4 @@ class SharpParser : public QObject
if ( attList[7] == "1" ) {
- event->setDtStart( QDateTime(fromString( attList[17]+"000000", false ).date(),QTime(0,0,0 ) ));
- event->setDtEnd( QDateTime(fromString( attList[18]+"000000", false ).date(),QTime(0,0,0 )));
+ event->setDtStart( QDateTime(fromString( attList[17]+"T000000", false ).date(),QTime(0,0,0 ) ));
+ event->setDtEnd( QDateTime(fromString( attList[18]+"T000000", false ).date(),QTime(0,0,0 )));
event->setFloats( true );
@@ -191,3 +191,3 @@ class SharpParser : public QObject
- todo = existingCalendar->todo( "Sharp_DTM", attList[0].toInt() );
+ todo = existingCalendar->todo( "Sharp_DTM", attList[0] );
if (todo )
@@ -360,3 +360,3 @@ ulong SharpFormat::getCsum( const QStringList & attList)
#include <stdlib.h>
-#define DEBUGMODE false
+#define DEBUGMODE true
bool SharpFormat::load( Calendar *calendar, Calendar *existngCal )