summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2005-01-26 05:02:50 (UTC)
committer zautrix <zautrix>2005-01-26 05:02:50 (UTC)
commitebe38bec081a9ab226ea0de7e38ac2377d6bd1c0 (patch) (side-by-side diff)
tree397f39fbd4601b5f3895309edef93b1c24e32b9a
parentc3e40c9baa61009469022a87e9cd068734899bcc (diff)
downloadkdepimpi-ebe38bec081a9ab226ea0de7e38ac2377d6bd1c0.zip
kdepimpi-ebe38bec081a9ab226ea0de7e38ac2377d6bd1c0.tar.gz
kdepimpi-ebe38bec081a9ab226ea0de7e38ac2377d6bd1c0.tar.bz2
urgggg
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--kde2file/caldump/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/kde2file/caldump/main.cpp b/kde2file/caldump/main.cpp
index 08ccafb..9cc1a73 100644
--- a/kde2file/caldump/main.cpp
+++ b/kde2file/caldump/main.cpp
@@ -108,49 +108,49 @@ int main( int argc, char *argv[] )
qDebug("read ");
}
QString fileName = QDir::homeDirPath ()+"/.kdecalendardump.ics";
CalendarResources *calendarResource = 0;
CalendarLocal *localCalendar = 0;
KConfig c( locate( "config", "korganizerrc" ) );
c.setGroup( "Time & Date" );
QString tz = c.readEntry( "TimeZoneId" );
calendarResource = new CalendarResources( tz );
calendarResource->readConfig();
calendarResource->load();
qDebug("************************************* ");
qDebug("**************kdecaldump************* ");
qDebug("************************************* ");
qDebug("Using timezone ID: %s", calendarResource->timeZoneId().latin1());
if ( !read ) {
localCalendar = new CalendarLocal();
localCalendar->setTimeZoneId( calendarResource->timeZoneId());
KCal::Incidence::List allInc = calendarResource->rawIncidences();
Incidence::List::ConstIterator it;
int num = 0;
for( it = allInc.begin(); it != allInc.end(); ++it ) {
ResourceCalendar * re = calendarResource->resource( (*it) );
- if ( re && /*!re->readOnly() now readonly syncing possible */) {
+ if ( re ) {
++num;
Incidence* cl = (*it)->clone();
cl->setLastModified( (*it)->lastModified() );
if ( cl->type() == "Journal" )
localCalendar->addJournal( (Journal *) cl );
else if ( cl->type() == "Todo" )
localCalendar->addTodo( (Todo *) cl );
else if ( cl->type() == "Event" )
localCalendar->addEvent( (Event *) cl );
}
}
FileStorage* storage = new FileStorage( calendarResource );
storage->setFileName( fileName );
storage->setSaveFormat( new ICalFormat() );
storage->save();
delete storage;
qDebug("************************************* ");
qDebug("************kdecaldump*************** ");
qDebug("************************************* ");
qDebug("%d calendar entries dumped to file %s", num, fileName.latin1());
} else {
qDebug("************load");