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 /noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp | |
parent | 400ab91d83abc1247de58351ceed7d698bd61623 (diff) | |
download | opie-7baa63828530612f972eb9a157abafa794b3b63a.zip opie-7baa63828530612f972eb9a157abafa794b3b63a.tar.gz opie-7baa63828530612f972eb9a157abafa794b3b63a.tar.bz2 |
changed icon
Diffstat (limited to 'noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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 | |||
@@ -243,44 +243,44 @@ void StockTickerPluginWidget::doStocks() { | |||
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"); |