author | zecke <zecke> | 2004-03-14 15:12:59 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-03-14 15:12:59 (UTC) |
commit | a104a921518d4427bf3dc9edd2c968133420607c (patch) (side-by-side diff) | |
tree | 005a054e766250891039f9adf4bacf3d6f0486f0 /noncore/todayplugins/fortune/fortunepluginwidget.cpp | |
parent | 8a243adc61fc9c8a48fa9061f0eba12c7b345d70 (diff) | |
download | opie-a104a921518d4427bf3dc9edd2c968133420607c.zip opie-a104a921518d4427bf3dc9edd2c968133420607c.tar.gz opie-a104a921518d4427bf3dc9edd2c968133420607c.tar.bz2 |
ODP changes
Diffstat (limited to 'noncore/todayplugins/fortune/fortunepluginwidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/todayplugins/fortune/fortunepluginwidget.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/noncore/todayplugins/fortune/fortunepluginwidget.cpp b/noncore/todayplugins/fortune/fortunepluginwidget.cpp index 3aa978c..c3ee546 100644 --- a/noncore/todayplugins/fortune/fortunepluginwidget.cpp +++ b/noncore/todayplugins/fortune/fortunepluginwidget.cpp @@ -17,24 +17,26 @@ #include "fortunepluginwidget.h" #include <qpe/config.h> #include <qpe/qcopenvelope_qws.h> #include <qvaluelist.h> #include <qtl.h> #include <qstring.h> #include <qscrollview.h> #include <qobject.h> #include <qlayout.h> +using namespace Opie::Core; +using namespace Opie::Ui; FortunePluginWidget::FortunePluginWidget( QWidget *parent, const char* name ) : QWidget( parent, name ) { fortune = NULL; getFortune(); } FortunePluginWidget::~FortunePluginWidget() { if( fortuneProcess ){ delete fortuneProcess; } @@ -52,26 +54,26 @@ void FortunePluginWidget::getFortune() { } fortune = new OTicker( this ); // fortune->setReadOnly( TRUE ); // fortune->setSizePolicy( QSizePolicy( QSizePolicy::Minimum, QSizePolicy::Minimum ) ); fortune->setText( QString("Obtaining fortune...") ); layoutFortune->addWidget( fortune ); fortuneProcess = new OProcess(); *fortuneProcess << "fortune"; - connect(fortuneProcess, SIGNAL(receivedStdout(OProcess*,char*,int) ), - this, SLOT(slotStdOut(OProcess*,char*,int) ) ); + connect(fortuneProcess, SIGNAL(receivedStdout(Opie::Core::OProcess*,char*,int) ), + this, SLOT(slotStdOut(Opie::Core::OProcess*,char*,int) ) ); if(!fortuneProcess->start(OProcess::NotifyOnExit, OProcess::AllOutput) ) { qWarning("could not start :("); fortune->setText( QString("Failed to obtain fortune.") ); delete fortuneProcess; fortuneProcess = 0; } } void FortunePluginWidget::slotStdOut( OProcess* /*proc*/, char* buf, int len ) { |