author | zecke <zecke> | 2003-05-07 18:10:56 (UTC) |
---|---|---|
committer | zecke <zecke> | 2003-05-07 18:10:56 (UTC) |
commit | 3cee83b6e2931768fb0d0989b2235800914888a7 (patch) (side-by-side diff) | |
tree | d99a7565fdb5be62cf739d82ec5de50c2bbf95e9 /libopie/pim | |
parent | 94371938792c70a40cdb75e37c69020438d450c9 (diff) | |
download | opie-3cee83b6e2931768fb0d0989b2235800914888a7.zip opie-3cee83b6e2931768fb0d0989b2235800914888a7.tar.gz opie-3cee83b6e2931768fb0d0989b2235800914888a7.tar.bz2 |
save the state
-rw-r--r-- | libopie/pim/otodoaccessxml.cpp | 6 |
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 @@ -18,2 +18,3 @@ #include "oconversion.h" +#include "opimstate.h" #include "otimezone.h" @@ -424,2 +425,5 @@ void OTodoAccessXML::todo( QAsciiDict<int>* dict, OTodo& ev, break; + case OTodo::State: + ev.setState( val.toInt() ); + break; case OTodo::CrossReference: @@ -517,2 +521,4 @@ QString OTodoAccessXML::toString( const OTodo& ev )const { str += "CompletedDate=\""+ OConversion::dateToString( ev.completedDate() ) +"\" "; + if ( ev.hasState() ) + str += "State=\""+QString::number( ev.state().state() )+"\" "; |