Diffstat (limited to 'noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.h') (more/less context) (ignore 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 | |||
@@ -18,6 +18,7 @@ | |||
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> |
@@ -33,12 +34,6 @@ | |||
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 { |
@@ -48,16 +43,17 @@ class StockTickerPluginWidget : public QWidget { | |||
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 | }; |