summaryrefslogtreecommitdiff
path: root/noncore/todayplugins
authordrw <drw>2004-03-02 16:46:08 (UTC)
committer drw <drw>2004-03-02 16:46:08 (UTC)
commit42008f6bc88cde6d0ed49187e4c2df14f178d1c0 (patch) (unidiff)
treeed62b583edc5dd9e1d6ece37153715ad60bee099 /noncore/todayplugins
parentef17e26cb4d883bf59171d2dcac808cfe2b1372e (diff)
downloadopie-42008f6bc88cde6d0ed49187e4c2df14f178d1c0.zip
opie-42008f6bc88cde6d0ed49187e4c2df14f178d1c0.tar.gz
opie-42008f6bc88cde6d0ed49187e4c2df14f178d1c0.tar.bz2
Today fortune plugin: libopie -> libopie2
Diffstat (limited to 'noncore/todayplugins') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/todayplugins/fortune/config.in1
-rw-r--r--noncore/todayplugins/fortune/fortune.pro2
-rw-r--r--noncore/todayplugins/fortune/fortuneplugin.cpp2
-rw-r--r--noncore/todayplugins/fortune/fortuneplugin.h6
-rw-r--r--noncore/todayplugins/fortune/fortunepluginimpl.h2
-rw-r--r--noncore/todayplugins/fortune/fortunepluginwidget.cpp17
-rw-r--r--noncore/todayplugins/fortune/fortunepluginwidget.h7
-rw-r--r--noncore/todayplugins/fortune/opie-today-fortuneplugin.control2
8 files changed, 18 insertions, 21 deletions
diff --git a/noncore/todayplugins/fortune/config.in b/noncore/todayplugins/fortune/config.in
index 1f9a08b..ca476f1 100644
--- a/noncore/todayplugins/fortune/config.in
+++ b/noncore/todayplugins/fortune/config.in
@@ -1,4 +1,5 @@
1 config TODAY_FORTUNE 1 config TODAY_FORTUNE
2 boolean "opie-today-fortuneplugin (a joke a day keeps the doctor away)" 2 boolean "opie-today-fortuneplugin (a joke a day keeps the doctor away)"
3 default "y" 3 default "y"
4 depends (LIBQPE || LIBQPE-X11) && LIBOPIE2CORE && LIBOPIE2UI && LIBOPIE2PIM && TODAY
4 depends TODAY 5 depends TODAY
diff --git a/noncore/todayplugins/fortune/fortune.pro b/noncore/todayplugins/fortune/fortune.pro
index 3446732..84a5730 100644
--- a/noncore/todayplugins/fortune/fortune.pro
+++ b/noncore/todayplugins/fortune/fortune.pro
@@ -13,7 +13,7 @@ INCLUDEPATH += $(OPIEDIR)/include \
13DEPENDPATH += $(OPIEDIR)/include \ 13DEPENDPATH += $(OPIEDIR)/include \
14 ../ ../library 14 ../ ../library
15 15
16LIBS+= -lqpe -lopie 16LIBS+= -lqpe -lopiecore2 -lopiepim2 -lopieui2
17 17
18DESTDIR = $(OPIEDIR)/plugins/today 18DESTDIR = $(OPIEDIR)/plugins/today
19TARGET = todayfortuneplugin 19TARGET = todayfortuneplugin
diff --git a/noncore/todayplugins/fortune/fortuneplugin.cpp b/noncore/todayplugins/fortune/fortuneplugin.cpp
index 9751e6f..69d2c45 100644
--- a/noncore/todayplugins/fortune/fortuneplugin.cpp
+++ b/noncore/todayplugins/fortune/fortuneplugin.cpp
@@ -53,7 +53,7 @@ QString FortunePlugin::pixmapNameConfig() const
53 return "Fortune"; 53 return "Fortune";
54} 54}
55 55
56TodayConfigWidget* FortunePlugin::configWidget( QWidget* wid ) 56TodayConfigWidget* FortunePlugin::configWidget( QWidget* /*wid*/ )
57{ 57{
58// return new FortunePluginConfig( wid , "Fortune" ); 58// return new FortunePluginConfig( wid , "Fortune" );
59 return NULL; 59 return NULL;
diff --git a/noncore/todayplugins/fortune/fortuneplugin.h b/noncore/todayplugins/fortune/fortuneplugin.h
index 9376771..9b590ad 100644
--- a/noncore/todayplugins/fortune/fortuneplugin.h
+++ b/noncore/todayplugins/fortune/fortuneplugin.h
@@ -17,12 +17,12 @@
17#ifndef FORTUNE_PLUGIN_H 17#ifndef FORTUNE_PLUGIN_H
18#define FORTUNE_PLUGIN_H 18#define FORTUNE_PLUGIN_H
19 19
20#include <opie2/oclickablelabel.h>
21#include <opie2/todayplugininterface.h>
22
20#include <qstring.h> 23#include <qstring.h>
21#include <qwidget.h> 24#include <qwidget.h>
22 25
23#include <opie/oclickablelabel.h>
24#include <opie/todayplugininterface.h>
25
26class FortunePlugin : public TodayPluginObject 26class FortunePlugin : public TodayPluginObject
27{ 27{
28 28
diff --git a/noncore/todayplugins/fortune/fortunepluginimpl.h b/noncore/todayplugins/fortune/fortunepluginimpl.h
index 8e380f5..35ecf92 100644
--- a/noncore/todayplugins/fortune/fortunepluginimpl.h
+++ b/noncore/todayplugins/fortune/fortunepluginimpl.h
@@ -17,7 +17,7 @@
17#ifndef FORTUNE_PLUGIN_IMPL_H 17#ifndef FORTUNE_PLUGIN_IMPL_H
18#define FORTUNE_PLUGIN_IMPL_H 18#define FORTUNE_PLUGIN_IMPL_H
19 19
20#include <opie/todayplugininterface.h> 20#include <opie2/todayplugininterface.h>
21 21
22class FortunePlugin; 22class FortunePlugin;
23 23
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
@@ -16,6 +16,9 @@
16 16
17#include "fortunepluginwidget.h" 17#include "fortunepluginwidget.h"
18 18
19#include <qpe/config.h>
20#include <qpe/qcopenvelope_qws.h>
21
19#include <qvaluelist.h> 22#include <qvaluelist.h>
20#include <qtl.h> 23#include <qtl.h>
21#include <qstring.h> 24#include <qstring.h>
@@ -23,12 +26,6 @@
23#include <qobject.h> 26#include <qobject.h>
24#include <qlayout.h> 27#include <qlayout.h>
25 28
26#include <qpe/config.h>
27#include <qpe/qcopenvelope_qws.h>
28
29#include <opie/oprocess.h>
30#include <opie/oticker.h>
31
32FortunePluginWidget::FortunePluginWidget( QWidget *parent, const char* name ) 29FortunePluginWidget::FortunePluginWidget( QWidget *parent, const char* name )
33 : QWidget( parent, name ) 30 : QWidget( parent, name )
34{ 31{
@@ -63,20 +60,20 @@ void FortunePluginWidget::getFortune() {
63 60
64 fortuneProcess = new OProcess(); 61 fortuneProcess = new OProcess();
65 *fortuneProcess << "fortune"; 62 *fortuneProcess << "fortune";
66 63
67 connect(fortuneProcess, SIGNAL(receivedStdout(OProcess*,char*,int) ), 64 connect(fortuneProcess, SIGNAL(receivedStdout(OProcess*,char*,int) ),
68 this, SLOT(slotStdOut(OProcess*,char*,int) ) ); 65 this, SLOT(slotStdOut(OProcess*,char*,int) ) );
69 66
70 if(!fortuneProcess->start(OProcess::NotifyOnExit, OProcess::AllOutput) ) { 67 if(!fortuneProcess->start(OProcess::NotifyOnExit, OProcess::AllOutput) ) {
71 qWarning("could not start :("); 68 qWarning("could not start :(");
72 fortune->setText( QString("Failed to obtain fortune.") ); 69 fortune->setText( QString("Failed to obtain fortune.") );
73 delete fortuneProcess; 70 delete fortuneProcess;
74 fortuneProcess = 0; 71 fortuneProcess = 0;
75 } 72 }
76 73
77} 74}
78 75
79void FortunePluginWidget::slotStdOut( OProcess* proc, char* buf, int len ) 76void FortunePluginWidget::slotStdOut( OProcess* /*proc*/, char* buf, int len )
80{ 77{
81 QCString s( buf, len ); 78 QCString s( buf, len );
82 s.replace( QRegExp("\n"), "" ); 79 s.replace( QRegExp("\n"), "" );
diff --git a/noncore/todayplugins/fortune/fortunepluginwidget.h b/noncore/todayplugins/fortune/fortunepluginwidget.h
index 302d046..abb7bed 100644
--- a/noncore/todayplugins/fortune/fortunepluginwidget.h
+++ b/noncore/todayplugins/fortune/fortunepluginwidget.h
@@ -17,13 +17,12 @@
17#ifndef FORTUNE_PLUGIN_WIDGET_H 17#ifndef FORTUNE_PLUGIN_WIDGET_H
18#define FORTUNE_PLUGIN_WIDGET_H 18#define FORTUNE_PLUGIN_WIDGET_H
19 19
20#include <opie2/oprocess.h>
21#include <opie2/oticker.h>
22
20#include <qstring.h> 23#include <qstring.h>
21#include <qwidget.h> 24#include <qwidget.h>
22 25
23#include <opie/oticker.h>
24#include <opie/oprocess.h>
25
26
27class FortunePluginWidget : public QWidget 26class FortunePluginWidget : public QWidget
28{ 27{
29 28
diff --git a/noncore/todayplugins/fortune/opie-today-fortuneplugin.control b/noncore/todayplugins/fortune/opie-today-fortuneplugin.control
index 48ddab1..9b7adbe 100644
--- a/noncore/todayplugins/fortune/opie-today-fortuneplugin.control
+++ b/noncore/todayplugins/fortune/opie-today-fortuneplugin.control
@@ -4,6 +4,6 @@ Priority: optional
4Section: opie/plugins 4Section: opie/plugins
5Maintainer: Chris Larson <kergoth@handhelds.org> 5Maintainer: Chris Larson <kergoth@handhelds.org>
6Architecture: arm 6Architecture: arm
7Depends: opie-today, fortune (<=9708-0.1) | fortune-mod 7Depends: opie-today, fortune (<=9708-0.1) | fortune-mod, libopiecore2, libopiepim2, libopieui2
8Description: 'fortune' plugin for Today 8Description: 'fortune' plugin for Today
9Version: $QPE_VERSION$EXTRAVERSION 9Version: $QPE_VERSION$EXTRAVERSION