summaryrefslogtreecommitdiff
path: root/libopie/pim
Side-by-side diff
Diffstat (limited to 'libopie/pim') (more/less context) (show whitespace changes)
-rw-r--r--libopie/pim/otodoaccessxml.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/libopie/pim/otodoaccessxml.cpp b/libopie/pim/otodoaccessxml.cpp
index a8e1503..285d2b8 100644
--- a/libopie/pim/otodoaccessxml.cpp
+++ b/libopie/pim/otodoaccessxml.cpp
@@ -17,4 +17,5 @@
#include "oconversion.h"
+#include "opimstate.h"
#include "otimezone.h"
#include "orecur.h"
@@ -423,4 +424,7 @@ void OTodoAccessXML::todo( QAsciiDict<int>* dict, OTodo& ev,
ev.setStartDate( OConversion::dateFromString( val ) );
break;
+ case OTodo::State:
+ ev.setState( val.toInt() );
+ break;
case OTodo::CrossReference:
{
@@ -516,4 +520,6 @@ QString OTodoAccessXML::toString( const OTodo& ev )const {
if ( ev.hasCompletedDate() )
str += "CompletedDate=\""+ OConversion::dateToString( ev.completedDate() ) +"\" ";
+ if ( ev.hasState() )
+ str += "State=\""+QString::number( ev.state().state() )+"\" ";