summaryrefslogtreecommitdiffstats
path: root/kweather/kweather.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kweather/kweather.cpp')
-rw-r--r--kweather/kweather.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/kweather/kweather.cpp b/kweather/kweather.cpp
index 71fe647..eb87f98 100644
--- a/kweather/kweather.cpp
+++ b/kweather/kweather.cpp
@@ -58,21 +58,21 @@ kweather::kweather(const TQString& configFile, Type t, int actions,
{
kdDebug(12004) << "Constructor " << endl;
setObjId("weatherIface");
-
+
setBackgroundOrigin( TQWidget::AncestorOrigin );
loadPrefs();
initContextMenu();
initDCOP();
-
+
dockWidget = new dockwidget(reportLocation, this, "dockwidget");
connect(dockWidget, TQT_SIGNAL(buttonClicked()), TQT_SLOT(doReport()));
dockWidget->setViewMode(mViewMode);
setLabelColor();
-
+
timeOut = new TQTimer(this, "timeOut" );
connect(timeOut, TQT_SIGNAL(timeout()), TQT_SLOT(timeout()));
timeOut->start(10*60*1000);
-
+
if(mFirstRun)
preferences();
else
@@ -103,20 +103,20 @@ void kweather::initDCOP()
{
if ( !mClient )
mClient = TDEApplication::dcopClient();
-
+
if(!mClient->isAttached())
mClient->attach();
-
+
if(!attach())
return;
-
+
kdDebug(12004) << "attached to the server..." << endl;
-
+
if ( mWeatherService )
delete mWeatherService;
-
+
mWeatherService = new WeatherService_stub( "KWeatherService", "WeatherService" );
-
+
if (!connectDCOPSignal(0, 0, "fileUpdate(TQString)",
"refresh(TQString)",false))
kdDebug(12004) << "Could not attach dcop signal..." << endl;
@@ -189,10 +189,10 @@ void kweather::doReport()
if ( mReport == 0 )
{
mReport = new reportView(reportLocation);
-
+
connect( mReport, TQT_SIGNAL( finished() ), TQT_SLOT( slotReportFinished() ) );
}
-
+
mReport->show();
mReport->raise();
}
@@ -225,7 +225,7 @@ void kweather::loadPrefs(){
void kweather::savePrefs(){
kdDebug(12004) << "Saving Prefs..." << endl;
TDEConfig *kcConfig = config();
-
+
kcConfig->setGroup("General Options");
kcConfig->writeEntry("logging", logOn);
kcConfig->writeEntry("report_location", reportLocation);
@@ -286,7 +286,7 @@ void kweather::timeout()
{
if ( !mWeatherService )
initDCOP();
-
+
if ( mWeatherService )
{
// isEmtpy is true for null and 0 length strings