Index: sources/storage/TreatmentLog.h =================================================================== diff -u -r89174f563de1dbc04be63776766651e1c3f85192 -rd3b9893be260817e12327d144d4e798b5ac2f99d --- sources/storage/TreatmentLog.h (.../TreatmentLog.h) (revision 89174f563de1dbc04be63776766651e1c3f85192) +++ sources/storage/TreatmentLog.h (.../TreatmentLog.h) (revision d3b9893be260817e12327d144d4e798b5ac2f99d) @@ -44,6 +44,8 @@ const int _pendingInterval= 60 ; // 1m int _pendingCounter = 0 ; // + const QString _sep = ","; + QString _treatmentLogPath; const char* _treatmentLogExtUploaded = "txr"; const char* _treatmentLogExtPending = "txr.p"; @@ -198,19 +200,19 @@ _unitTextFluid , // eSalineBolusVolume }; - QString title(quint8 vIndex) const { - if (vIndex < _titles.count()) return _titles[vIndex]; - return ""; + QString string(quint8 vIndex , const QStringList &vStringList) const { + QString str = ""; + if (vIndex < vStringList.count()) { + str = vStringList[vIndex]; + str.remove(_sep); + } + return str; } - QString value(quint8 vIndex) const { - if (vIndex < _valuesLog.count()) return _valuesLog[vIndex]; - return ""; - } - QString unit(quint8 vIndex) const { - if (vIndex < _units.count()) return _units[vIndex]; - return ""; - } + QString title(quint8 vIndex) const { return string(vIndex, _titles );} + QString value(quint8 vIndex) const { return string(vIndex, _valuesLog );} + QString unit (quint8 vIndex) const { return string(vIndex, _units );} + // Lists QStringList _valuesLog;