author | zautrix <zautrix> | 2004-10-28 13:13:08 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-10-28 13:13:08 (UTC) |
commit | 12068392f1d131c3f599b8854fe131dd9291a5ea (patch) (side-by-side diff) | |
tree | bd49e43036eefde4aa2bdaa9b167b6b8d0e216b0 | |
parent | 849ad402a00e2fe7bfd37c4c452b205767dab3d2 (diff) | |
download | kdepimpi-12068392f1d131c3f599b8854fe131dd9291a5ea.zip kdepimpi-12068392f1d131c3f599b8854fe131dd9291a5ea.tar.gz kdepimpi-12068392f1d131c3f599b8854fe131dd9291a5ea.tar.bz2 |
fixed todo DTM sync
-rw-r--r-- | libkcal/sharpformat.cpp | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/libkcal/sharpformat.cpp b/libkcal/sharpformat.cpp index d56eab6..b88e729 100644 --- a/libkcal/sharpformat.cpp +++ b/libkcal/sharpformat.cpp @@ -636,3 +636,15 @@ bool SharpFormat::save( Calendar *calendar) else if ( to->getID("Sharp_DTM").isEmpty() ) { // add new - command = "(echo \"" + tPrefix + eString + "\" ) | db2file todo -w -g -c " + codec+ " > "+ fileName; + + + + QString fileNameIn = "/tmp/kopitempin"; + QFile fileIn( fileNameIn ); + if (!fileIn.open( IO_WriteOnly ) ) { + return false; + } + QTextStream tsIn( &fileIn ); + tsIn.setCodec( QTextCodec::codecForName("utf8") ); + tsIn << tPrefix << eString ; + fileIn.close(); + command = "(cat /tmp/kopitempin | db2file todo -w -g -c " + codec+ ") > "+ fileName; system ( command.utf8() ); @@ -641,3 +653,2 @@ bool SharpFormat::save( Calendar *calendar) return false; - } |