author | zecke <zecke> | 2003-05-07 16:03:03 (UTC) |
---|---|---|
committer | zecke <zecke> | 2003-05-07 16:03:03 (UTC) |
commit | 7c8110d568ac60517916114ac5fc4e850156d4e5 (patch) (side-by-side diff) | |
tree | cb4ffab444f078f013de7edd3d180e2e80b23ffa /libopie | |
parent | accd04a63230ac46978f77deae1b0d1419618730 (diff) | |
download | opie-7c8110d568ac60517916114ac5fc4e850156d4e5.zip opie-7c8110d568ac60517916114ac5fc4e850156d4e5.tar.gz opie-7c8110d568ac60517916114ac5fc4e850156d4e5.tar.bz2 |
Save recurrence
-rw-r--r-- | libopie/pim/otodoaccessxml.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libopie/pim/otodoaccessxml.cpp b/libopie/pim/otodoaccessxml.cpp index 55f268b..c0d8dfc 100644 --- a/libopie/pim/otodoaccessxml.cpp +++ b/libopie/pim/otodoaccessxml.cpp @@ -2,32 +2,33 @@ #include <fcntl.h> #include <sys/mman.h> #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> #include <qfile.h> #include <qvector.h> #include <qpe/global.h> #include <qpe/stringutil.h> #include <qpe/timeconversion.h> +#include "orecur.h" #include "otodoaccessxml.h" namespace { // FROM TT again char *strstrlen(const char *haystack, int hLen, const char* needle, int nLen) { char needleChar; char haystackChar; if (!needle || !haystack || !hLen || !nLen) return 0; const char* hsearch = haystack; if ((needleChar = *needle++) != 0) { nLen--; //(to make up for needle++) do { @@ -421,33 +422,34 @@ QString OTodoAccessXML::toString( const OTodo& ev )const { str += "Uid=\"" + QString::number( ev.uid() ) + "\" "; // append the extra options /* FIXME Qtopia::Record this is currently not * possible you can set custom fields * but don' iterate over the list * I may do #define private protected * for this case - cough --zecke */ /* QMap<QString, QString> extras = ev.extras(); QMap<QString, QString>::Iterator extIt; for (extIt = extras.begin(); extIt != extras.end(); ++extIt ) str += extIt.key() + "=\"" + extIt.data() + "\" "; */ // cross refernce - + if ( ev.hasRecurrence() ) + str += ev.recurrence().toString(); return str; } QString OTodoAccessXML::toString( const QArray<int>& ints ) const { return Qtopia::Record::idsToString( ints ); } /* internal class for sorting * * Inspired by todoxmlio.cpp from TT */ struct OTodoXMLContainer { OTodo todo; }; |