-rw-r--r-- | libkcal/sharpformat.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/libkcal/sharpformat.cpp b/libkcal/sharpformat.cpp index d39d2dd..605a54d 100644 --- a/libkcal/sharpformat.cpp +++ b/libkcal/sharpformat.cpp @@ -87,3 +87,3 @@ class SharpParser : public QObject Event *event; - event = existingCalendar->event( attList[0].toInt() ); + event = existingCalendar->event( "Sharp_DTM",attList[0].toInt() ); if ( event ) @@ -92,3 +92,3 @@ class SharpParser : public QObject event = new Event; - event->setZaurusId( attList[0].toInt() ); + event->setID("Sharp_DTM", attList[0].toInt() ); event->setZaurusUid( cSum ); @@ -191,3 +191,3 @@ class SharpParser : public QObject - todo = existingCalendar->todo( attList[0].toInt() ); + todo = existingCalendar->todo( "Sharp_DTM", attList[0].toInt() ); if (todo ) @@ -203,3 +203,3 @@ class SharpParser : public QObject - todo->setZaurusId( attList[0].toInt() ); + todo->setID( "Sharp_DTM", attList[0].toInt() ); todo->setZaurusUid( cSum ); @@ -468,3 +468,3 @@ int SharpFormat::getNumFromRecord( QString answer, Incidence* inc ) retval = newnum; - inc->setZaurusId( newnum ); + inc->setID( "Sharp_DTM",newnum ); inc->setZaurusUid( getCsum( templist ) ); @@ -522,3 +522,3 @@ bool SharpFormat::save( Calendar *calendar) } - else if ( ev->zaurusId() == -1 ) { // add new + else if ( ev->getID("Sharp_DTM") == -1 ) { // add new command = "(echo \"" + ePrefix + eString + "\" ) | db2file datebook -w -g -c " + codec+ " > "+ fileName; @@ -608,3 +608,3 @@ bool SharpFormat::save( Calendar *calendar) } - else if ( to->zaurusId() == -1 ) { // add new + else if ( to->getID("Sharp_DTM") == -1 ) { // add new command = "(echo \"" + tPrefix + eString + "\" ) | db2file todo -w -g -c " + codec+ " > "+ fileName; @@ -698,3 +698,3 @@ QString SharpFormat::getEventString( Event* event ) QStringList list; - list.append( QString::number(event->zaurusId() ) ); + list.append( QString::number(event->getID("Sharp_DTM") ) ); list.append( event->categories().join(",") ); @@ -862,3 +862,3 @@ QString SharpFormat::getTodoString( Todo* todo ) QStringList list; - list.append( QString::number( todo->zaurusId() ) ); + list.append( QString::number( todo->getID("Sharp_DTM") ) ); list.append( todo->categories().join(",") ); |