Index: sources/storage/TreatmentLog.h =================================================================== diff -u -r124c2e38e72a1a655d9d479c9c7a1cd8c5d5e6c4 -rc47d6680e0514292d7cc9b59ba0361aa8f335927 --- sources/storage/TreatmentLog.h (.../TreatmentLog.h) (revision 124c2e38e72a1a655d9d479c9c7a1cd8c5d5e6c4) +++ sources/storage/TreatmentLog.h (.../TreatmentLog.h) (revision c47d6680e0514292d7cc9b59ba0361aa8f335927) @@ -25,6 +25,7 @@ #include "MTreatmentLogAvrgeData.h" #include "MTreatmentLogAlarmData.h" #include "MTreatmentLogEventData.h" +#include "MAdjustHDSerialNumberResponse.h" // define #define _TreatmentLog Storage::TreatmentLog::I() @@ -40,10 +41,13 @@ { Q_OBJECT - const int _interval = 1000; // 1s - const int _pendingInterval= 60 ; // 1m - int _pendingCounter = 0 ; // + const int _interval = 1000; // 1s + const int _pendingInterval = 60 ; // 1m + int _pendingCounter = 0 ; // + int _pendingIntervalHDSerial = 10; + int _pendingCounterHDSerial = 0; + const QString _sep = ","; QString _treatmentLogPath; @@ -87,7 +91,8 @@ } _lastTxInfo; - QString _deviceID = "unknown"; + const QString _deviceIDDefault = "unknown"; + QString _deviceID = _deviceIDDefault; QString _pendingTxr = ""; QString _emptyPatinetID = "NoPatientIDEntered"; // No translation @@ -242,6 +247,7 @@ // Pending Tx Report void testPendingTxReports (); // eMessageID_TxReport + void testPendingHDSerial (); NOTIFIER(isIdle) SINGLETON(TreatmentLog) @@ -272,6 +278,7 @@ void onExport (); void onTxCodeReceive (const QString &vTxCode); void onCloudSyncStatus ( bool vReady ); + void onActionReceive (const AdjustSerialNumberHDResponseData &vData); public slots: void doSave ();