Commit 1c53b45b79371b9f0c4eaefa29c260474146e170

Authored by 고영탁
1 parent 79e2e0a28d
Exists in master and in 2 other branches fhd, fhd-demo

프로그램 업로드 기능 수정

 - 업로드 파일 및 폴더 목록 수정
Showing 1 changed file with 19 additions and 12 deletions   Show diff stats
app/gui/oven_control/fileprocessdlg.cpp
... ... @@ -585,16 +585,19 @@ void FileProcessDlg::programUpload(){
585 585 QString strSrcPath;
586 586  
587 587 if(FileProcessor::detectUSB(strSrcPath)){
588   - worker.addSrcFile(QString("%1/prime/falinux/run.sh,/falinux").arg(strSrcPath));
589   - worker.addSrcFile(QString("%1/prime/falinux/app-prime-modbus,/falinux").arg(strSrcPath));
590   - worker.addSrcFile(QString("%1/prime/falinux/app-prime-gui,/falinux").arg(strSrcPath));
591   - worker.addSrcFile(QString("%1/prime/falinux/service-web,/falinux").arg(strSrcPath));
592   - worker.addSrcFile(QString("%1/prime/falinux/templates/main.tmpl,/falinux/templates").arg(strSrcPath));
593   - worker.addSrcFile(QString("%1/prime/falinux/system.ini,/falinux").arg(strSrcPath));
594   - //worker.addSrcFile(QString("%1/prime/falinux/superdaemon,/falinux").arg(strSrcPath));
595   - //worker.addSrcFile(QString("%1/prime/falinux/superdaemon.ini,/falinux").arg(strSrcPath));
596   - worker.setDestPath("/prime");
  588 + worker.addSrcFile(QString("%1/prime/superdaemon,/prime").arg(strSrcPath));
  589 + worker.addSrcFile(QString("%1/prime/superdaemon.ini,/prime").arg(strSrcPath));
  590 + worker.addSrcFile(QString("%1/prime/app-prime-gui,/prime").arg(strSrcPath));
  591 + worker.addSrcFile(QString("%1/prime/app-prime-modbus,/prime").arg(strSrcPath));
  592 + worker.addSrcFile(QString("%1/prime/service-web,/prime").arg(strSrcPath));
  593 + worker.addSrcFile(QString("%1/prime/app-prime-gui.md5,/prime").arg(strSrcPath));
  594 + worker.addSrcFile(QString("%1/prime/app-prime-modbus.md5,/prime").arg(strSrcPath));
  595 + worker.addSrcFile(QString("%1/prime/superdaemon.ini.md5,/prime").arg(strSrcPath));
  596 + worker.addSrcFile(QString("%1/prime/superdaemon.md5,/prime").arg(strSrcPath));
  597 + worker.setDestPath("/prime");
597 598 worker.addSrcDir(QString("%1/%2").arg(strSrcPath,"prime/cookbook"));
  599 + worker.addSrcDir(QString("%1/%2").arg(strSrcPath,"prime/templates"));
  600 + worker.addSrcDir(QString("%1/%2").arg(strSrcPath,"prime/sounds"));
598 601 worker.moveToThread(&programCopyThd);
599 602  
600 603 connect(&programCopyThd,SIGNAL(started()), &worker, SLOT(workerMain()));
... ... @@ -721,9 +724,11 @@ void FileProcessDlg::standardInfoUpload()
721 724 QString strUsbPath;
722 725 QString strSrcPath;
723 726 if(FileProcessor::detectUSB(strUsbPath)){
724   - strSrcPath = QString("%1/%2").arg(strUsbPath).arg(MODEL_INFO_FILE_NAME);
  727 + strSrcPath = QString("%1%2").arg(strUsbPath).arg(MODEL_INFO_FILE_NAME);
  728 + qDebug() <<strSrcPath;
725 729 QFile file(MODEL_INFO_FILE_NAME);
726 730 file.remove();
  731 + sync();
727 732 if(QFile::copy( strSrcPath ,MODEL_INFO_FILE_NAME)){
728 733 sync();
729 734 ui->ctrWjProcess->setValue(40);
... ... @@ -737,7 +742,8 @@ void FileProcessDlg::standardInfoUpload()
737 742 //QThread::msleep(800);
738 743 file.setFileName(CHEF_INFO_FILE_NAME);
739 744 file.remove();
740   - strSrcPath = QString("%1/%2").arg(strUsbPath).arg(CHEF_INFO_FILE_NAME);
  745 + sync();
  746 + strSrcPath = QString("%1%2").arg(strUsbPath).arg(CHEF_INFO_FILE_NAME);
741 747 qDebug() << strSrcPath;
742 748 if(QFile::copy( strSrcPath ,CHEF_INFO_FILE_NAME)){
743 749 sync();
... ... @@ -752,7 +758,8 @@ void FileProcessDlg::standardInfoUpload()
752 758 //QThread::msleep(800);
753 759 file.setFileName(SERVICE_INFO_FILE_NAME);
754 760 file.remove();
755   - strSrcPath = QString("%1/%2").arg(strUsbPath).arg(SERVICE_INFO_FILE_NAME);
  761 + sync();
  762 + strSrcPath = QString("%1%2").arg(strUsbPath).arg(SERVICE_INFO_FILE_NAME);
756 763 qDebug() << strSrcPath;
757 764 if(QFile::copy( strSrcPath ,SERVICE_INFO_FILE_NAME)){
758 765 sync();
... ...