summaryrefslogtreecommitdiff
authordrw <drw>2004-03-02 16:38:47 (UTC)
committer drw <drw>2004-03-02 16:38:47 (UTC)
commit2c00fdd8f3b0c9680ee642a78dfd6587f32e8460 (patch) (unidiff)
treeba73624ab704354f7c14db80dc4f2322920a7407
parentc4c97ef4ccf9d379ff59560c3ae3c32f95fc51d1 (diff)
downloadopie-2c00fdd8f3b0c9680ee642a78dfd6587f32e8460.zip
opie-2c00fdd8f3b0c9680ee642a78dfd6587f32e8460.tar.gz
opie-2c00fdd8f3b0c9680ee642a78dfd6587f32e8460.tar.bz2
Today stock ticker plugin: libopie -> libopie2
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/todayplugins/stockticker/config.in2
-rw-r--r--noncore/todayplugins/stockticker/opie-today-stocktickerplugin.control2
-rw-r--r--noncore/todayplugins/stockticker/stockticker/config.in2
-rw-r--r--noncore/todayplugins/stockticker/stockticker/inputDialog.cpp3
-rw-r--r--noncore/todayplugins/stockticker/stockticker/inputDialog.h3
-rw-r--r--noncore/todayplugins/stockticker/stockticker/stockticker.pro2
-rw-r--r--noncore/todayplugins/stockticker/stocktickerlib/stocktickerconfig.cpp4
-rw-r--r--noncore/todayplugins/stockticker/stocktickerlib/stocktickerconfig.h3
-rw-r--r--noncore/todayplugins/stockticker/stocktickerlib/stocktickerlib.pro2
-rw-r--r--noncore/todayplugins/stockticker/stocktickerlib/stocktickerplugin.h9
-rw-r--r--noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp4
11 files changed, 17 insertions, 19 deletions
diff --git a/noncore/todayplugins/stockticker/config.in b/noncore/todayplugins/stockticker/config.in
index 83e7fbd..f0fd4aa 100644
--- a/noncore/todayplugins/stockticker/config.in
+++ b/noncore/todayplugins/stockticker/config.in
@@ -1,7 +1,7 @@
1 config TODAY_STOCKTICKER 1 config TODAY_STOCKTICKER
2 boolean "opie-today-stocktickerplugin (stock ticker)" 2 boolean "opie-today-stocktickerplugin (stock ticker)"
3 default "y" 3 default "y"
4 depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE && TODAY 4 depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE && LIBOPIE2PIM && LIBOPIE2UI && TODAY
5 5
6 source noncore/todayplugins/stockticker/stockticker/config.in 6 source noncore/todayplugins/stockticker/stockticker/config.in
7 source noncore/todayplugins/stockticker/stocktickerlib/config.in 7 source noncore/todayplugins/stockticker/stocktickerlib/config.in
diff --git a/noncore/todayplugins/stockticker/opie-today-stocktickerplugin.control b/noncore/todayplugins/stockticker/opie-today-stocktickerplugin.control
index 3e3bad1..f04ad64 100644
--- a/noncore/todayplugins/stockticker/opie-today-stocktickerplugin.control
+++ b/noncore/todayplugins/stockticker/opie-today-stocktickerplugin.control
@@ -1,9 +1,9 @@
1Package: opie-today-stocktickerplugin 1Package: opie-today-stocktickerplugin
2Files: plugins/today/libtodaystocktickerplugin.so* bin/stockticker pics/stockticker/stockticker.png 2Files: plugins/today/libtodaystocktickerplugin.so* bin/stockticker pics/stockticker/stockticker.png
3Priority: optional 3Priority: optional
4Section: opie/plugins 4Section: opie/plugins
5Maintainer: L.J. Potter <lpotter@trolltech.com> 5Maintainer: L.J. Potter <lpotter@trolltech.com>
6Architecture: arm 6Architecture: arm
7Depends: libqte2, opie-today 7Depends: libqte2, libopiecore2, libopiepim2, libopieui2, opie-today
8Description: Stock ticker plugin for Today 8Description: Stock ticker plugin for Today
9Version: $QPE_VERSION$EXTRAVERSION 9Version: $QPE_VERSION$EXTRAVERSION
diff --git a/noncore/todayplugins/stockticker/stockticker/config.in b/noncore/todayplugins/stockticker/stockticker/config.in
index d9e0f1f..1252b63 100644
--- a/noncore/todayplugins/stockticker/stockticker/config.in
+++ b/noncore/todayplugins/stockticker/stockticker/config.in
@@ -1,5 +1,5 @@
1config TODAY_STOCKTICKERSUB 1config TODAY_STOCKTICKERSUB
2 boolean 2 boolean
3 depends TODAY_STOCKTICKERLIB 3 depends TODAY_STOCKTICKERLIB
4 default "y" if TODAY_STOCKTICKER 4 default "y" if TODAY_STOCKTICKER
5 depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE && TODAY 5 depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE && TODAY
diff --git a/noncore/todayplugins/stockticker/stockticker/inputDialog.cpp b/noncore/todayplugins/stockticker/stockticker/inputDialog.cpp
index 64798f4..b3fa708 100644
--- a/noncore/todayplugins/stockticker/stockticker/inputDialog.cpp
+++ b/noncore/todayplugins/stockticker/stockticker/inputDialog.cpp
@@ -1,31 +1,28 @@
1#include "inputDialog.h" 1#include "inputDialog.h"
2 2
3#include <qapplication.h> 3#include <qapplication.h>
4
5#include <qlayout.h> 4#include <qlayout.h>
6#include <qcheckbox.h> 5#include <qcheckbox.h>
7#include <qlineedit.h> 6#include <qlineedit.h>
8#include <qvariant.h> 7#include <qvariant.h>
9#include <qpushbutton.h> 8#include <qpushbutton.h>
10#include <qwhatsthis.h> 9#include <qwhatsthis.h>
11#include <qlabel.h> 10#include <qlabel.h>
12#include <qlayout.h> 11#include <qlayout.h>
13#include <qpe/config.h> 12#include <qpe/config.h>
14#include <qstringlist.h> 13#include <qstringlist.h>
15#include <qmainwindow.h> 14#include <qmainwindow.h>
16#include "helpwindow.h" 15#include "helpwindow.h"
17 16
18#include <opie/oprocess.h>
19
20#include <stdlib.h> 17#include <stdlib.h>
21// #include <sys/stat.h> 18// #include <sys/stat.h>
22// #include <unistd.h> 19// #include <unistd.h>
23 20
24InputDialog::InputDialog( ) 21InputDialog::InputDialog( )
25 : QMainWindow( 0x0, 0x0, WStyle_ContextHelp ) { 22 : QMainWindow( 0x0, 0x0, WStyle_ContextHelp ) {
26 setCaption( tr("Symbol Lookup")); 23 setCaption( tr("Symbol Lookup"));
27 24
28 QGridLayout *layout = new QGridLayout( this ); 25 QGridLayout *layout = new QGridLayout( this );
29 layout->setSpacing(6); 26 layout->setSpacing(6);
30 layout->setMargin( 2); 27 layout->setMargin( 2);
31 28
diff --git a/noncore/todayplugins/stockticker/stockticker/inputDialog.h b/noncore/todayplugins/stockticker/stockticker/inputDialog.h
index 15c2f22..a1c00bd 100644
--- a/noncore/todayplugins/stockticker/stockticker/inputDialog.h
+++ b/noncore/todayplugins/stockticker/stockticker/inputDialog.h
@@ -1,20 +1,21 @@
1 1
2#ifndef INPUTDIALOG_H 2#ifndef INPUTDIALOG_H
3#define INPUTDIALOG_H 3#define INPUTDIALOG_H
4 4
5#include <opie2/oprocess.h>
6
5#include <qvariant.h> 7#include <qvariant.h>
6#include <qdialog.h> 8#include <qdialog.h>
7#include <qmainwindow.h> 9#include <qmainwindow.h>
8#include <opie/oprocess.h>
9 10
10class QLineEdit; 11class QLineEdit;
11class QCheckBox; 12class QCheckBox;
12 13
13class InputDialog : public QMainWindow { 14class InputDialog : public QMainWindow {
14 Q_OBJECT 15 Q_OBJECT
15 16
16public: 17public:
17 InputDialog( ); 18 InputDialog( );
18 ~InputDialog(); 19 ~InputDialog();
19 20
20private: 21private:
diff --git a/noncore/todayplugins/stockticker/stockticker/stockticker.pro b/noncore/todayplugins/stockticker/stockticker/stockticker.pro
index 38a9425..a33c877 100644
--- a/noncore/todayplugins/stockticker/stockticker/stockticker.pro
+++ b/noncore/todayplugins/stockticker/stockticker/stockticker.pro
@@ -1,12 +1,12 @@
1TEMPLATE = app 1TEMPLATE = app
2CONFIG = qt warn_on release 2CONFIG = qt warn_on release
3HEADERS = inputDialog.h helpwindow.h 3HEADERS = inputDialog.h helpwindow.h
4SOURCES = inputDialog.cpp helpwindow.cpp main.cpp 4SOURCES = inputDialog.cpp helpwindow.cpp main.cpp
5INTERFACES = 5INTERFACES =
6TARGET = stockticker 6TARGET = stockticker
7INCLUDEPATH += $(OPIEDIR)/include 7INCLUDEPATH += $(OPIEDIR)/include
8DEPENDPATH += $(OPIEDIR)/include 8DEPENDPATH += $(OPIEDIR)/include
9LIBS+= -lqpe -lopie 9LIBS+= -lqpe -lopiecore2
10DESTDIR = $(OPIEDIR)/bin 10DESTDIR = $(OPIEDIR)/bin
11 11
12include ( $(OPIEDIR)/include.pro ) 12include ( $(OPIEDIR)/include.pro )
diff --git a/noncore/todayplugins/stockticker/stocktickerlib/stocktickerconfig.cpp b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerconfig.cpp
index 915233a..009d390 100644
--- a/noncore/todayplugins/stockticker/stocktickerlib/stocktickerconfig.cpp
+++ b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerconfig.cpp
@@ -6,30 +6,30 @@
6 * 6 *
7 */ 7 */
8/*************************************************************************** 8/***************************************************************************
9 * * 9 * *
10 * This program is free software; you can redistribute it and/or modify * 10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by * 11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or * 12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. * 13 * (at your option) any later version. *
14 * * 14 * *
15 ***************************************************************************/ 15 ***************************************************************************/
16 16
17#include "stocktickerconfig.h" 17#include "stocktickerconfig.h"
18#include <opie/todayconfigwidget.h> 18
19#include <opie2/todayconfigwidget.h>
19 20
20#include <qpe/config.h> 21#include <qpe/config.h>
21 22
22#include <qapplication.h> 23#include <qapplication.h>
23
24#include <qlayout.h> 24#include <qlayout.h>
25#include <qspinbox.h> 25#include <qspinbox.h>
26#include <qcheckbox.h> 26#include <qcheckbox.h>
27#include <qlineedit.h> 27#include <qlineedit.h>
28#include <qvariant.h> 28#include <qvariant.h>
29#include <qpushbutton.h> 29#include <qpushbutton.h>
30#include <qwhatsthis.h> 30#include <qwhatsthis.h>
31#include <qlabel.h> 31#include <qlabel.h>
32#include <qstringlist.h> 32#include <qstringlist.h>
33#include <qmainwindow.h> 33#include <qmainwindow.h>
34 34
35#include <stdlib.h> 35#include <stdlib.h>
diff --git a/noncore/todayplugins/stockticker/stocktickerlib/stocktickerconfig.h b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerconfig.h
index 10f9678..3c852ce 100644
--- a/noncore/todayplugins/stockticker/stocktickerlib/stocktickerconfig.h
+++ b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerconfig.h
@@ -8,26 +8,27 @@
8/*************************************************************************** 8/***************************************************************************
9 * * 9 * *
10 * This program is free software; you can redistribute it and/or modify * 10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by * 11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or * 12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. * 13 * (at your option) any later version. *
14 * * 14 * *
15 ***************************************************************************/ 15 ***************************************************************************/
16 16
17#ifndef STOCKTICKER_PLUGIN_CONFIG_H 17#ifndef STOCKTICKER_PLUGIN_CONFIG_H
18#define STOCKTICKER_PLUGIN_CONFIG_H 18#define STOCKTICKER_PLUGIN_CONFIG_H
19 19
20#include <opie2/todayconfigwidget.h>
21
20#include <qwidget.h> 22#include <qwidget.h>
21#include <opie/todayconfigwidget.h>
22#include <qstring.h> 23#include <qstring.h>
23 24
24class QLineEdit; 25class QLineEdit;
25class QCheckBox; 26class QCheckBox;
26class QPushButton; 27class QPushButton;
27class QCheckBox; 28class QCheckBox;
28class QSpinBox; 29class QSpinBox;
29 30
30class StocktickerPluginConfig : public TodayConfigWidget { 31class StocktickerPluginConfig : public TodayConfigWidget {
31 Q_OBJECT 32 Q_OBJECT
32public: 33public:
33 StocktickerPluginConfig( QWidget *parent, const char *name ); 34 StocktickerPluginConfig( QWidget *parent, const char *name );
diff --git a/noncore/todayplugins/stockticker/stocktickerlib/stocktickerlib.pro b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerlib.pro
index bb22b4e..baf6430 100644
--- a/noncore/todayplugins/stockticker/stocktickerlib/stocktickerlib.pro
+++ b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerlib.pro
@@ -11,19 +11,19 @@ SOURCES = stocktickerplugin.cpp stocktickerpluginimpl.cpp stocktickerpluginwidge
11 ../libstocks/csv.c \ 11 ../libstocks/csv.c \
12 ../libstocks/currency.c \ 12 ../libstocks/currency.c \
13 ../libstocks/history.c \ 13 ../libstocks/history.c \
14 ../libstocks/http.c \ 14 ../libstocks/http.c \
15 ../libstocks/lists.c \ 15 ../libstocks/lists.c \
16 ../libstocks/stocks.c 16 ../libstocks/stocks.c
17 17
18INCLUDEPATH += $(OPIEDIR)/include \ 18INCLUDEPATH += $(OPIEDIR)/include \
19 ../ ../library 19 ../ ../library
20DEPENDPATH += $(OPIEDIR)/include \ 20DEPENDPATH += $(OPIEDIR)/include \
21 ../ ../library 21 ../ ../library
22 22
23LIBS+= -lqpe -lopie -lpthread 23LIBS+= -lqpe -lopiecore2 -lopiepim2 -lopieui2 -lpthread
24TMAKE_CFLAGS += -D__UNIX__ 24TMAKE_CFLAGS += -D__UNIX__
25 25
26DESTDIR = $(OPIEDIR)/plugins/today 26DESTDIR = $(OPIEDIR)/plugins/today
27TARGET = todaystocktickerplugin 27TARGET = todaystocktickerplugin
28 28
29include ( $(OPIEDIR)/include.pro ) 29include ( $(OPIEDIR)/include.pro )
diff --git a/noncore/todayplugins/stockticker/stocktickerlib/stocktickerplugin.h b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerplugin.h
index e88c687..42af821 100644
--- a/noncore/todayplugins/stockticker/stocktickerlib/stocktickerplugin.h
+++ b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerplugin.h
@@ -9,32 +9,31 @@
9 * * 9 * *
10 * This program is free software; you can redistribute it and/or modify * 10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by * 11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or * 12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. * 13 * (at your option) any later version. *
14 * * 14 * *
15 ***************************************************************************/ 15 ***************************************************************************/
16 16
17 17
18#ifndef STOCKTICKER_PLUGIN_H 18#ifndef STOCKTICKER_PLUGIN_H
19#define STOCKTICKER_PLUGIN_H 19#define STOCKTICKER_PLUGIN_H
20 20
21#include <opie2/oclickablelabel.h>
22#include <opie2/todayplugininterface.h>
23#include <opie2/todayconfigwidget.h>
24
21#include <qstring.h> 25#include <qstring.h>
22#include <qwidget.h> 26#include <qwidget.h>
23 27
24#include <opie/oclickablelabel.h>
25
26#include <opie/todayplugininterface.h>
27#include <opie/todayconfigwidget.h>
28
29class StockTickerPlugin : public TodayPluginObject { 28class StockTickerPlugin : public TodayPluginObject {
30 29
31public: 30public:
32 StockTickerPlugin(); 31 StockTickerPlugin();
33 ~StockTickerPlugin(); 32 ~StockTickerPlugin();
34 33
35 QString pluginName() const; 34 QString pluginName() const;
36 double versionNumber() const; 35 double versionNumber() const;
37 QString pixmapNameWidget() const; 36 QString pixmapNameWidget() const;
38 QWidget* widget(QWidget *); 37 QWidget* widget(QWidget *);
39 QString pixmapNameConfig() const; 38 QString pixmapNameConfig() const;
40 TodayConfigWidget* configWidget(QWidget *); 39 TodayConfigWidget* configWidget(QWidget *);
diff --git a/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp
index fedc79c..51113ba 100644
--- a/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp
+++ b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp
@@ -5,29 +5,29 @@
5 * email : llornkcor@handhelds.org 5 * email : llornkcor@handhelds.org
6 * 6 *
7 */ 7 */
8 /*************************************************************************** 8 /***************************************************************************
9 * * 9 * *
10 * This program is free software; you can redistribute it and/or modify * 10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by * 11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or * 12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. * 13 * (at your option) any later version. *
14 * * 14 * *
15 ***************************************************************************/ 15 ***************************************************************************/
16 16
17 #include <qlayout.h> 17 #include <opie2/oticker.h>
18 18
19 #include <qpe/config.h> 19 #include <qpe/config.h>
20 20
21 #include <opie/oticker.h> 21 #include <qlayout.h>
22 22
23 extern "C" { 23 extern "C" {
24 #include "libstocks/stocks.h" 24 #include "libstocks/stocks.h"
25 } 25 }
26 26
27 #include <pthread.h> 27 #include <pthread.h>
28 28
29 #include "stocktickerpluginwidget.h" 29 #include "stocktickerpluginwidget.h"
30 30
31 QString output; 31 QString output;
32 OTicker *stocktickerTicker; 32 OTicker *stocktickerTicker;
33 QCString stock_liste; 33 QCString stock_liste;