QTfrontend/tcpBase.h
changeset 291 afa378f1e961
parent 186 7157b34a24d6
child 389 9628e69b609f
equal deleted inserted replaced
290:09738170c557 291:afa378f1e961
    27 #include <QDir>
    27 #include <QDir>
    28 #include <QProcess>
    28 #include <QProcess>
    29 
    29 
    30 #include <QImage>
    30 #include <QImage>
    31 
    31 
    32 #define IPC_PORT 46631
       
    33 #define MAXMSGCHARS 255
    32 #define MAXMSGCHARS 255
    34 
    33 
    35 class TCPBase : public QObject
    34 class TCPBase : public QObject
    36 {
    35 {
    37   Q_OBJECT
    36   Q_OBJECT
    41 
    40 
    42  signals:
    41  signals:
    43   void isReadyNow();
    42   void isReadyNow();
    44 
    43 
    45  protected:
    44  protected:
       
    45   quint16 ipc_port;
       
    46 
    46   void Start();
    47   void Start();
    47 
    48 
    48   QByteArray readbuffer;
    49   QByteArray readbuffer;
    49 
    50 
    50   QByteArray toSendBuf;
    51   QByteArray toSendBuf;