summaryrefslogtreecommitdiff
path: root/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.h
Side-by-side diff
Diffstat (limited to 'noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.h16
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
@@ -9,57 +9,53 @@
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef STOCKTICKERL_PLUGIN_WIDGET_H
#define STOCKTICKERL_PLUGIN_WIDGET_H
+#include <qsocket.h>
#include <qstring.h>
#include <qwidget.h>
#include <qlineedit.h>
#include <opie/tododb.h>
#include <opie/oclickablelabel.h>
#include <opie/oticker.h>
#include <sys/types.h>
#include <sys/uio.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-//#include "ticker.h"
-
-/* extern "C" { */
-/* #include "stocks.h" */
-/* } */
-
class QTimer;
class StockTickerPluginWidget : public QWidget {
Q_OBJECT
public:
StockTickerPluginWidget( QWidget *parent, const char *name );
~StockTickerPluginWidget();
- QString output;
protected slots:
void doStocks();
-
+ void isConnected();
+ void socketError(int);
+ void checkConnection();
private:
- OTicker *stocktickerTicker;
+ bool wasError;
+ QSocket *Sock;
void timerEvent( QTimerEvent * );
void init();
- void getStocks( const char *stock_liste);
void DefProxy(void);
int timerDelay;
};
#endif