| 1082 | } |
| 1083 | |
| 1084 | void |
| 1085 | SourceWidget::installDataSaver(int fd) |
| 1086 | { |
| 1087 | if (m_dataSaver == nullptr) { |
| 1088 | if (this->profile != nullptr && m_analyzer != nullptr) { |
| 1089 | m_dataSaver = new FileDataSaver(fd, this); |
| 1090 | m_dataSaver->setSampleRate(this->profile->getDecimatedSampleRate()); |
| 1091 | |
| 1092 | if (!m_filterInstalled) { |
| 1093 | m_analyzer->registerBaseBandFilter(onBaseBandData, this); |
| 1094 | m_filterInstalled = true; |
| 1095 | } |
| 1096 | |
| 1097 | this->connectDataSaver(); |
| 1098 | } |
| 1099 | } |
| 1100 | } |
| 1101 | |
| 1102 | |
| 1103 | ////////////////////////////////////// Slots /////////////////////////////////// |
no test coverage detected