1 |
torben |
328 |
/*************************************************************************** |
2 |
|
|
* Copyright (C) 2003 by Torben Nielsen * |
3 |
|
|
* torben.nielsen@rocketmail.com * |
4 |
|
|
* * |
5 |
|
|
* This program is free software; you can redistribute it and/or modify * |
6 |
|
|
* it under the terms of the GNU General Public License as published by * |
7 |
|
|
* the Free Software Foundation; either version 2 of the License, or * |
8 |
|
|
* (at your option) any later version. * |
9 |
|
|
***************************************************************************/ |
10 |
|
|
#ifndef SERVERSPY_H |
11 |
|
|
#define SERVERSPY_H |
12 |
|
|
|
13 |
|
|
#include <serverspybase.h> |
14 |
|
|
#include <qsocket.h> |
15 |
|
|
#include <qtimer.h> |
16 |
|
|
|
17 |
|
|
/** |
18 |
|
|
@author Torben Nielsen |
19 |
|
|
*/ |
20 |
|
|
class Serverspy : public ServerspyBase |
21 |
|
|
{ |
22 |
|
|
Q_OBJECT |
23 |
|
|
public: |
24 |
|
|
Serverspy(QWidget *parent = 0, const char *name = 0, WFlags f = 0); |
25 |
|
|
|
26 |
|
|
~Serverspy(); |
27 |
|
|
|
28 |
|
|
|
29 |
|
|
public slots: |
30 |
|
|
void findServer(); |
31 |
|
|
|
32 |
|
|
void socketHostFound(); |
33 |
|
|
void socketConnected(); |
34 |
|
|
void socketError(int err); |
35 |
|
|
void socketReadyRead(); |
36 |
|
|
|
37 |
|
|
void socketTimeout(); |
38 |
|
|
|
39 |
|
|
private: |
40 |
|
|
QSocket m_socket; |
41 |
|
|
QTimer *m_timer; |
42 |
|
|
}; |
43 |
|
|
|
44 |
|
|
#endif |