00001 // Copyright (c) 2000-2001 Brad Hughes <bhughes@trolltech.com> 00002 // 00003 // Use, modification and distribution is allowed without limitation, 00004 // warranty, or liability of any kind. 00005 // 00006 00007 #ifndef INPUT_H 00008 #define INPUT_H 00009 00010 class StreamInput; 00011 00012 #include <qurl.h> 00013 #include <qsocket.h> 00014 00015 00016 class StreamInput : public QObject 00017 { 00018 Q_OBJECT 00019 public: 00020 StreamInput(const QUrl &); 00021 00022 QIODevice *socket() { return sock; } 00023 00024 void setup(); 00025 00026 00027 private slots: 00028 void hostfound(); 00029 void connected(); 00030 void readyread(); 00031 void error(int); 00032 00033 00034 private: 00035 QCString request; 00036 QUrl url; 00037 QSocket *sock; 00038 int stage; 00039 }; 00040 00041 00042 #endif // INPUT_H
1.5.5