31 lines
767 B
C++
31 lines
767 B
C++
#include "PICUploader.h"
|
|
#include "GlobalDefine.h"
|
|
|
|
CPICUploader::CPICUploader(CPICUploaderGui *Gui)
|
|
{
|
|
mPICUploaderGui = Gui;
|
|
mPICUploaderGui->mProgramHandle = this;
|
|
}
|
|
|
|
|
|
int CPICUploader::Start()
|
|
{
|
|
return RET_OK;
|
|
}
|
|
|
|
|
|
int CPICUploader::OpenHexFileRequest(QString FilePath)
|
|
{
|
|
int ret = mHexFile.OpenDataFile(FilePath);
|
|
|
|
if(ret == 0)
|
|
return 0;
|
|
|
|
QString HexFileStats = QString("HexFileSize: %1\nFirmware Size: %4\nNb analyzed Records: %2\nNb Big Records: %3").arg(mHexFile.GetFileSize()).arg(mHexFile.GetTotalParsedRecords()).arg(mHexFile.GetNBRecords()).arg(mHexFile.GetFirmwareSize());
|
|
|
|
mPICUploaderGui->SetHexFileStats(HexFileStats);
|
|
|
|
//HexFileStats << "HexFileSize: " << mHexFile.GetFileSize() << "\n";
|
|
// HexFileStats <<
|
|
}
|