Diffstat (limited to 'libopie/pim/otodoaccessxml.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie/pim/otodoaccessxml.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libopie/pim/otodoaccessxml.cpp b/libopie/pim/otodoaccessxml.cpp index f688735..4a5cb33 100644 --- a/libopie/pim/otodoaccessxml.cpp +++ b/libopie/pim/otodoaccessxml.cpp | |||
@@ -547,49 +547,49 @@ QString OTodoAccessXML::toString( const OTodo& ev )const { | |||
547 | * possible you can set custom fields | 547 | * possible you can set custom fields |
548 | * but don' iterate over the list | 548 | * but don' iterate over the list |
549 | * I may do #define private protected | 549 | * I may do #define private protected |
550 | * for this case - cough --zecke | 550 | * for this case - cough --zecke |
551 | */ | 551 | */ |
552 | /* | 552 | /* |
553 | QMap<QString, QString> extras = ev.extras(); | 553 | QMap<QString, QString> extras = ev.extras(); |
554 | QMap<QString, QString>::Iterator extIt; | 554 | QMap<QString, QString>::Iterator extIt; |
555 | for (extIt = extras.begin(); extIt != extras.end(); ++extIt ) | 555 | for (extIt = extras.begin(); extIt != extras.end(); ++extIt ) |
556 | str += extIt.key() + "=\"" + extIt.data() + "\" "; | 556 | str += extIt.key() + "=\"" + extIt.data() + "\" "; |
557 | */ | 557 | */ |
558 | // cross refernce | 558 | // cross refernce |
559 | if ( ev.hasRecurrence() ) { | 559 | if ( ev.hasRecurrence() ) { |
560 | str += ev.recurrence().toString(); | 560 | str += ev.recurrence().toString(); |
561 | } | 561 | } |
562 | if ( ev.hasStartDate() ) | 562 | if ( ev.hasStartDate() ) |
563 | str += "StartDate=\""+ OConversion::dateToString( ev.startDate() ) +"\" "; | 563 | str += "StartDate=\""+ OConversion::dateToString( ev.startDate() ) +"\" "; |
564 | if ( ev.hasCompletedDate() ) | 564 | if ( ev.hasCompletedDate() ) |
565 | str += "CompletedDate=\""+ OConversion::dateToString( ev.completedDate() ) +"\" "; | 565 | str += "CompletedDate=\""+ OConversion::dateToString( ev.completedDate() ) +"\" "; |
566 | if ( ev.hasState() ) | 566 | if ( ev.hasState() ) |
567 | str += "State=\""+QString::number( ev.state().state() )+"\" "; | 567 | str += "State=\""+QString::number( ev.state().state() )+"\" "; |
568 | 568 | ||
569 | /* | 569 | /* |
570 | * save reminders and notifiers! | 570 | * save reminders and notifiers! |
571 | * DATE_TIME:DURATION:SOUND:NOT_USED_YET;OTHER_DATE_TIME:OTHER:DURATION:SOUND:.... | 571 | * DATE_TIME:DURATION:SOUND:NOT_USED_YET;OTHER_DATE_TIME:OTHER_DURATION:SOUND:.... |
572 | */ | 572 | */ |
573 | if ( ev.hasNotifiers() ) { | 573 | if ( ev.hasNotifiers() ) { |
574 | OPimNotifyManager manager = ev.notifiers(); | 574 | OPimNotifyManager manager = ev.notifiers(); |
575 | OPimNotifyManager::Alarms alarms = manager.alarms(); | 575 | OPimNotifyManager::Alarms alarms = manager.alarms(); |
576 | if (!alarms.isEmpty() ) { | 576 | if (!alarms.isEmpty() ) { |
577 | QStringList als; | 577 | QStringList als; |
578 | OPimNotifyManager::Alarms::Iterator it = alarms.begin(); | 578 | OPimNotifyManager::Alarms::Iterator it = alarms.begin(); |
579 | for ( ; it != alarms.end(); ++it ) { | 579 | for ( ; it != alarms.end(); ++it ) { |
580 | /* only if time is valid */ | 580 | /* only if time is valid */ |
581 | if ( (*it).dateTime().isValid() ) { | 581 | if ( (*it).dateTime().isValid() ) { |
582 | als << OConversion::dateTimeToString( (*it).dateTime() ) | 582 | als << OConversion::dateTimeToString( (*it).dateTime() ) |
583 | + ":" + QString::number( (*it).duration() ) | 583 | + ":" + QString::number( (*it).duration() ) |
584 | + ":" + QString::number( (*it).sound() ) | 584 | + ":" + QString::number( (*it).sound() ) |
585 | + ":"; | 585 | + ":"; |
586 | } | 586 | } |
587 | } | 587 | } |
588 | // now write the list | 588 | // now write the list |
589 | qWarning("als: %s", als.join("____________").latin1() ); | 589 | qWarning("als: %s", als.join("____________").latin1() ); |
590 | str += "Alarms=\""+als.join(";") +"\" "; | 590 | str += "Alarms=\""+als.join(";") +"\" "; |
591 | } | 591 | } |
592 | 592 | ||
593 | /* | 593 | /* |
594 | * now the same for reminders but more easy. We just save the uid of the OEvent. | 594 | * now the same for reminders but more easy. We just save the uid of the OEvent. |
595 | */ | 595 | */ |