00001 #ifndef IGUANA_WEB_FRAMEWORK_IG_SOCKET_H
00002 # define IGUANA_WEB_FRAMEWORK_IG_SOCKET_H
00003
00004
00005
00006 #include "Iguana/WebFramework/interface/config.h"
00007 #include <qsocket.h>
00008 #include <string>
00009
00010
00011
00012
00013
00014 class IgState;
00015
00016
00017
00018
00019
00020 class IGUANA_WEB_FRAMEWORK_API IgSocket : public QSocket
00021 {
00022 Q_OBJECT
00023 public:
00024 IgSocket (IgState *state);
00025 const std::string& userAgent (void) const;
00026
00027 public slots:
00028 void dump (void);
00029
00030 private:
00031 void serverBusyMessage ();
00032 void sendData (const std::string& data);
00033 IgState * m_state;
00034 std::string m_userAgent;
00035 };
00036
00037
00038
00039
00040 #endif // IGUANA_WEB_FRAMEWORK_IG_SOCKET_H