summaryrefslogtreecommitdiff
path: root/libopie2/opiepim/backend
authorzecke <zecke>2003-02-22 18:51:44 (UTC)
committer zecke <zecke>2003-02-22 18:51:44 (UTC)
commit7b04887e382227c80c8985495f01dad2b1890719 (patch) (side-by-side diff)
tree31db88fd0519c7f03ff05560f21ba69256765d5e /libopie2/opiepim/backend
parent2424bcd292444b3a03c9b92dbc7f5b392c355755 (diff)
downloadopie-7b04887e382227c80c8985495f01dad2b1890719.zip
opie-7b04887e382227c80c8985495f01dad2b1890719.tar.gz
opie-7b04887e382227c80c8985495f01dad2b1890719.tar.bz2
Fix saving
remove the transport medium from the opimmainwindow
Diffstat (limited to 'libopie2/opiepim/backend') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiepim/backend/odatebookaccessbackend_xml.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/libopie2/opiepim/backend/odatebookaccessbackend_xml.cpp b/libopie2/opiepim/backend/odatebookaccessbackend_xml.cpp
index 24b69fe..4a6b7b8 100644
--- a/libopie2/opiepim/backend/odatebookaccessbackend_xml.cpp
+++ b/libopie2/opiepim/backend/odatebookaccessbackend_xml.cpp
@@ -86,2 +86,3 @@ namespace {
inline void save( const OEvent& ev, QString& buf ) {
+ qWarning("Saving %d %s", ev.uid(), ev.description().latin1() );
buf += " description=\"" + Qtopia::escapeString(ev.description() ) + "\"";
@@ -127,2 +128,3 @@ namespace {
buf += ev.timeZone();
+ buf += "\"";
@@ -436,3 +438,2 @@ bool ODateBookAccessBackend_XML::loadFile() {
finalizeRecord( ev );
- add( ev );
delete rec;
@@ -453,4 +454,6 @@ void ODateBookAccessBackend_XML::finalizeRecord( OEvent& ev ) {
/* to current date time */
+ qWarning(" Start is %d", start );
OTimeZone zone( ev.timeZone().isEmpty() ? OTimeZone::current() : ev.timeZone() );
QDateTime date = zone.toDateTime( start );
+ qWarning(" Start is %s", date.toString().latin1() );
ev.setStartDateTime( zone.toDateTime( date, OTimeZone::current() ) );
@@ -475,4 +478,6 @@ void ODateBookAccessBackend_XML::finalizeRecord( OEvent& ev ) {
if ( m_raw.contains( ev.uid() ) || m_rep.contains( ev.uid() ) ) {
+ qWarning("already contains assign uid");
ev.setUid( 1 );
}
+ qWarning("addind %d %s", ev.uid(), ev.description().latin1() );
if ( ev.hasRecurrence() )