#ifndef RECOGNIZESYSTEM_H #define RECOGNIZESYSTEM_H #include #include #include #include #include #include class UpdateController; class RecognizeSystem : public QObject { Q_OBJECT public: explicit RecognizeSystem(QObject *parent = 0); ~RecognizeSystem(); void Initialize(UpdateController* updateController,DataParser *dataParser); void SetSocket(QTcpSocket *socket); void Recognize(); signals: void UpdateBytesAvailable(qint64 size,quint64 sended); void LoadComplete(); void onNeedUpdate(bool flag); void onSendDebugLog(QString message); void SockedDisabled(); private: UpdateController *updateController; DataParser *dataParser; QTcpSocket *socket; PacketType packetType; QString message; QString filePath; QByteArray tmpBlock; qint64 sizeReceiveData; qint64 fileSize; int countSend; void XMLParser(QByteArray array); }; #endif // RECOGNIZESYSTEM_H