| 1136 | } |
| 1137 | |
| 1138 | void |
| 1139 | SourceWidget::onRecordStartStop(void) |
| 1140 | { |
| 1141 | if (m_analyzer != nullptr) { |
| 1142 | bool recordState = this->saverUI->isEnabled() |
| 1143 | && this->saverUI->getRecordState(); |
| 1144 | |
| 1145 | if (recordState) { |
| 1146 | int fd = this->openCaptureFile(); |
| 1147 | if (fd != -1) |
| 1148 | this->installDataSaver(fd); |
| 1149 | this->setRecordState(fd != -1); |
| 1150 | } else { |
| 1151 | this->uninstallDataSaver(); |
| 1152 | this->setCaptureSize(0); |
| 1153 | this->setRecordState(false); |
| 1154 | } |
| 1155 | } |
| 1156 | } |
| 1157 | |
| 1158 | void |
| 1159 | SourceWidget::onThrottleChanged(void) |
no test coverage detected