/[projects]/misc/serverspy/serverspy.h
ViewVC logotype

Annotation of /misc/serverspy/serverspy.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 328 - (hide annotations) (download)
Wed Sep 16 20:13:41 2009 UTC (14 years, 8 months ago) by torben
File MIME type: text/plain
File size: 1201 byte(s)
Added some old code for storage/ reference


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

  ViewVC Help
Powered by ViewVC 1.1.20