Implemented slots:
void onReportDCDownloadStatus(QString const &status);
    void onReportDCDownloadSuccess(QString const &msg);
    void onReportDCDownloadFailure(QString const &errorMsg);
			
			
This commit is contained in:
		
							
								
								
									
										16
									
								
								update.cpp
									
									
									
									
									
								
							
							
						
						
									
										16
									
								
								update.cpp
									
									
									
									
									
								
							@@ -98,6 +98,7 @@ bool Update::unloadDCPlugin() {
 | 
			
		||||
    return false;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
class hwapi;
 | 
			
		||||
Update::Update(Worker *worker,
 | 
			
		||||
               QString customerRepository,
 | 
			
		||||
               QString customerNrStr,
 | 
			
		||||
@@ -147,6 +148,21 @@ Update::Update(Worker *worker,
 | 
			
		||||
Update::~Update() {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
void Update::onReportDCDownloadStatus(QString const &status) {
 | 
			
		||||
    emit m_worker->showStatusMessage("DL", status);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void Update::onReportDCDownloadSuccess(QString const &msg) {
 | 
			
		||||
    qCritical() << "msg" << msg;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void Update::onReportDCDownloadFailure(QString const &errorMsg) {
 | 
			
		||||
    qCritical() << "msg" << errorMsg;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
// br is a index into a table, used for historical reasons.
 | 
			
		||||
bool Update::openSerial(int br, QString baudrate, QString comPort) const {
 | 
			
		||||
    qDebug() << "opening serial" << br << baudrate << comPort << "...";
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user