Diffstat (limited to 'noncore/todayplugins/fortune/fortunepluginwidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/todayplugins/fortune/fortunepluginwidget.cpp | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/noncore/todayplugins/fortune/fortunepluginwidget.cpp b/noncore/todayplugins/fortune/fortunepluginwidget.cpp index e6a0d09..3aa978c 100644 --- a/noncore/todayplugins/fortune/fortunepluginwidget.cpp +++ b/noncore/todayplugins/fortune/fortunepluginwidget.cpp @@ -17,4 +17,7 @@ #include "fortunepluginwidget.h" +#include <qpe/config.h> +#include <qpe/qcopenvelope_qws.h> + #include <qvaluelist.h> #include <qtl.h> @@ -24,10 +27,4 @@ #include <qlayout.h> -#include <qpe/config.h> -#include <qpe/qcopenvelope_qws.h> - -#include <opie/oprocess.h> -#include <opie/oticker.h> - FortunePluginWidget::FortunePluginWidget( QWidget *parent, const char* name ) : QWidget( parent, name ) @@ -64,8 +61,8 @@ void FortunePluginWidget::getFortune() { fortuneProcess = new OProcess(); *fortuneProcess << "fortune"; - + connect(fortuneProcess, SIGNAL(receivedStdout(OProcess*,char*,int) ), this, SLOT(slotStdOut(OProcess*,char*,int) ) ); - + if(!fortuneProcess->start(OProcess::NotifyOnExit, OProcess::AllOutput) ) { qWarning("could not start :("); @@ -74,8 +71,8 @@ void FortunePluginWidget::getFortune() { fortuneProcess = 0; } - + } -void FortunePluginWidget::slotStdOut( OProcess* proc, char* buf, int len ) +void FortunePluginWidget::slotStdOut( OProcess* /*proc*/, char* buf, int len ) { QCString s( buf, len ); |