MCPcopy Create free account
hub / github.com/cjcliffe/CubicSDR / verifyRecordingPath

Method verifyRecordingPath

src/AppConfig.cpp:516–534  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

514}
515
516bool AppConfig::verifyRecordingPath() {
517 string recPathStr = wxGetApp().getConfig()->getRecordingPath();
518
519 if (recPathStr.empty()) {
520 wxMessageBox( wxT("Recording path is not set. Please use 'Set Recording Path' from the 'Recording' Menu."), wxT("Recording Path Error"), wxICON_INFORMATION);
521
522 return false;
523 }
524
525 wxFileName recPath(recPathStr);
526
527 if (!recPath.Exists() || !recPath.IsDirWritable()) {
528 wxMessageBox( wxT("Recording path does not exist or is not writable. Please use 'Set Recording Path' from the 'Recording' Menu."), wxT("Recording Path Error"), wxICON_INFORMATION);
529
530 return false;
531 }
532
533 return true;
534}
535
536
537void AppConfig::setRecordingSquelchOption(int enumChoice) {

Callers 3

onStartRecordingMethod · 0.80

Calls 3

getRecordingPathMethod · 0.80
getConfigMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected