mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@4234 c8812cc2-4d05-0410-92ff-de0c093fc19c
59 lines
1.8 KiB
C++
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 <q3serversocket.h>
|
|
#include <q3socket.h>
|
|
|
|
/*!
|
|
* \class QgsHelpContextServer
|
|
* \brief Listens for localhost connection and creates socket.
|
|
*/
|
|
class QgsHelpContextServer : public Q3ServerSocket
|
|
{
|
|
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 Q3Socket
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
QgsHelpContextSocket(int socket, QObject *parent = 0);
|
|
~QgsHelpContextSocket();
|
|
|
|
signals:
|
|
void setContext(const QString&);
|
|
|
|
private slots:
|
|
void readClient();
|
|
};
|
|
|
|
#endif // QGSHELPSERVER_H
|