summaryrefslogtreecommitdiff
path: root/libopie2
authorzecke <zecke>2003-05-07 18:10:56 (UTC)
committer zecke <zecke>2003-05-07 18:10:56 (UTC)
commit3cee83b6e2931768fb0d0989b2235800914888a7 (patch) (unidiff)
treed99a7565fdb5be62cf739d82ec5de50c2bbf95e9 /libopie2
parent94371938792c70a40cdb75e37c69020438d450c9 (diff)
downloadopie-3cee83b6e2931768fb0d0989b2235800914888a7.zip
opie-3cee83b6e2931768fb0d0989b2235800914888a7.tar.gz
opie-3cee83b6e2931768fb0d0989b2235800914888a7.tar.bz2
save the state
Diffstat (limited to 'libopie2') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiepim/backend/otodoaccessxml.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/libopie2/opiepim/backend/otodoaccessxml.cpp b/libopie2/opiepim/backend/otodoaccessxml.cpp
index a8e1503..285d2b8 100644
--- a/libopie2/opiepim/backend/otodoaccessxml.cpp
+++ b/libopie2/opiepim/backend/otodoaccessxml.cpp
@@ -17,4 +17,5 @@
17 17
18#include "oconversion.h" 18#include "oconversion.h"
19#include "opimstate.h"
19#include "otimezone.h" 20#include "otimezone.h"
20#include "orecur.h" 21#include "orecur.h"
@@ -423,4 +424,7 @@ void OTodoAccessXML::todo( QAsciiDict<int>* dict, OTodo& ev,
423 ev.setStartDate( OConversion::dateFromString( val ) ); 424 ev.setStartDate( OConversion::dateFromString( val ) );
424 break; 425 break;
426 case OTodo::State:
427 ev.setState( val.toInt() );
428 break;
425 case OTodo::CrossReference: 429 case OTodo::CrossReference:
426 { 430 {
@@ -516,4 +520,6 @@ QString OTodoAccessXML::toString( const OTodo& ev )const {
516 if ( ev.hasCompletedDate() ) 520 if ( ev.hasCompletedDate() )
517 str += "CompletedDate=\""+ OConversion::dateToString( ev.completedDate() ) +"\" "; 521 str += "CompletedDate=\""+ OConversion::dateToString( ev.completedDate() ) +"\" ";
522 if ( ev.hasState() )
523 str += "State=\""+QString::number( ev.state().state() )+"\" ";
518 524
519 525