summaryrefslogtreecommitdiff
path: root/noncore
authordrw <drw>2004-03-02 16:46:08 (UTC)
committer drw <drw>2004-03-02 16:46:08 (UTC)
commit42008f6bc88cde6d0ed49187e4c2df14f178d1c0 (patch) (unidiff)
treeed62b583edc5dd9e1d6ece37153715ad60bee099 /noncore
parentef17e26cb4d883bf59171d2dcac808cfe2b1372e (diff)
downloadopie-42008f6bc88cde6d0ed49187e4c2df14f178d1c0.zip
opie-42008f6bc88cde6d0ed49187e4c2df14f178d1c0.tar.gz
opie-42008f6bc88cde6d0ed49187e4c2df14f178d1c0.tar.bz2
Today fortune plugin: libopie -> libopie2
Diffstat (limited to 'noncore') (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
@@ -10,12 +10,12 @@ SOURCES = fortuneplugin.cpp fortunepluginimpl.cpp \
10 10
11INCLUDEPATH += $(OPIEDIR)/include \ 11INCLUDEPATH += $(OPIEDIR)/include \
12 ../ ../library 12 ../ ../library
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
20 20
21include ( $(OPIEDIR)/include.pro ) 21include ( $(OPIEDIR)/include.pro )
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
@@ -50,13 +50,13 @@ QWidget* FortunePlugin::widget( QWidget *wid )
50 50
51QString FortunePlugin::pixmapNameConfig() const 51QString FortunePlugin::pixmapNameConfig() const
52{ 52{
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;
60} 60}
61 61
62QString FortunePlugin::appName() const 62QString FortunePlugin::appName() const
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
@@ -14,18 +14,18 @@
14 * * 14 * *
15 ***************************************************************************/ 15 ***************************************************************************/
16 16
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
29public: 29public:
30 FortunePlugin(); 30 FortunePlugin();
31 ~FortunePlugin(); 31 ~FortunePlugin();
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
@@ -14,13 +14,13 @@
14 * * 14 * *
15 ***************************************************************************/ 15 ***************************************************************************/
16 16
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
24class FortunePluginImpl : public TodayPluginInterface 24class FortunePluginImpl : public TodayPluginInterface
25{ 25{
26 26
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
@@ -13,25 +13,22 @@
13 * (at your option) any later version. * 13 * (at your option) any later version. *
14 * * 14 * *
15 ***************************************************************************/ 15 ***************************************************************************/
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>
22#include <qscrollview.h> 25#include <qscrollview.h>
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{
35 32
36 fortune = NULL; 33 fortune = NULL;
37 getFortune(); 34 getFortune();
@@ -60,25 +57,25 @@ void FortunePluginWidget::getFortune() {
60 57
61 fortune->setText( QString("Obtaining fortune...") ); 58 fortune->setText( QString("Obtaining fortune...") );
62 layoutFortune->addWidget( fortune ); 59 layoutFortune->addWidget( fortune );
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"), "" );
83 fortune->setText( s ); 80 fortune->setText( s );
84} 81}
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
@@ -14,19 +14,18 @@
14 * * 14 * *
15 ***************************************************************************/ 15 ***************************************************************************/
16 16
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
30 Q_OBJECT 29 Q_OBJECT
31 30
32public: 31public:
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
@@ -1,9 +1,9 @@
1Package: opie-today-fortuneplugin 1Package: opie-today-fortuneplugin
2Files: plugins/today/libtodayfortuneplugin.so* 2Files: plugins/today/libtodayfortuneplugin.so*
3Priority: optional 3Priority: 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