|
|
|
@ -29,6 +29,7 @@
|
|
|
|
|
#include <ksettings/dispatcher.h>
|
|
|
|
|
#include <dcopclient.h>
|
|
|
|
|
|
|
|
|
|
#include <tqdatetime.h>
|
|
|
|
|
#include <tqfile.h>
|
|
|
|
|
#include <tqtimer.h>
|
|
|
|
|
#include <tqpalette.h>
|
|
|
|
@ -257,6 +258,7 @@ void kweather::writeLogEntry()
|
|
|
|
|
TQStringList weather = mWeatherService->weather(reportLocation );
|
|
|
|
|
TQStringList cover = mWeatherService->cover(reportLocation );
|
|
|
|
|
TQString visibility = mWeatherService->visibility(reportLocation );
|
|
|
|
|
logFileStream << TDEGlobal::locale()->formatDateTime(TQDateTime::currentDateTime(), false, false) << ",";
|
|
|
|
|
logFileStream << date << ",";
|
|
|
|
|
logFileStream << wind << ",";
|
|
|
|
|
logFileStream << temperature << ",";
|
|
|
|
@ -343,7 +345,7 @@ void kweather::slotPrefsAccepted()
|
|
|
|
|
{
|
|
|
|
|
// Empty file, put the header
|
|
|
|
|
TQTextStream logFileStream(&logFile);
|
|
|
|
|
logFileStream << "Date,Wind Speed & Direction,Temperature,Pressure,Cover,Visibility,Current Weather" << endl;
|
|
|
|
|
logFileStream << "Date,Last Updated,Wind Speed & Direction,Temperature,Pressure,Cover,Visibility,Current Weather" << endl;
|
|
|
|
|
}
|
|
|
|
|
logFile.close();
|
|
|
|
|
}
|
|
|
|
|