#ifndef UPDATECONTROLLER_H #define UPDATECONTROLLER_H #include "Core\FileData.h" #include "Core\dataparser.h" #include "Core\tcpclient.h" #include #include #include #include #include #include #include #include #include #include #include class SendSystem; class UpdateController : public QObject { Q_OBJECT public: explicit UpdateController(DataParser *parser,SendSystem *sendSystem,QObject *parent = 0); void calculateCommonHash(); void calculateStreamingHash(); ~UpdateController(); void updateFilesOnServer(QList *fileSendList); signals: void sigUpdateComplete(bool flag); private: DataParser *dataParser; SendSystem *sendSystem; QString applicationFolderPath; QList fileDataList; void calculateHash(QString path); }; #endif // UPDATECONTROLLER_H