#ifndef ISPINDELDEVICE_H #define ISPINDELDEVICE_H #include #include #include #include "IspindelData.h" #include "IspindelDataLogger.h" #include class CIspindelDevice: public QObject { Q_OBJECT public: CIspindelDevice(); ~CIspindelDevice(); QTcpServer *mISpindelServer; QTcpSocket *mIspindelClientConnection; QList mIspindelLog; CIspindelDataLogger mDataLogger; CIspindelData *GetLastestIspindelData(); QList *GetAllData(){return &mIspindelLog;} QByteArray GetAllDataBuffer(); QByteArray GetLastestIspindelDataBuffer(); public slots: void IspindelClientConnected(); void IspindelClientDataAvail(); void IspindelClientDisconnected(); signals: void NewIspindelDataReceived(); }; #endif // ISPINDELDEVICE_H