MCPcopy Create free account
hub / github.com/BatchDrake/SigDigger / onRecordStartStop

Method onRecordStartStop

Default/Source/SourceWidget.cpp:1138–1156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1136}
1137
1138void
1139SourceWidget::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
1158void
1159SourceWidget::onThrottleChanged(void)

Callers 1

setStateMethod · 0.95

Calls 7

openCaptureFileMethod · 0.95
installDataSaverMethod · 0.95
setRecordStateMethod · 0.95
uninstallDataSaverMethod · 0.95
setCaptureSizeMethod · 0.95
isEnabledMethod · 0.80
getRecordStateMethod · 0.45

Tested by

no test coverage detected