/*************************************************************************** * Copyright (C) 2003 by Torben Nielsen * * torben.nielsen@rocketmail.com * * * * 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 SERVERSPY_H #define SERVERSPY_H #include #include #include /** @author Torben Nielsen */ class Serverspy : public ServerspyBase { Q_OBJECT public: Serverspy(QWidget *parent = 0, const char *name = 0, WFlags f = 0); ~Serverspy(); public slots: void findServer(); void socketHostFound(); void socketConnected(); void socketError(int err); void socketReadyRead(); void socketTimeout(); private: QSocket m_socket; QTimer *m_timer; }; #endif