summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2004-10-17 15:13:12 (UTC)
committer zautrix <zautrix>2004-10-17 15:13:12 (UTC)
commit711c4c06a7d1a52b97fd24efa3586543f46cc6d7 (patch) (unidiff)
tree249481286ad20efb0239d21dfcab0313a9692a4b
parent780a12295cbbcf4eff4f9570322c1cac517414ad (diff)
downloadkdepimpi-711c4c06a7d1a52b97fd24efa3586543f46cc6d7.zip
kdepimpi-711c4c06a7d1a52b97fd24efa3586543f46cc6d7.tar.gz
kdepimpi-711c4c06a7d1a52b97fd24efa3586543f46cc6d7.tar.bz2
sync fixes
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--kde2file/caldump/main.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/kde2file/caldump/main.cpp b/kde2file/caldump/main.cpp
index 8d81307..03571b9 100644
--- a/kde2file/caldump/main.cpp
+++ b/kde2file/caldump/main.cpp
@@ -118,7 +118,7 @@ int main( int argc, char *argv[] )
118 qDebug("************************************* "); 118 qDebug("************************************* ");
119 qDebug("**************kdecaldump************* "); 119 qDebug("**************kdecaldump************* ");
120 qDebug("************************************* "); 120 qDebug("************************************* ");
121 qDebug("Using timezone id: %s", calendarResource->timeZoneId().latin1()); 121 qDebug("Using timezone ID: %s", calendarResource->timeZoneId().latin1());
122 122
123 if ( !read ) { 123 if ( !read ) {
124 localCalendar = new CalendarLocal(); 124 localCalendar = new CalendarLocal();
@@ -152,6 +152,7 @@ int main( int argc, char *argv[] )
152 qDebug("%d calendar entries dumped to file %s", num, fileName.latin1()); 152 qDebug("%d calendar entries dumped to file %s", num, fileName.latin1());
153 153
154 } else { 154 } else {
155 qDebug("*************************load");
155 localCalendar = new CalendarLocal(); 156 localCalendar = new CalendarLocal();
156 localCalendar->setTimeZoneId( calendarResource->timeZoneId()); 157 localCalendar->setTimeZoneId( calendarResource->timeZoneId());
157 FileStorage* storage = new FileStorage( localCalendar ); 158 FileStorage* storage = new FileStorage( localCalendar );
@@ -160,6 +161,7 @@ int main( int argc, char *argv[] )
160 int del = 0; 161 int del = 0;
161 int add = 0; 162 int add = 0;
162 if ( storage->load() ) { 163 if ( storage->load() ) {
164 qDebug("*************************loaded!");
163 KCal::Incidence::List newInc = localCalendar->rawIncidences(); 165 KCal::Incidence::List newInc = localCalendar->rawIncidences();
164 Incidence::List::ConstIterator it; 166 Incidence::List::ConstIterator it;
165 for( it = newInc.begin(); it != newInc.end(); ++it ) { 167 for( it = newInc.begin(); it != newInc.end(); ++it ) {
@@ -198,6 +200,7 @@ int main( int argc, char *argv[] )
198 calendarResource->addIncidence( cl ); 200 calendarResource->addIncidence( cl );
199 ++add; 201 ++add;
200 } 202 }
203 }
201 KCal::Incidence::List allInc = calendarResource->rawIncidences(); 204 KCal::Incidence::List allInc = calendarResource->rawIncidences();
202 205
203 for( it = allInc.begin(); it != allInc.end(); ++it ) { 206 for( it = allInc.begin(); it != allInc.end(); ++it ) {
@@ -219,7 +222,7 @@ int main( int argc, char *argv[] )
219 } 222 }
220 } 223 }
221 } 224 }
222 } 225
223 calendarResource->save(); 226 calendarResource->save();
224 qDebug("************************************* "); 227 qDebug("************************************* ");
225 qDebug("************kdecaldump*************** "); 228 qDebug("************kdecaldump*************** ");
@@ -227,7 +230,7 @@ int main( int argc, char *argv[] )
227 qDebug("Calendar entries\nchanged %d\ndeleted %d\nadded %d\nfrom file %s", num,del, add, fileName.latin1()); 230 qDebug("Calendar entries\nchanged %d\ndeleted %d\nadded %d\nfrom file %s", num,del, add, fileName.latin1());
228 231
229 } else 232 } else
230 qDebug("error loading file /tmp/kdedumpall.ics"); 233 qDebug("ERROR loading file %s",fileName.latin1() );
231 234
232 } 235 }
233 236