30 mAcquisitionData.reset(
new AcquisitionData(mServices, mUsReconstructService));
31 mAcquisition.reset(
new Acquisition(mAcquisitionData));
60 void AcquisitionImplService::duringClearPatientSlot()
63 mAcquisitionData->clear();
66 void AcquisitionImplService::duringSavePatientSlot(QDomElement& node)
68 XMLNodeAdder root(node);
69 QDomElement managerNode = root.descend(
"managers").node().toElement();
70 this->addXml(managerNode);
73 void AcquisitionImplService::duringLoadPatientSlot(QDomElement& node)
75 XMLNodeParser root(node);
76 QDomElement stateManagerNode = root.descend(
"managers/stateManager").node().toElement();
77 if (!stateManagerNode.isNull())
78 this->parseXml(stateManagerNode);
83 return mAcquisition->getLatestSession();
88 return mAcquisition->getPluginData()->getRecordSessions();
93 return mUsAcquisition->isReady(context)
94 && mAcquisition->isReady(context);
100 text = mAcquisition->getInfoText(context) +
"<br>" + mUsAcquisition->getInfoText(context);
103 QStringList list = text.split(
"<br>", QString::SkipEmptyParts);
104 text = list.join(
"<br>");
115 return mAcquisition->getState();
120 mServices->tracking()->resetTimeSynchronization();
121 mAcquisition->startRecord(context, category, session);
126 mAcquisition->stopRecord();
131 mAcquisition->cancelRecord();
136 mAcquisition->startPostProcessing();
141 mAcquisition->stopPostProcessing();
146 return mUsAcquisition->getNumberOfSavingThreads();
149 void AcquisitionImplService::addXml(QDomNode &dataNode)
151 mAcquisitionData->addXml(dataNode);
154 void AcquisitionImplService::parseXml(QDomNode &dataNode)
156 mAcquisitionData->parseXml(dataNode);