Diffstat (limited to 'noncore/todayplugins/weather') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/todayplugins/weather/weatherpluginwidget.cpp | 3 | ||||
-rw-r--r-- | noncore/todayplugins/weather/weatherpluginwidget.h | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/noncore/todayplugins/weather/weatherpluginwidget.cpp b/noncore/todayplugins/weather/weatherpluginwidget.cpp index ad99a43..8e00c36 100644 --- a/noncore/todayplugins/weather/weatherpluginwidget.cpp +++ b/noncore/todayplugins/weather/weatherpluginwidget.cpp @@ -31,24 +31,25 @@ #include <qlabel.h> #include <qlayout.h> #include <qpixmap.h> #include <qtextstream.h> #include <opie2/oprocess.h> #include <qpe/config.h> #include <qpe/resource.h> #include "weatherpluginwidget.h" +using namespace Opie::Core; WeatherPluginWidget::WeatherPluginWidget( QWidget *parent, const char* name ) : QWidget( parent, name ) { QHBoxLayout *layout = new QHBoxLayout( this ); layout->setAutoAdd( TRUE ); layout->setSpacing( 2 ); weatherIcon = new QLabel( this ); weatherIcon->setMaximumWidth( 32 ); QImage logo1 = Resource::loadImage( "Clock" ); QPixmap pic; pic.convertFromImage( logo1 ); @@ -96,25 +97,25 @@ void WeatherPluginWidget::retreiveData() remoteFile.append( location ); remoteFile.append( ".TXT" ); QFile file( localFile ); if ( file.exists() ) { file.remove(); } OProcess *proc = new OProcess; *proc << "wget" << "-q" << remoteFile << "-O" << localFile; - connect( proc, SIGNAL( processExited(OProcess*) ), this, SLOT( dataRetrieved(OProcess*) ) ); + connect( proc, SIGNAL( processExited(Opie::Core::OProcess*) ), this, SLOT( dataRetrieved(Opie::Core::OProcess*) ) ); proc->start(); } void WeatherPluginWidget::displayWeather() { weatherData = QString::null; QFile file( localFile ); if ( file.size() > 0 && file.open( IO_ReadOnly ) ) { QTextStream data( &file ); diff --git a/noncore/todayplugins/weather/weatherpluginwidget.h b/noncore/todayplugins/weather/weatherpluginwidget.h index d2bbd8b..93d0f59 100644 --- a/noncore/todayplugins/weather/weatherpluginwidget.h +++ b/noncore/todayplugins/weather/weatherpluginwidget.h @@ -23,25 +23,25 @@ -- :-=` Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef WEATHER_PLUGIN_WIDGET_H #define WEATHER_PLUGIN_WIDGET_H #include <qstring.h> #include <qwidget.h> -class OProcess; +namespace Opie {namespace Core {class Opie::Core::OProcess;}} class QLabel; class QTimer; class WeatherPluginWidget : public QWidget { Q_OBJECT public: WeatherPluginWidget( QWidget *parent, const char *name ); ~WeatherPluginWidget(); private: @@ -56,16 +56,16 @@ class WeatherPluginWidget : public QWidget { QLabel *weatherLabel; QLabel *weatherIcon; void timerEvent( QTimerEvent * ); void retreiveData(); void displayWeather(); void getTemp( const QString & ); void getWind( const QString & ); void getPressure( const QString & ); void getIcon( const QString & ); private slots: - void dataRetrieved( OProcess * ); + void dataRetrieved( Opie::Core::OProcess * ); }; #endif |