author | llornkcor <llornkcor> | 2002-11-05 03:08:57 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-11-05 03:08:57 (UTC) |
commit | 7baa63828530612f972eb9a157abafa794b3b63a (patch) (unidiff) | |
tree | 89903e7d6652ab589e22c4f18670f1571e7d96bd | |
parent | 400ab91d83abc1247de58351ceed7d698bd61623 (diff) | |
download | opie-7baa63828530612f972eb9a157abafa794b3b63a.zip opie-7baa63828530612f972eb9a157abafa794b3b63a.tar.gz opie-7baa63828530612f972eb9a157abafa794b3b63a.tar.bz2 |
changed icon
4 files changed, 6 insertions, 6 deletions
diff --git a/noncore/todayplugins/stockticker/opie-today-stocktickerplugin.control b/noncore/todayplugins/stockticker/opie-today-stocktickerplugin.control index ddfe9b0..128b7cd 100644 --- a/noncore/todayplugins/stockticker/opie-today-stocktickerplugin.control +++ b/noncore/todayplugins/stockticker/opie-today-stocktickerplugin.control | |||
@@ -1,8 +1,8 @@ | |||
1 | Files: plugins/today/libtodaystocktickerplugin.so* bin/stockticker | 1 | Files: plugins/today/libtodaystocktickerplugin.so* bin/stockticker pics/stockticker/stockticker.png |
2 | Priority: optional | 2 | Priority: optional |
3 | Section: opie/applications | 3 | Section: opie/applications |
4 | Maintainer: ljp <llornkcor@handhelds.org> | 4 | Maintainer: ljp <llornkcor@handhelds.org> |
5 | Architecture: arm | 5 | Architecture: arm |
6 | Version: $QPE_VERSION-$SUB_VERSION | 6 | Version: $QPE_VERSION-$SUB_VERSION |
7 | Depends: qt-embedded (>=$QTE_VERSION), opie-today | 7 | Depends: qt-embedded (>=$QTE_VERSION), opie-today |
8 | Description: stockticker plugin for today | 8 | Description: stockticker plugin for today |
diff --git a/noncore/todayplugins/stockticker/stocktickerlib/stocktickerplugin.cpp b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerplugin.cpp index 2eb1697..628431c 100644 --- a/noncore/todayplugins/stockticker/stocktickerlib/stocktickerplugin.cpp +++ b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerplugin.cpp | |||
@@ -21,40 +21,40 @@ | |||
21 | 21 | ||
22 | StockTickerPlugin::StockTickerPlugin() { | 22 | StockTickerPlugin::StockTickerPlugin() { |
23 | } | 23 | } |
24 | 24 | ||
25 | StockTickerPlugin::~StockTickerPlugin() { | 25 | StockTickerPlugin::~StockTickerPlugin() { |
26 | } | 26 | } |
27 | 27 | ||
28 | QString StockTickerPlugin::pluginName() const { | 28 | QString StockTickerPlugin::pluginName() const { |
29 | return QObject::tr( "StockTicker plugin" ); | 29 | return QObject::tr( "StockTicker plugin" ); |
30 | } | 30 | } |
31 | 31 | ||
32 | double StockTickerPlugin::versionNumber() const { | 32 | double StockTickerPlugin::versionNumber() const { |
33 | return 0.6; | 33 | return 0.6; |
34 | } | 34 | } |
35 | 35 | ||
36 | QString StockTickerPlugin::pixmapNameWidget() const { | 36 | QString StockTickerPlugin::pixmapNameWidget() const { |
37 | return "pass"; | 37 | return "stockticker/stockticker"; |
38 | } | 38 | } |
39 | 39 | ||
40 | QWidget* StockTickerPlugin::widget( QWidget * wid ) { | 40 | QWidget* StockTickerPlugin::widget( QWidget * wid ) { |
41 | return new StockTickerPluginWidget( wid, "StockTicker " ); | 41 | return new StockTickerPluginWidget( wid, "StockTicker " ); |
42 | } | 42 | } |
43 | 43 | ||
44 | QString StockTickerPlugin::pixmapNameConfig() const { | 44 | QString StockTickerPlugin::pixmapNameConfig() const { |
45 | return 0l; | 45 | return "stockticker/stockticker"; |
46 | } | 46 | } |
47 | 47 | ||
48 | TodayConfigWidget* StockTickerPlugin::configWidget( QWidget* wid ) { | 48 | TodayConfigWidget* StockTickerPlugin::configWidget( QWidget* wid ) { |
49 | return new StocktickerPluginConfig( wid , "Stockticker" ); | 49 | return new StocktickerPluginConfig( wid , "Stockticker" ); |
50 | } | 50 | } |
51 | 51 | ||
52 | QString StockTickerPlugin::appName() const { | 52 | QString StockTickerPlugin::appName() const { |
53 | return "stockticker"; | 53 | return "stockticker"; |
54 | } | 54 | } |
55 | 55 | ||
56 | bool StockTickerPlugin::excludeFromRefresh() const { | 56 | bool StockTickerPlugin::excludeFromRefresh() const { |
57 | 57 | ||
58 | return true; | 58 | return true; |
59 | } | 59 | } |
60 | 60 | ||
diff --git a/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp index 572a720..1d53344 100644 --- a/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp +++ b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp | |||
@@ -239,52 +239,52 @@ void StockTickerPluginWidget::init() { | |||
239 | void StockTickerPluginWidget::doStocks() { | 239 | void StockTickerPluginWidget::doStocks() { |
240 | Config cfg( "stockticker"); | 240 | Config cfg( "stockticker"); |
241 | cfg.setGroup( "Symbols" ); | 241 | cfg.setGroup( "Symbols" ); |
242 | QString symbollist; | 242 | QString symbollist; |
243 | symbollist = cfg.readEntry("Symbols", ""); | 243 | symbollist = cfg.readEntry("Symbols", ""); |
244 | symbollist.replace(QRegExp(" "),"+");//seperated by + | 244 | symbollist.replace(QRegExp(" "),"+");//seperated by + |
245 | 245 | ||
246 | // qDebug(symbollist); | 246 | // qDebug(symbollist); |
247 | if (!symbollist.isEmpty()) { | 247 | if (!symbollist.isEmpty()) { |
248 | pthread_t thread1; | 248 | pthread_t thread1; |
249 | pthread_create(&thread1,NULL, (void * (*)(void *))getStocks, &symbollist); | 249 | pthread_create(&thread1,NULL, (void * (*)(void *))getStocks, &symbollist); |
250 | } | 250 | } |
251 | // pthread_join(thread1,NULL); | 251 | // pthread_join(thread1,NULL); |
252 | // getStocks( symbollist.latin1() ); | 252 | // getStocks( symbollist.latin1() ); |
253 | } | 253 | } |
254 | 254 | ||
255 | void StockTickerPluginWidget::DefProxy(void) { | 255 | //void StockTickerPluginWidget::DefProxy(void) { |
256 | // char *proxy; | 256 | // char *proxy; |
257 | // libstocks_return_code error; | 257 | // libstocks_return_code error; |
258 | 258 | ||
259 | // /* Proxy support */ | 259 | // /* Proxy support */ |
260 | // /* Checks for "http_proxy" environment variable */ | 260 | // /* Checks for "http_proxy" environment variable */ |
261 | // proxy = getenv("http_proxy"); | 261 | // proxy = getenv("http_proxy"); |
262 | // if(proxy) { | 262 | // if(proxy) { |
263 | // /* printf("proxy set\n"); */ | 263 | // /* printf("proxy set\n"); */ |
264 | // error = set_proxy(proxy); | 264 | // error = set_proxy(proxy); |
265 | // if (error) { | 265 | // if (error) { |
266 | // // printf("Proxy error (%d)\n", error); | 266 | // // printf("Proxy error (%d)\n", error); |
267 | // QString tempString; | 267 | // QString tempString; |
268 | // tempString.sprintf("Proxy error (%d)\n", error); | 268 | // tempString.sprintf("Proxy error (%d)\n", error); |
269 | // output = tempString; | 269 | // output = tempString; |
270 | // return; | 270 | // return; |
271 | // // exit(1); | 271 | // // exit(1); |
272 | // } | 272 | // } |
273 | // } | 273 | // } |
274 | } | 274 | //} |
275 | 275 | ||
276 | void StockTickerPluginWidget::timerEvent( QTimerEvent *e ) { | 276 | void StockTickerPluginWidget::timerEvent( QTimerEvent *e ) { |
277 | killTimer(e->timerId()); | 277 | killTimer(e->timerId()); |
278 | checkConnection(); | 278 | checkConnection(); |
279 | } | 279 | } |
280 | 280 | ||
281 | void StockTickerPluginWidget::checkConnection() { | 281 | void StockTickerPluginWidget::checkConnection() { |
282 | // qDebug("checking connection"); | 282 | // qDebug("checking connection"); |
283 | // Sock = new QSocket( this ); | 283 | // Sock = new QSocket( this ); |
284 | 284 | ||
285 | // if( wasError) | 285 | // if( wasError) |
286 | // stocktickerTicker->setText("Checking connection"); | 286 | // stocktickerTicker->setText("Checking connection"); |
287 | 287 | ||
288 | // if(Sock->state() == QSocket::Idle) { | 288 | // if(Sock->state() == QSocket::Idle) { |
289 | // Sock->connectToHost("finance.yahoo.com", 80); | 289 | // Sock->connectToHost("finance.yahoo.com", 80); |
290 | // connect( Sock, SIGNAL( error(int) ), SLOT(socketError(int)) ); | 290 | // connect( Sock, SIGNAL( error(int) ), SLOT(socketError(int)) ); |
diff --git a/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.h b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.h index c8de806..970a561 100644 --- a/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.h +++ b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.h | |||
@@ -41,21 +41,21 @@ class StockTickerPluginWidget : public QWidget { | |||
41 | Q_OBJECT | 41 | Q_OBJECT |
42 | 42 | ||
43 | public: | 43 | public: |
44 | StockTickerPluginWidget( QWidget *parent, const char *name ); | 44 | StockTickerPluginWidget( QWidget *parent, const char *name ); |
45 | ~StockTickerPluginWidget(); | 45 | ~StockTickerPluginWidget(); |
46 | 46 | ||
47 | protected slots: | 47 | protected slots: |
48 | void doStocks(); | 48 | void doStocks(); |
49 | void isConnected(); | 49 | void isConnected(); |
50 | void socketError(int); | 50 | void socketError(int); |
51 | void checkConnection(); | 51 | void checkConnection(); |
52 | private: | 52 | private: |
53 | bool wasError; | 53 | bool wasError; |
54 | QSocket *Sock; | 54 | QSocket *Sock; |
55 | void timerEvent( QTimerEvent * ); | 55 | void timerEvent( QTimerEvent * ); |
56 | void init(); | 56 | void init(); |
57 | void DefProxy(void); | 57 | // void DefProxy(void); |
58 | int timerDelay; | 58 | int timerDelay; |
59 | }; | 59 | }; |
60 | 60 | ||
61 | #endif | 61 | #endif |