rem: kdDebug() << "Input File: '" << inputFile << "'" << endl; kdDebug() << "Output File: '" << outputFile << "'" << endl;
add: kdDebug(5800) << "Input File: '" << inputFile << "'" << endl; kdDebug(5800) << "Output File: '" << outputFile << "'" << endl;
context: int main(int argc,char **argv){  KAboutData aboutData("convertqtopia",I18N_NOOP("Qtopia calendar file converter"),"0.1");  aboutData.addAuthor("Cornelius Schumacher", 0, "schumacher@kde.org");  KCmdLineArgs::init(argc,argv,&aboutData);  KCmdLineArgs::addCmdLineOptions( options );  KApplication app;  KCmdLineArgs *args = KCmdLineArgs::parsedArgs();  bool sourceQtopia = false;  bool sourceIcalendar = false;  if ( args->isSet( "qtopia2icalendar" ) ) {    sourceQtopia = true;  }  if ( args->isSet( "icalendar2qtopia" ) ) {    sourceIcalendar = true;  }  if ( sourceQtopia && sourceIcalendar ) {    KCmdLineArgs::usage(        i18n("Please specify only one of the conversion options.") );  }  if ( !sourceQtopia && !sourceIcalendar ) {    KCmdLineArgs::usage(        i18n("You have to specify one conversion option.") );  }  if ( args->count() != 1 ) {    KCmdLineArgs::usage( i18n("Error: No input file.") );  }  QString inputFile = args->arg( 0 );  QString outputFile;  if ( args->isSet("output") ) outputFile = args->getOption( "output" );  kdDebug() << "Input File: '" << inputFile << "'" << endl;  kdDebug() << "Output File: '" << outputFile << "'" << endl;  if ( sourceQtopia ) {    CalendarLocal cal;        QtopiaFormat qtopiaFormat;    qtopiaFormat.load( &cal, inputFile );    ICalFormat icalendarFormat;    if ( outputFile.isEmpty() ) {      QString out = icalendarFormat.toString( &cal );      std::cout << out.local8Bit() << std::endl;    } else {      bool success = icalendarFormat.save( &cal, outputFile );      if ( !success ) {        std::cerr << i18n( "Error saving to '%1'." ).arg( outputFile ).local8Bit()                  << std::endl;        return 1;      }    }  }    if ( sourceIcalendar ) {    std::cerr << "Not implemented yet." << std::endl;    return 1;  }}