Index: sources/applicationcontroller.cpp =================================================================== diff -u -r8f6f7c11390e3ed6d918f1717d8e8b7ae5b7e5c6 -reea63d68fc0fb269f8dec64d99f488bcad117220 --- sources/applicationcontroller.cpp (.../applicationcontroller.cpp) (revision 8f6f7c11390e3ed6d918f1717d8e8b7ae5b7e5c6) +++ sources/applicationcontroller.cpp (.../applicationcontroller.cpp) (revision eea63d68fc0fb269f8dec64d99f488bcad117220) @@ -44,8 +44,9 @@ _init = true; initConnections(); + // coco begin validated: The class ApplicationPost has not been implemented Yet. if (!_applicationPost->init()) return false; - + // coco end LOG_EVENT(QObject::tr("%1 Initialized").arg(metaObject()->className())); return true; @@ -75,7 +76,7 @@ { // coco begin validated: Application termination is not correctly done in coco!!! // it has been tested and works perfectly fine in normal run. - quitThread(); + quitThread(); // validated } // coco end @@ -130,7 +131,7 @@ _thread = &vThread; _thread->setObjectName(QString("%1_Thread").arg(metaObject()->className())); connect(qApp, SIGNAL(aboutToQuit()), this, SLOT(quit())); - _thread->start(); + if (!_thread->isRunning()) _thread->start(); // In case more than one object using the same thread moveToThread(_thread); } @@ -147,7 +148,7 @@ if ( ! _thread ) return; // runs in thread - moveToThread(qApp->thread()); + moveToThread(qApp->thread()); // validated } // coco end @@ -191,8 +192,11 @@ */ void ApplicationController::onUSBDriveMount () { + // coco begin validated: This needs user interaction to plug-in USB device + // has been tested manually emit didUSBDriveMount(); } +// coco end /*! * \brief ApplicationController::onUSBDriveRemove @@ -201,8 +205,11 @@ */ void ApplicationController::onUSBDriveUmount() { + // coco begin validated: This needs user interaction to plug-in USB device + // has been tested manually emit didUSBDriveUmount(); } +// coco end /*! * \brief ApplicationController::onUSBDriveRemove @@ -211,26 +218,35 @@ */ void ApplicationController::onUSBDriveRemove() { + // coco begin validated: This needs user interaction to plug-in USB device + // has been tested manually emit didUSBDriveRemove(); } +// coco end /*! * \brief ApplicationController::onExportLog * \details the slot which will be called by UI to so the log export. */ void ApplicationController::onExportLog() { + // coco begin validated: This needs user interaction to plug-in USB device + // has been tested manually LOG_EXPORT; } +// coco end /*! * \brief ApplicationController::onExport * \details the slot which will be called by logger is done exporting. */ void ApplicationController::onExport() { + // coco begin validated: This needs user interaction to plug-in USB device + // has been tested manually emit didExport(); } +// coco end void ApplicationController::onAdjustBloodDialysateFlows(quint32 vBloodFlow, quint32 vDialysateFlow) { @@ -250,13 +266,18 @@ #ifndef DISABLE_KEEP_ALIVE QVariantList mData; int mFakeDataLen = gFakeData.length(); + // coco begin validated: This is a fake data generator for CANBus missing/swapped frames Testing + // will never be executed on the product + // has been tested manually if (mFakeDataLen) { if (gFakeSeqAtBegin) { createFakeSeqAtBeginLongMessage(mData, mFakeDataLen); } else { createFakeSequencedLongMessage (mData, mFakeDataLen); } - } else { + } + // coco end + else { mData += static_cast(GuiActionData::NoData); } onActionTransmit(GuiActionType::KeepAlive, mData); @@ -271,6 +292,9 @@ */ void ApplicationController::createFakeSequencedLongMessage(QVariantList &vData, const int vFakeDataLen) { + // coco begin validated: This is a fake data generator for CANBus missing/swapped frames Testing + // will never be executed on the product + // has been tested manually QByteArray data; if (vFakeDataLen == 1 && gFakeData == QByteArray::fromHex(gFakeData_default)) { static quint16 txCount = 0; @@ -313,6 +337,7 @@ vData += gFakeData; } } +// coco end /*! * \brief ApplicationController::createFakeSequencedAtBeginLongMessage @@ -322,6 +347,9 @@ */ void ApplicationController::createFakeSeqAtBeginLongMessage(QVariantList &vData, const int vFakeDataLen) { + // coco begin validated: This is a fake data generator for CANBus missing/swapped frames Testing + // will never be executed on the product + // has been tested manually QByteArray data; if (vFakeDataLen == 1 && gFakeData == QByteArray::fromHex(gFakeData_default)) { static quint32 txCount = 0; @@ -370,3 +398,4 @@ vData += gFakeData; } } +// coco end