QTfrontend/net/netserver.h
changeset 6616 f77bb02b669f
parent 6060 fdfc01419815
child 6700 e04da46ee43c
equal deleted inserted replaced
6615:65602f1ef0f8 6616:f77bb02b669f
    23 #include <QObject>
    23 #include <QObject>
    24 #include <QProcess>
    24 #include <QProcess>
    25 
    25 
    26 class HWNetServer : public QObject
    26 class HWNetServer : public QObject
    27 {
    27 {
    28     Q_OBJECT
    28         Q_OBJECT
    29 
    29 
    30 public:
    30     public:
    31     ~HWNetServer();
    31         ~HWNetServer();
    32     bool StartServer(quint16 port);
    32         bool StartServer(quint16 port);
    33     void StopServer();
    33         void StopServer();
    34     QString getRunningHostName() const;
    34         QString getRunningHostName() const;
    35     quint16 getRunningPort() const;
    35         quint16 getRunningPort() const;
    36 
    36 
    37 private:
    37     private:
    38     quint16 ds_port;
    38         quint16 ds_port;
    39     QProcess process;
    39         QProcess process;
    40 };
    40 };
    41 
    41 
    42 #endif // _NETSERVER_INCLUDED
    42 #endif // _NETSERVER_INCLUDED