QTfrontend/netserver.h
changeset 1375 c95c6887b289
parent 1374 f33fa81e583d
child 2948 3f21a9dc93d0
equal deleted inserted replaced
1374:f33fa81e583d 1375:c95c6887b289
    18 
    18 
    19 #ifndef _NETSERVER_INCLUDED
    19 #ifndef _NETSERVER_INCLUDED
    20 #define _NETSERVER_INCLUDED
    20 #define _NETSERVER_INCLUDED
    21 
    21 
    22 #include <QObject>
    22 #include <QObject>
       
    23 #include <QProcess>
    23 
    24 
    24 class HWNetServer : public QObject
    25 class HWNetServer : public QObject
    25 {
    26 {
    26 	Q_OBJECT
    27 	Q_OBJECT
    27 
    28 
    28 public:
    29 public:
       
    30 	~HWNetServer();
    29 	bool StartServer(quint16 port);
    31 	bool StartServer(quint16 port);
    30 	void StopServer();
    32 	void StopServer();
    31 	QString getRunningHostName() const;
    33 	QString getRunningHostName() const;
    32 	quint16 getRunningPort() const;
    34 	quint16 getRunningPort() const;
    33 
    35 
    34 private:
    36 private:
    35 	quint16 ds_port;
    37 	quint16 ds_port;
       
    38 	QProcess process;
    36 };
    39 };
    37 
    40 
    38 #endif // _NETSERVER_INCLUDED
    41 #endif // _NETSERVER_INCLUDED