Diffstat (limited to 'noncore/todayplugins/fortune') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/todayplugins/fortune/fortunepluginwidget.cpp | 6 | ||||
-rw-r--r-- | noncore/todayplugins/fortune/fortunepluginwidget.h | 6 |
2 files changed, 7 insertions, 5 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 ) { diff --git a/noncore/todayplugins/fortune/fortunepluginwidget.h b/noncore/todayplugins/fortune/fortunepluginwidget.h index abb7bed..1b71430 100644 --- a/noncore/todayplugins/fortune/fortunepluginwidget.h +++ b/noncore/todayplugins/fortune/fortunepluginwidget.h @@ -24,22 +24,22 @@ #include <qwidget.h> class FortunePluginWidget : public QWidget { Q_OBJECT public: FortunePluginWidget( QWidget *parent, const char *name ); ~FortunePluginWidget(); private: - OTicker *fortune; - OProcess *fortuneProcess; + Opie::Ui::OTicker *fortune; + Opie::Core::OProcess *fortuneProcess; void getFortune(); private slots: - void slotStdOut( OProcess*, char*, int ); + void slotStdOut( Opie::Core::OProcess*, char*, int ); }; #endif |