QGIS/helpviewer/qgshelpserver.h
timlinux 6a261df356 Merve from 0.7 branch
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@4162 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-11-06 00:15:35 +00:00

59 lines
1.8 KiB
C++

/***************************************************************************
qgshelpserver.h
Receive help context numbers from client process for help viewer
-------------------
begin : 2005-07-07
copyright : (C) 2005 by Tom Elwertowski
email : telwertowski at comcast.net
***************************************************************************/
/***************************************************************************
* *
* 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. *
* *
***************************************************************************/
/* $Id$ */
#ifndef QGSHELPSERVER_H
#define QGSHELPSERVER_H
#include <qserversocket.h>
#include <qsocket.h>
/*!
* \class QgsHelpContextServer
* \brief Listens for localhost connection and creates socket.
*/
class QgsHelpContextServer : public QServerSocket
{
Q_OBJECT
public:
QgsHelpContextServer(QObject* parent = 0);
~QgsHelpContextServer();
virtual void newConnection(int socket);
signals:
void setContext(const QString&);
};
/*!
* \class QgsHelpContextSocket
* \brief Receives and passes context numbers to viewer.
*/
class QgsHelpContextSocket : public QSocket
{
Q_OBJECT
public:
QgsHelpContextSocket(int socket, QObject *parent = 0);
~QgsHelpContextSocket();
signals:
void setContext(const QString&);
private slots:
void readClient();
};
#endif // QGSHELPSERVER_H