~ubuntu-branches/ubuntu/wily/qgis/wily

« back to all changes in this revision

Viewing changes to src/helpviewer/qgshelpserver.h

  • Committer: Bazaar Package Importer
  • Author(s): Johan Van de Wauw
  • Date: 2010-07-11 20:23:24 UTC
  • mfrom: (3.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100711202324-5ktghxa7hracohmr
Tags: 1.4.0+12730-3ubuntu1
* Merge from Debian unstable (LP: #540941).
* Fix compilation issues with QT 4.7
* Add build-depends on libqt4-webkit-dev 

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 *   (at your option) any later version.                                   *
16
16
 *                                                                         *
17
17
 ***************************************************************************/
18
 
/* $Id: qgshelpserver.h 4234 2005-11-19 23:35:22Z gsherman $ */
 
18
/* $Id$ */
19
19
#ifndef QGSHELPSERVER_H
20
20
#define QGSHELPSERVER_H
21
 
#include <q3serversocket.h>
22
 
#include <q3socket.h>
 
21
#include <QTcpServer>
 
22
#include <QTcpSocket>
23
23
 
24
24
/*!
25
25
 * \class QgsHelpContextServer
26
26
 * \brief Listens for localhost connection and creates socket.
27
27
 */
28
 
class QgsHelpContextServer : public Q3ServerSocket
 
28
class QgsHelpContextServer : public QTcpServer
29
29
{
30
 
  Q_OBJECT
31
 
public:
32
 
  QgsHelpContextServer(QObject* parent = 0);
33
 
  ~QgsHelpContextServer();
34
 
  virtual void newConnection(int socket);
35
 
 
36
 
signals:
37
 
  void setContext(const QString&);
 
30
    Q_OBJECT
 
31
  public:
 
32
    QgsHelpContextServer( QObject *parent = 0 );
 
33
    ~QgsHelpContextServer();
 
34
 
 
35
  public slots:
 
36
    void incomingConnection( int socket );
 
37
 
 
38
  signals:
 
39
    void setContext( const QString& );
38
40
};
39
41
 
40
42
/*!
41
43
 * \class QgsHelpContextSocket
42
44
 * \brief Receives and passes context numbers to viewer.
43
45
 */
44
 
class QgsHelpContextSocket : public Q3Socket
 
46
class QgsHelpContextSocket : public QTcpSocket
45
47
{
46
 
  Q_OBJECT
47
 
public:
48
 
  QgsHelpContextSocket(int socket, QObject *parent = 0);
49
 
  ~QgsHelpContextSocket();
50
 
 
51
 
signals:
52
 
  void setContext(const QString&);
53
 
 
54
 
private slots:
55
 
  void readClient();
 
48
    Q_OBJECT
 
49
  public:
 
50
    QgsHelpContextSocket( int socket, QObject *parent = 0 );
 
51
    ~QgsHelpContextSocket();
 
52
 
 
53
  signals:
 
54
    void setContext( const QString& );
 
55
 
 
56
  private slots:
 
57
    void readClient();
56
58
};
57
59
 
58
60
#endif // QGSHELPSERVER_H