Diffstat (limited to 'noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.h | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.h b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.h index 26472fa..c8de806 100644 --- a/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.h +++ b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.h | |||
@@ -13,53 +13,49 @@ | |||
13 | * (at your option) any later version. * | 13 | * (at your option) any later version. * |
14 | * * | 14 | * * |
15 | ***************************************************************************/ | 15 | ***************************************************************************/ |
16 | 16 | ||
17 | 17 | ||
18 | #ifndef STOCKTICKERL_PLUGIN_WIDGET_H | 18 | #ifndef STOCKTICKERL_PLUGIN_WIDGET_H |
19 | #define STOCKTICKERL_PLUGIN_WIDGET_H | 19 | #define STOCKTICKERL_PLUGIN_WIDGET_H |
20 | 20 | ||
21 | #include <qsocket.h> | ||
21 | #include <qstring.h> | 22 | #include <qstring.h> |
22 | #include <qwidget.h> | 23 | #include <qwidget.h> |
23 | #include <qlineedit.h> | 24 | #include <qlineedit.h> |
24 | 25 | ||
25 | #include <opie/tododb.h> | 26 | #include <opie/tododb.h> |
26 | #include <opie/oclickablelabel.h> | 27 | #include <opie/oclickablelabel.h> |
27 | #include <opie/oticker.h> | 28 | #include <opie/oticker.h> |
28 | 29 | ||
29 | #include <sys/types.h> | 30 | #include <sys/types.h> |
30 | #include <sys/uio.h> | 31 | #include <sys/uio.h> |
31 | #include <unistd.h> | 32 | #include <unistd.h> |
32 | #include <stdio.h> | 33 | #include <stdio.h> |
33 | #include <stdlib.h> | 34 | #include <stdlib.h> |
34 | #include <string.h> | 35 | #include <string.h> |
35 | 36 | ||
36 | //#include "ticker.h" | ||
37 | |||
38 | /* extern "C" { */ | ||
39 | /* #include "stocks.h" */ | ||
40 | /* } */ | ||
41 | |||
42 | class QTimer; | 37 | class QTimer; |
43 | 38 | ||
44 | class StockTickerPluginWidget : public QWidget { | 39 | class StockTickerPluginWidget : public QWidget { |
45 | 40 | ||
46 | Q_OBJECT | 41 | Q_OBJECT |
47 | 42 | ||
48 | public: | 43 | public: |
49 | StockTickerPluginWidget( QWidget *parent, const char *name ); | 44 | StockTickerPluginWidget( QWidget *parent, const char *name ); |
50 | ~StockTickerPluginWidget(); | 45 | ~StockTickerPluginWidget(); |
51 | QString output; | ||
52 | 46 | ||
53 | protected slots: | 47 | protected slots: |
54 | void doStocks(); | 48 | void doStocks(); |
55 | 49 | void isConnected(); | |
50 | void socketError(int); | ||
51 | void checkConnection(); | ||
56 | private: | 52 | private: |
57 | OTicker *stocktickerTicker; | 53 | bool wasError; |
54 | QSocket *Sock; | ||
58 | void timerEvent( QTimerEvent * ); | 55 | void timerEvent( QTimerEvent * ); |
59 | void init(); | 56 | void init(); |
60 | void getStocks( const char *stock_liste); | ||
61 | void DefProxy(void); | 57 | void DefProxy(void); |
62 | int timerDelay; | 58 | int timerDelay; |
63 | }; | 59 | }; |
64 | 60 | ||
65 | #endif | 61 | #endif |