mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJClient.git
synced 2026-03-28 05:25:39 +03:00
Init commit
This commit is contained in:
45
Core/recognizesystem.h
Normal file
45
Core/recognizesystem.h
Normal file
@@ -0,0 +1,45 @@
|
||||
#ifndef RECOGNIZESYSTEM_H
|
||||
#define RECOGNIZESYSTEM_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QDataStream>
|
||||
#include <QTcpSocket>
|
||||
#include <mainwindow.h>
|
||||
#include <Core\tools.h>
|
||||
#include <Core\UpdateController.h>
|
||||
|
||||
class UpdateController;
|
||||
|
||||
class RecognizeSystem : public QObject
|
||||
{
|
||||
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit RecognizeSystem(QObject *parent = 0);
|
||||
~RecognizeSystem();
|
||||
void Initialize(UpdateController* updateController);
|
||||
void SetSocket(QTcpSocket *socket);
|
||||
void Recognize();
|
||||
|
||||
signals:
|
||||
void UpdateBytesAvailable(qint64 size,quint64 sended);
|
||||
void LoadComplete();
|
||||
void onNeedUpdate(bool flag);
|
||||
void onSendDebugLog(QString message);
|
||||
|
||||
private:
|
||||
UpdateController *updateController;
|
||||
QTcpSocket *socket;
|
||||
PacketType packetType;
|
||||
QString message;
|
||||
QString filePath;
|
||||
QByteArray tmpBlock;
|
||||
|
||||
qint64 sizeReceiveData;
|
||||
qint64 fileSize;
|
||||
int countSend;
|
||||
|
||||
};
|
||||
|
||||
#endif // RECOGNIZESYSTEM_H
|
||||
Reference in New Issue
Block a user