Index: sources/storage/TreatmentLog.h =================================================================== diff -u -r3b323bd6a1a03429c2321a889049de1c3b11302f -r0a93485b19d83e73b7a92157d6dc084be585cfff --- sources/storage/TreatmentLog.h (.../TreatmentLog.h) (revision 3b323bd6a1a03429c2321a889049de1c3b11302f) +++ sources/storage/TreatmentLog.h (.../TreatmentLog.h) (revision 0a93485b19d83e73b7a92157d6dc084be585cfff) @@ -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 ();