From 49bee7ab52b819a07e9b6de4576eda467d632a66 Mon Sep 17 00:00:00 2001 From: drw Date: Tue, 02 Mar 2004 16:05:29 +0000 Subject: Today weather plugin: libopie -> libopie2 --- (limited to 'noncore/todayplugins') diff --git a/noncore/todayplugins/weather/config.in b/noncore/todayplugins/weather/config.in index 7202983..ae35a59 100644 --- a/noncore/todayplugins/weather/config.in +++ b/noncore/todayplugins/weather/config.in @@ -1,4 +1,4 @@ config TODAY_WEATHER boolean "opie-today-weatherplugin (current weather report)" default "y" - depends (LIBQPE || LIBQPE-X11) && LIBOPIE + depends (LIBQPE || LIBQPE-X11) && LIBOPIE2CORE && LIBOPIE2PIM diff --git a/noncore/todayplugins/weather/opie-today-weatherplugin.control b/noncore/todayplugins/weather/opie-today-weatherplugin.control index 80b7d2b..7dbd315 100644 --- a/noncore/todayplugins/weather/opie-today-weatherplugin.control +++ b/noncore/todayplugins/weather/opie-today-weatherplugin.control @@ -4,7 +4,7 @@ Priority: optional Section: opie/applications Maintainer: Dan Williams Architecture: arm -Depends: libqte2, opie-today +Depends: libqte2, libopiecore2, libopiepim2, opie-today Description: Weather plugin for Today Displays current weather conditions. Version: $QPE_VERSION$EXTRAVERSION diff --git a/noncore/todayplugins/weather/weather.pro b/noncore/todayplugins/weather/weather.pro index 5ad14e1..d1f8edd 100644 --- a/noncore/todayplugins/weather/weather.pro +++ b/noncore/todayplugins/weather/weather.pro @@ -17,7 +17,7 @@ INCLUDEPATH += $(OPIEDIR)/include \ DEPENDPATH += $(OPIEDIR)/include \ ../ ../library -LIBS+= -lqpe -lopie +LIBS+= -lqpe -lopiecore2 -lopiepim2 DESTDIR = $(OPIEDIR)/plugins/today TARGET = todayweatherplugin diff --git a/noncore/todayplugins/weather/weatherconfig.cpp b/noncore/todayplugins/weather/weatherconfig.cpp index 99ee2a0..4663549 100644 --- a/noncore/todayplugins/weather/weatherconfig.cpp +++ b/noncore/todayplugins/weather/weatherconfig.cpp @@ -26,7 +26,11 @@ */ -#include +#include "weatherconfig.h" + +#include +#include +#include #include #include @@ -39,12 +43,7 @@ #include #include -#include -#include -#include -#include - -#include "weatherconfig.h" +#include WeatherPluginConfig::WeatherPluginConfig( QWidget *parent, const char* name) : TodayConfigWidget(parent, name ) diff --git a/noncore/todayplugins/weather/weatherconfig.h b/noncore/todayplugins/weather/weatherconfig.h index d9ffec2..1780c7f 100644 --- a/noncore/todayplugins/weather/weatherconfig.h +++ b/noncore/todayplugins/weather/weatherconfig.h @@ -32,7 +32,7 @@ #include #include -#include +#include class QCheckBox; class QLineEdit; diff --git a/noncore/todayplugins/weather/weatherplugin.h b/noncore/todayplugins/weather/weatherplugin.h index 480d220..73e7104 100644 --- a/noncore/todayplugins/weather/weatherplugin.h +++ b/noncore/todayplugins/weather/weatherplugin.h @@ -29,12 +29,12 @@ #ifndef WEATHER_PLUGIN_H #define WEATHER_PLUGIN_H +#include +#include + #include #include -#include -#include - class WeatherPlugin : public TodayPluginObject { public: diff --git a/noncore/todayplugins/weather/weatherpluginimpl.h b/noncore/todayplugins/weather/weatherpluginimpl.h index eaaae1d..d1a7400 100644 --- a/noncore/todayplugins/weather/weatherpluginimpl.h +++ b/noncore/todayplugins/weather/weatherpluginimpl.h @@ -29,7 +29,7 @@ #ifndef WEATHER_PLUGIN_IMPL_H #define WEATHER_PLUGIN_IMPL_H -#include +#include class WeatherPlugin; diff --git a/noncore/todayplugins/weather/weatherpluginwidget.cpp b/noncore/todayplugins/weather/weatherpluginwidget.cpp index 15d1c6e..ad99a43 100644 --- a/noncore/todayplugins/weather/weatherpluginwidget.cpp +++ b/noncore/todayplugins/weather/weatherpluginwidget.cpp @@ -33,7 +33,7 @@ #include #include -#include +#include #include #include @@ -85,7 +85,7 @@ void WeatherPluginWidget::retreiveData() location = config.readEntry( "Location", "" ); useMetric = config.readBoolEntry( "Metric", TRUE ); frequency = config.readNumEntry( "Frequency", 5 ); - + startTimer( frequency * 60000 ); localFile = "/tmp/"; @@ -114,7 +114,7 @@ void WeatherPluginWidget::displayWeather() weatherData = QString::null; QFile file( localFile ); - + if ( file.size() > 0 && file.open( IO_ReadOnly ) ) { QTextStream data( &file ); -- cgit v0.9.0.2