-rw-r--r-- | korganizer/mainwindow.cpp | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp index cce182a..6c0aa9b 100644 --- a/korganizer/mainwindow.cpp +++ b/korganizer/mainwindow.cpp @@ -1069,9 +1069,28 @@ void MainWindow::usertrans() displayFile( "usertranslationHOWTO.txt",i18n("KO/Pi User translation HowTo") ); } +#if 0 +#include <libkcal/vcalformat.h> +#include <libkcal/event.h> +#include <libkcal/todo.h> +#include <libkcal/incidence.h> +#endif void MainWindow::synchowto() { - +#if 0 + QPtrList<Incidence> er = mCalendar->rawIncidences(); + Incidence* inR = er.first(); + VCalFormat vf; + QString strout; + while ( inR ) { + if ( inR->type() == "Todo" ) + strout = vf.todoToString( (Todo *) inR ); + if ( inR->type() == "Event" ) + strout = vf.eventToString( (Event *) inR ); + qDebug("incidence: \n%s\n ente\n\n",strout.latin1() ); + inR = er.next(); + } +#endif displayFile( "howtoSYNC.txt",i18n("KO/Pi Synchronization HowTo") ); } void MainWindow::faq() |