Commit 244bde14 authored by Allen Winter's avatar Allen Winter
Browse files

minor coding style fixes

SVN_SILENT:

svn path=/trunk/KDE/kdepim/console/konsolekalendar/; revision=733112
parent 49928a37
......@@ -74,7 +74,7 @@ bool KonsoleKalendar::importCalendar()
KonsoleKalendarAdd add( m_variables );
kDebug(5860) << "konsolecalendar.cpp::importCalendar() | importing now!";
return( add.addImportedCalendar() );
return add.addImportedCalendar();
}
bool KonsoleKalendar::createCalendar()
......@@ -83,8 +83,8 @@ bool KonsoleKalendar::createCalendar()
CalendarLocal newCalendar( KPIM::KPimPrefs::timeSpec() );
if ( m_variables->isDryRun() ) {
cout << i18n( "Create Calendar &lt;Dry Run&gt;: %1" ,
m_variables->getCalendarFile() ).toLocal8Bit().data()
cout << i18n( "Create Calendar &lt;Dry Run&gt;: %1",
m_variables->getCalendarFile() ).toLocal8Bit().data()
<< endl;
} else {
kDebug(5860) << "konsolekalendar.cpp::createCalendar() |"
......@@ -92,8 +92,8 @@ bool KonsoleKalendar::createCalendar()
<< m_variables->getCalendarFile().toLocal8Bit().data();
if ( m_variables->isVerbose() ) {
cout << i18n( "Create Calendar &lt;Verbose&gt;: %1" ,
m_variables->getCalendarFile() ).toLocal8Bit().data()
cout << i18n( "Create Calendar &lt;Verbose&gt;: %1",
m_variables->getCalendarFile() ).toLocal8Bit().data()
<< endl;
}
......@@ -236,9 +236,9 @@ bool KonsoleKalendar::showInstance()
// TODO
kDebug(5860) << "konsolekalendar.cpp::showInstance() |"
<< "HTML view events by uid list";
cout << i18n("Sorry, export to HTML by UID is not supported yet")
.toLocal8Bit().data() << endl;
return( false );
cout << i18n( "Sorry, export to HTML by UID is not supported yet" ).
toLocal8Bit().data() << endl;
return false;
} else {
kDebug(5860) << "konsolekalendar.cpp::showInstance() |"
<< "HTML view raw events within date range list";
......@@ -263,12 +263,12 @@ bool KonsoleKalendar::showInstance()
htmlSettings.setMonthView( true );
} else {
if ( firstdate == lastdate ) {
title = i18n( "Events: %1" ,
firstdate.toString( Qt::TextDate ) );
title = i18n( "Events: %1",
firstdate.toString( Qt::TextDate ) );
} else {
title = i18n( "Events: %1 - %2" ,
firstdate.toString( Qt::TextDate ) ,
lastdate.toString( Qt::TextDate ) );
title = i18n( "Events: %1 - %2",
firstdate.toString( Qt::TextDate ),
lastdate.toString( Qt::TextDate ) );
}
htmlSettings.setEventView( true );
}
......@@ -317,7 +317,7 @@ bool KonsoleKalendar::printEventList( QTextStream *ts,
}
}
return( status );
return status;
}
bool KonsoleKalendar::printEvent( QTextStream *ts, Event *event, QDate dt )
......@@ -356,7 +356,7 @@ bool KonsoleKalendar::printEvent( QTextStream *ts, Event *event, QDate dt )
break;
}
}
return( status );
return status;
}
bool KonsoleKalendar::addEvent()
......@@ -366,7 +366,7 @@ bool KonsoleKalendar::addEvent()
KonsoleKalendarAdd add( m_variables );
kDebug(5860) << "konsolecalendar.cpp::addEvent() |"
<< "Adding Event now!";
return( add.addEvent() );
return add.addEvent();
}
bool KonsoleKalendar::changeEvent()
......@@ -377,7 +377,7 @@ bool KonsoleKalendar::changeEvent()
KonsoleKalendarChange change( m_variables );
kDebug(5860) << "konsolecalendar.cpp::changeEvent() |"
<< "Changing Event now!";
return( change.changeEvent() );
return change.changeEvent();
}
bool KonsoleKalendar::deleteEvent()
......@@ -387,7 +387,7 @@ bool KonsoleKalendar::deleteEvent()
KonsoleKalendarDelete del( m_variables );
kDebug(5860) << "konsolecalendar.cpp::deleteEvent() |"
<< "Deleting Event now!";
return( del.deleteEvent() );
return del.deleteEvent();
}
bool KonsoleKalendar::isEvent( QDateTime startdate,
......@@ -407,7 +407,8 @@ bool KonsoleKalendar::isEvent( QDateTime startdate,
SortDirectionAscending ) );
for ( it = eventList.begin(); it != eventList.end(); ++it ) {
event = *it;
if ( event->dtEnd().toTimeSpec( timeSpec ).dateTime() == enddate && event->summary() == summary ) {
if ( event->dtEnd().toTimeSpec( timeSpec ).dateTime() == enddate &&
event->summary() == summary ) {
found = true;
break;
}
......@@ -417,16 +418,16 @@ bool KonsoleKalendar::isEvent( QDateTime startdate,
void KonsoleKalendar::printSpecs()
{
cout << i18n( " What: %1" ,
m_variables->getSummary() ).toLocal8Bit().data()
cout << i18n( " What: %1",
m_variables->getSummary() ).toLocal8Bit().data()
<< endl;
cout << i18n( " Begin: %1" ,
m_variables->getStartDateTime().toString( Qt::TextDate ) ).toLocal8Bit().data()
cout << i18n( " Begin: %1",
m_variables->getStartDateTime().toString( Qt::TextDate ) ).toLocal8Bit().data()
<< endl;
cout << i18n( " End: %1" ,
m_variables->getEndDateTime().toString( Qt::TextDate ) ).toLocal8Bit().data()
cout << i18n( " End: %1",
m_variables->getEndDateTime().toString( Qt::TextDate ) ).toLocal8Bit().data()
<< endl;
if ( m_variables->getFloating() == true ) {
......@@ -434,11 +435,11 @@ void KonsoleKalendar::printSpecs()
<< endl;
}
cout << i18n( " Desc: %1" ,
m_variables->getDescription() ).toLocal8Bit().data()
cout << i18n( " Desc: %1",
m_variables->getDescription() ).toLocal8Bit().data()
<< endl;
cout << i18n( " Location: %1" ,
m_variables->getLocation() ).toLocal8Bit().data()
cout << i18n( " Location: %1",
m_variables->getLocation() ).toLocal8Bit().data()
<< endl;
}
......@@ -92,15 +92,15 @@ bool KonsoleKalendarAdd::addEvent()
event->setLocation( m_variables->getLocation() );
if ( m_variables->getCalendar()->addEvent( event ) ) {
cout << i18n( "Success: \"%1\" inserted" ,
m_variables->getSummary() ).toLocal8Bit().data()
cout << i18n( "Success: \"%1\" inserted",
m_variables->getSummary() ).toLocal8Bit().data()
<< endl;
m_variables->getCalendar()->save();
} else {
cout << i18n( "Failure: \"%1\" not inserted" ,
m_variables->getSummary() ).toLocal8Bit().data()
cout << i18n( "Failure: \"%1\" not inserted",
m_variables->getSummary() ).toLocal8Bit().data()
<< endl;
status = false;
}
......@@ -140,16 +140,16 @@ bool KonsoleKalendarAdd::addImportedCalendar()
void KonsoleKalendarAdd::printSpecs()
{
cout << i18n( " What: %1" ,
m_variables->getSummary() ).toLocal8Bit().data()
cout << i18n( " What: %1",
m_variables->getSummary() ).toLocal8Bit().data()
<< endl;
cout << i18n( " Begin: %1" ,
m_variables->getStartDateTime().toString( Qt::TextDate ) ).toLocal8Bit().data()
cout << i18n( " Begin: %1",
m_variables->getStartDateTime().toString( Qt::TextDate ) ).toLocal8Bit().data()
<< endl;
cout << i18n( " End: %1" ,
m_variables->getEndDateTime().toString( Qt::TextDate ) ).toLocal8Bit().data()
cout << i18n( " End: %1",
m_variables->getEndDateTime().toString( Qt::TextDate ) ).toLocal8Bit().data()
<< endl;
if ( m_variables->getFloating() == true ) {
......@@ -157,11 +157,11 @@ void KonsoleKalendarAdd::printSpecs()
<< endl;
}
cout << i18n( " Desc: %1" ,
m_variables->getDescription() ).toLocal8Bit().data()
cout << i18n( " Desc: %1",
m_variables->getDescription() ).toLocal8Bit().data()
<< endl;
cout << i18n( " Location: %1" ,
m_variables->getLocation() ).toLocal8Bit().data()
cout << i18n( " Location: %1",
m_variables->getLocation() ).toLocal8Bit().data()
<< endl;
}
......@@ -107,15 +107,13 @@ bool KonsoleKalendarChange::changeEvent()
}
if ( m_variables->getCalendar()->addEvent( event ) ) {
cout << i18n( "Success: \"%1\" changed" ,
event->summary() ).toLocal8Bit().data()
cout << i18n( "Success: \"%1\" changed", event->summary() ).toLocal8Bit().data()
<< endl;
m_variables->getCalendar()->save();
status = true;
} else {
cout << i18n( "Failure: \"%1\" not changed" ,
event->summary() ).toLocal8Bit().data()
cout << i18n( "Failure: \"%1\" not changed", event->summary() ).toLocal8Bit().data()
<< endl;
}
}
......@@ -137,11 +135,13 @@ void KonsoleKalendarChange::printSpecs( Event *event )
KDateTime::Spec timeSpec = m_variables->getCalendar()->timeSpec();
cout << i18n( " Begin: %1",
event->dtStart().toTimeSpec( timeSpec ).dateTime().toString( Qt::TextDate ) ).toLocal8Bit().data()
event->dtStart().toTimeSpec( timeSpec ).
dateTime().toString( Qt::TextDate ) ).toLocal8Bit().data()
<< endl;
cout << i18n( " End: %1",
event->dtEnd().toTimeSpec( timeSpec ).dateTime().toString( Qt::TextDate ) ).toLocal8Bit().data()
event->dtEnd().toTimeSpec( timeSpec ).
dateTime().toString( Qt::TextDate ) ).toLocal8Bit().data()
<< endl;
cout << i18n( " Desc: %1",
......@@ -155,27 +155,27 @@ void KonsoleKalendarChange::printSpecs( Event *event )
void KonsoleKalendarChange::printSpecs()
{
cout << i18n( " UID: %1" ,
m_variables->getUID() ).toLocal8Bit().data()
cout << i18n( " UID: %1",
m_variables->getUID() ).toLocal8Bit().data()
<< endl;
cout << i18n( " What: %1" ,
m_variables->getSummary() ).toLocal8Bit().data()
cout << i18n( " What: %1",
m_variables->getSummary() ).toLocal8Bit().data()
<< endl;
cout << i18n( " Begin: %1" ,
m_variables->getStartDateTime().toString( Qt::TextDate ) ).toLocal8Bit().data()
cout << i18n( " Begin: %1",
m_variables->getStartDateTime().toString( Qt::TextDate ) ).toLocal8Bit().data()
<< endl;
cout << i18n( " End: %1" ,
m_variables->getEndDateTime().toString( Qt::TextDate ) ).toLocal8Bit().data()
cout << i18n( " End: %1",
m_variables->getEndDateTime().toString( Qt::TextDate ) ).toLocal8Bit().data()
<< endl;
cout << i18n( " Desc: %1" ,
m_variables->getDescription() ).toLocal8Bit().data()
cout << i18n( " Desc: %1",
m_variables->getDescription() ).toLocal8Bit().data()
<< endl;
cout << i18n( " Location: %1" ,
m_variables->getLocation() ).toLocal8Bit().data()
cout << i18n( " Location: %1",
m_variables->getLocation() ).toLocal8Bit().data()
<< endl;
}
......@@ -69,14 +69,13 @@ bool KonsoleKalendarDelete::deleteEvent()
<< m_variables->getUID().data();
if ( m_variables->isVerbose() ) {
cout << i18n( "Delete Event &lt;Verbose&gt;:" ).data()
cout << i18n( "Delete Event &lt;Verbose&gt;:" ).data()
<< endl;
printSpecs( event );
printSpecs( event );
}
m_variables->getCalendar()->deleteEvent( event );
cout << i18n( "Success: \"%1\" deleted" ,
event->summary() ).data()
cout << i18n( "Success: \"%1\" deleted", event->summary() ).data()
<< endl;
m_variables->getCalendar()->save();
......@@ -90,12 +89,10 @@ bool KonsoleKalendarDelete::deleteEvent()
void KonsoleKalendarDelete::printSpecs( Event *event )
{
cout << i18n( " UID: %1" ,
m_variables->getUID() ).data()
cout << i18n( " UID: %1", m_variables->getUID() ).data()
<< endl;
cout << i18n( " What: %1",
event->summary() ).data()
cout << i18n( " What: %1", event->summary() ).data()
<< endl;
KDateTime::Spec timeSpec = m_variables->getCalendar()->timeSpec();
......
......@@ -53,7 +53,7 @@ QDateTime KonsoleKalendarEpoch::epoch2QDateTime( uint epoch )
{
QDateTime dt;
dt.setTime_t( epoch );
return( dt );
return dt;
}
// Function to convert a QDateTime value into an epoch
......@@ -63,9 +63,9 @@ uint KonsoleKalendarEpoch::QDateTime2epoch( const QDateTime &dt )
// SORRY QT DOESN'T HANDLE DAYLIGHT SAVINGS TIME.
// Compute #seconds to subtract for local timezone difference from UTC.
int offset = QDateTime::currentDateTime().toUTC().toTime_t()
- QDateTime::currentDateTime().toTime_t();
return( dt.toTime_t() - offset );
int offset = QDateTime::currentDateTime().toUTC().toTime_t() -
QDateTime::currentDateTime().toTime_t();
return dt.toTime_t() - offset;
}
#if defined (TEST)
......
......@@ -53,7 +53,6 @@ KonsoleKalendarExports::KonsoleKalendarExports( KonsoleKalendarVariables *vars )
m_firstEntry = true;
}
KonsoleKalendarExports::~KonsoleKalendarExports()
{
}
......@@ -109,7 +108,7 @@ bool KonsoleKalendarExports::exportAsTxt( QTextStream *ts,
<< endl;
if ( !event->location().isEmpty() ) {
*ts << "\t"
<<event->location()
<< event->location()
<< endl;
} else {
*ts << "\t"
......@@ -237,9 +236,9 @@ bool KonsoleKalendarExports::exportAsCSV( QTextStream *ts,
<< delim << pF( "" );
}
*ts << delim << pF( event->summary().replace( QChar('\n'), QChar(' ') ) )
<< delim << pF( event->location().replace( QChar('\n'), QChar(' ') ) )
<< delim << pF( event->description().replace( QChar('\n'), QChar(' ') ) )
*ts << delim << pF( event->summary().replace( QChar( '\n' ), QChar( ' ' ) ) )
<< delim << pF( event->location().replace( QChar( '\n' ), QChar( ' ' ) ) )
<< delim << pF( event->description().replace( QChar( '\n' ), QChar( ' ' ) ) )
<< delim << pF( event->uid() )
<< endl;
......
......@@ -164,7 +164,7 @@ void KonsoleKalendarVariables::setUseEvents( bool useEvents )
bool KonsoleKalendarVariables::getUseEvents()
{
return( m_bUseEvents );
return m_bUseEvents;
}
void KonsoleKalendarVariables::setUseTodos( bool useTodos )
......@@ -174,7 +174,7 @@ void KonsoleKalendarVariables::setUseTodos( bool useTodos )
bool KonsoleKalendarVariables::getUseTodos()
{
return( m_bUseTodos );
return m_bUseTodos;
}
void KonsoleKalendarVariables::setUseJournals( bool useJournals )
......@@ -184,7 +184,7 @@ void KonsoleKalendarVariables::setUseJournals( bool useJournals )
bool KonsoleKalendarVariables::getUseJournals()
{
return( m_bUseJournals );
return m_bUseJournals;
}
void KonsoleKalendarVariables::setCalendarFile( const QString &calendar )
......
......@@ -47,8 +47,7 @@ using namespace KCal;
/**
* ExportType is the type of Export output
*/
enum ExportType
{
enum ExportType {
/** Export none */
ExportTypeNone,
/** Export as text (default) */
......
......@@ -70,74 +70,108 @@ static const char progURL[] = "pim.kde.org/components/konsolekalendar.php";
int main( int argc, char *argv[] )
{
KAboutData aboutData(
progName, 0, // internal program name
progName, 0, // internal program name
ki18n( progDisplay ), // displayable program name.
progVersion, // version string
progVersion, // version string
ki18n( progDesc ), // short porgram description
KAboutData::License_GPL, ki18n(// license type
"(c) 2002-2005, Tuukka Pasanen and Allen Winter"), ki18n(// copyright statement
0), // any free form text
progURL, // program home page address
"bugs.kde.org" // bug report email address
KAboutData::License_GPL, // license type
ki18n( "(c) 2002-2007, Tuukka Pasanen and Allen Winter" ),
ki18n( 0 ), // any free form text
progURL, // program home page address
"bugs.kde.org" // bug report email address
);
aboutData.addAuthor(
ki18n("Tuukka Pasanen"), // developer's name
ki18n( "Primary Author" ), // task or role
"illuusio@mailcity.com", // email address
0 // home page or relevant link
ki18n( "Allen Winter" ), // developer's name
ki18n( "Maintainer" ), // task or role
"winter@kde.org", // email address
0 // home page or relevant link
);
aboutData.addAuthor(
ki18n("Allen Winter"), // developer's name
ki18n( "Tuukka Pasanen" ), // developer's name
ki18n( "Author" ), // task or role
"winter@kde.org", // email address
0 // home page or relevant link
"illuusio@mailcity.com", // email address
0 // home page or relevant link
);
KCmdLineArgs::init( argc, argv, &aboutData, KCmdLineArgs::CmdLineArgNone );
KCmdLineOptions options;
options.add("verbose", ki18n( "Print helpful runtime messages" ));
options.add("dry-run", ki18n( "Print what would have been done, but do not execute" ));
options.add("file <calendar-file>", ki18n( "Specify which calendar you want to use" ));
options.add(":", ki18n( "Incidence types (these options can be combined):" ));
options.add("event", ki18n( " Operate for Events only (Default)" ));
options.add("todo", ki18n( " Operate for To-dos only [NOT WORKING YET]" ));
options.add("journal", ki18n( " Operate for Journals only [NOT WORKING YET]" ));
options.add(":", ki18n( "Major operation modes:" ));
options.add("view", ki18n( " Print incidences in specified export format" ));
options.add("add", ki18n( " Insert an incidence into the calendar" ));
options.add("change", ki18n( " Modify an existing incidence" ));
options.add("delete", ki18n( " Remove an existing incidence" ));
options.add("create", ki18n( " Create new calendar file if one does not exist" ));
options.add("import <import-file>", ki18n( " Import this calendar to main calendar" ));
options.add(":", ki18n( "Operation modifiers:" ));
options.add("all", ki18n( " View all calendar entries, ignoring date/time options" ));
options.add("next", ki18n( " View next activity in calendar" ));
options.add("show-next <days>", ki18n( " From start date show next # days' activities" ));
options.add("uid <uid>", ki18n( " Incidence Unique-string identifier" ));
options.add("date <start-date>", ki18n( " Start from this day [YYYY-MM-DD]" ));
options.add("time <start-time>", ki18n( " Start from this time [HH:MM:SS]" ));
options.add("end-date <end-date>", ki18n( " End at this day [YYYY-MM-DD]" ));
options.add("end-time <end-time>", ki18n( " End at this time [HH:MM:SS]" ));
options.add("epoch-start <epoch-time>", ki18n( " Start from this time [secs since epoch]" ));
options.add("epoch-end <epoch-time>", ki18n( " End at this time [secs since epoch]" ));
options.add("summary <summary>", ki18n( " Add summary to incidence (for add/change modes)" ));
options.add("description <description>", ki18n( "Add description to incidence (for add/change modes)" ));
options.add("location <location>", ki18n( " Add location to incidence (for add/change modes)" ));
options.add(":", ki18n( "Export options:" ));
options.add("export-type <export-type>", ki18n( "Export file type (Default: text)" ));
options.add("export-file <export-file>", ki18n( "Export to file (Default: stdout)" ));
options.add("export-list", ki18n( " Print list of export types supported and exit" ));
options.add("", ki18n( "Examples:\n"
" konsolekalendar --view\n"
" konsolekalendar --add --date 2003-06-04 "
"--time 10:00 --end-time 12:00 \\\n"
" --summary \"Doctor Visit\" "
"--description \"Get My Head Examined\"\n"
" konsolekalendar --delete --uid KOrganizer-1740326.803" ));
options.add("", ki18n( "For more information visit the program home page at:\n"
" http://pim.kde.org/components/konsolekalendar.php" ));
options.add( "verbose",
ki18n( "Print helpful runtime messages" ) );
options.add( "dry-run",
ki18n( "Print what would have been done, but do not execute" ) );
options.add( "file <calendar-file>",
ki18n( "Specify which calendar you want to use" ) );
options.add( ":",
ki18n( "Incidence types (these options can be combined):" ) );
options.add( "event",
ki18n( " Operate for Events only (Default)" ) );
options.add( "todo",
ki18n( " Operate for To-dos only [NOT WORKING YET]" ) );
options.add( "journal",
ki18n( " Operate for Journals only [NOT WORKING YET]" ) );
options.add( ":",
ki18n( "Major operation modes:" ) );
options.add( "view",
ki18n( " Print incidences in specified export format" ) );
options.add( "add",
ki18n( " Insert an incidence into the calendar" ) );
options.add( "change",
ki18n( " Modify an existing incidence" ) );
options.add( "delete",
ki18n( " Remove an existing incidence" ) );
options.add( "create",
ki18n( " Create new calendar file if one does not exist" ) );
options.add( "import <import-file>",
ki18n( " Import this calendar to main calendar" ) );
options.add( ":",
ki18n( "Operation modifiers:" ) );
options.add( "all",
ki18n( " View all calendar entries, ignoring date/time options" ) );
options.add( "next",
ki18n( " View next activity in calendar" ) );
options.add( "show-next <days>",
ki18n( " From start date show next # days' activities" ) );
options.add( "uid <uid>",
ki18n( " Incidence Unique-string identifier" ) );
options.add( "date <start-date>",
ki18n( " Start from this day [YYYY-MM-DD]" ) );
options.add( "time <start-time>",
ki18n( " Start from this time [HH:MM:SS]" ) );
options.add( "end-date <end-date>",
ki18n( " End at this day [YYYY-MM-DD]" ) );
options.add( "end-time <end-time>",
ki18n( " End at this time [HH:MM:SS]" ) );
options.add( "epoch-start <epoch-time>",
ki18n( " Start from this time [secs since epoch]" ) );
options.add( "epoch-end <epoch-time>",
ki18n( " End at this time [secs since epoch]" ) );
options.add( "summary <summary>",
ki18n( " Add summary to incidence (for add/change modes)" ) );
options.add( "description <description>",
ki18n( "Add description to incidence (for add/change modes)" ) );
options.add( "location <location>",
ki18n( " Add location to incidence (for add/change modes)" ) );
options.add( ":",
ki18n( "Export options:" ) );
options.add( "export-type <export-type>",
ki18n( "Export file type (Default: text)" ) );
options.add( "export-file <export-file>",
ki18n( "Export to file (Default: stdout)" ) );
options.add( "export-list",
ki18n( " Print list of export types supported and exit" ) );
options.add( "",
ki18n( "Examples:\n"
" konsolekalendar --view\n"
" konsolekalendar --add --date 2003-06-04 "
"--time 10:00 --end-time 12:00 \\\n"
" --summary \"Doctor Visit\" "
"--description \"Get My Head Examined\"\n"
" konsolekalendar --delete --uid KOrganizer-1740326.803" ) );
options.add( "",
ki18n( "For more information visit the program home page at:\n"
" http://pim.kde.org/components/konsolekalendar.php" ) );
KCmdLineArgs::addCmdLineOptions( options ); // Add our own options.
KApplication app(
......@@ -183,20 +217,20 @@ int main( int argc, char *argv[] )
*/
if ( args->isSet( "export-list" ) ) {
cout << endl;
cout << i18n( "%1 supports these export formats:" ,
QString(progDisplay) ).toLocal8Bit().data()
cout << i18n( "%1 supports these export formats:",
QString(progDisplay) ).toLocal8Bit().data()
<< endl;
cout << i18n( " %1 [Default]" , QString( "Text" ) ).toLocal8Bit().data()
cout << i18n( " %1 [Default]", QString( "Text" ) ).toLocal8Bit().data()
<< endl;
cout << i18n( " %1 (like %2, but more compact)",
QString( "Short" ), QString( "Text" ) ).toLocal8Bit().data()
<< endl;
cout << i18n( " %1" , QString( "HTML" ) ).toLocal8Bit().data()
cout << i18n( " %1", QString( "HTML" ) ).toLocal8Bit().data()
<< endl;
cout << i18n( " %1 (like %2, but in a month view)",
QString( "HTMLmonth" ), QString( "HTML" ) ).toLocal8Bit().data()
<< endl;
cout << i18n( " %1 (Comma-Separated Values)" ,
cout << i18n( " %1 (Comma-Separated Values)",
QString( "CSV" ) ).toLocal8Bit().data()
<< endl;
cout << endl;
......@@ -426,8 +460,7 @@ int main( int argc, char *argv[] )
if ( option.toUpper() != "FLOAT" ) {
starttime = QTime::fromString( option, Qt::ISODate );
if ( !starttime.isValid() ) {