author | llornkcor <llornkcor> | 2002-11-01 17:09:20 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-11-01 17:09:20 (UTC) |
commit | 47d6a3119a7b46d25ce35fb2abda9c2bf3fa3f69 (patch) (unidiff) | |
tree | 5218237e5668bac0e6c60f098f40d24e1784594d | |
parent | 800932401b86a43cd52f9cbc2833b2795d1c955b (diff) | |
download | opie-47d6a3119a7b46d25ce35fb2abda9c2bf3fa3f69.zip opie-47d6a3119a7b46d25ce35fb2abda9c2bf3fa3f69.tar.gz opie-47d6a3119a7b46d25ce35fb2abda9c2bf3fa3f69.tar.bz2 |
fix
-rw-r--r-- | noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp index e178338..cc1bbbb 100644 --- a/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp +++ b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp | |||
@@ -203,53 +203,54 @@ void StockTickerPluginWidget::getStocks( const char *blah) { | |||
203 | if(domaxPriceCheck) | 203 | if(domaxPriceCheck) |
204 | output +=tempString; | 204 | output +=tempString; |
205 | 205 | ||
206 | // printf("| Var | %-6.2f (%5.2f %%) |\n", stocks_tmp->Variation, stocks_tmp->Pourcentage); | 206 | // printf("| Var | %-6.2f (%5.2f %%) |\n", stocks_tmp->Variation, stocks_tmp->Pourcentage); |
207 | tempString.sprintf("| Var %-6.2f (%5.2f %%) ", stocks_tmp->Variation, stocks_tmp->Pourcentage); | 207 | tempString.sprintf("| Var %-6.2f (%5.2f %%) ", stocks_tmp->Variation, stocks_tmp->Pourcentage); |
208 | if(dovariationCheck) | 208 | if(dovariationCheck) |
209 | output +=tempString; | 209 | output +=tempString; |
210 | 210 | ||
211 | // printf("| Volume | %-9d |\n", stocks_tmp->Volume); | 211 | // printf("| Volume | %-9d |\n", stocks_tmp->Volume); |
212 | tempString.sprintf("| Volume %-9d ", stocks_tmp->Volume); | 212 | tempString.sprintf("| Volume %-9d ", stocks_tmp->Volume); |
213 | if(dovolumeCheck) | 213 | if(dovolumeCheck) |
214 | output +=tempString; | 214 | output +=tempString; |
215 | 215 | ||
216 | // printf("----------------------------------------\n\n"); | 216 | // printf("----------------------------------------\n\n"); |
217 | tempString.sprintf("||==++==|"); | 217 | tempString.sprintf("||==++==|"); |
218 | output +=tempString; | 218 | output +=tempString; |
219 | 219 | ||
220 | /* Simple function which help to browse in the stocks list */ | 220 | /* Simple function which help to browse in the stocks list */ |
221 | stocks_tmp = next_stock(stocks_tmp); | 221 | stocks_tmp = next_stock(stocks_tmp); |
222 | } | 222 | } |
223 | 223 | ||
224 | /* frees stocks */ | 224 | /* frees stocks */ |
225 | free_stocks(stocks_quotes); | 225 | free_stocks(stocks_quotes); |
226 | 226 | ||
227 | } | 227 | } |
228 | 228 | ||
229 | void StockTickerPluginWidget::DefProxy(void) { | 229 | void StockTickerPluginWidget::DefProxy(void) { |
230 | char *proxy; | 230 | char *proxy; |
231 | libstocks_return_code error; | 231 | libstocks_return_code error; |
232 | 232 | ||
233 | /* Proxy support */ | 233 | /* Proxy support */ |
234 | /* Checks for "http_proxy" environment variable */ | 234 | /* Checks for "http_proxy" environment variable */ |
235 | proxy = getenv("http_proxy"); | 235 | proxy = getenv("http_proxy"); |
236 | if(proxy) { | 236 | if(proxy) { |
237 | /* printf("proxy set\n"); */ | 237 | /* printf("proxy set\n"); */ |
238 | error = set_proxy(proxy); | 238 | error = set_proxy(proxy); |
239 | if (error) { | 239 | if (error) { |
240 | // printf("Proxy error (%d)\n", error); | 240 | // printf("Proxy error (%d)\n", error); |
241 | QString tempString; | 241 | QString tempString; |
242 | tempString.sprintf("Proxy error (%d)\n", error); | 242 | tempString.sprintf("Proxy error (%d)\n", error); |
243 | output = tempString; | 243 | output = tempString; |
244 | return; | 244 | return; |
245 | // exit(1); | 245 | // exit(1); |
246 | } | 246 | } |
247 | } | 247 | } |
248 | } | 248 | } |
249 | 249 | ||
250 | void StockTickerPluginWidget::timerEvent( QTimerEvent *e ) { | 250 | void StockTickerPluginWidget::timerEvent( QTimerEvent *e ) { |
251 | qDebug("timer"); | ||
251 | killTimer(e->timerId()); | 252 | killTimer(e->timerId()); |
252 | doStocks(); | 253 | doStocks(); |
253 | if(timerDelay > 0) | 254 | if(timerDelay > 0) |
254 | startTimer(timerDelay*1000); | 255 | startTimer(timerDelay*60000); |
255 | } | 256 | } |