author | drw <drw> | 2004-03-02 16:46:08 (UTC) |
---|---|---|
committer | drw <drw> | 2004-03-02 16:46:08 (UTC) |
commit | 42008f6bc88cde6d0ed49187e4c2df14f178d1c0 (patch) (side-by-side diff) | |
tree | ed62b583edc5dd9e1d6ece37153715ad60bee099 /noncore/todayplugins/fortune/fortunepluginwidget.cpp | |
parent | ef17e26cb4d883bf59171d2dcac808cfe2b1372e (diff) | |
download | opie-42008f6bc88cde6d0ed49187e4c2df14f178d1c0.zip opie-42008f6bc88cde6d0ed49187e4c2df14f178d1c0.tar.gz opie-42008f6bc88cde6d0ed49187e4c2df14f178d1c0.tar.bz2 |
Today fortune plugin: libopie -> libopie2
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 ); |