| 295 | } |
| 296 | |
| 297 | bool SigSession::set_file(QString name) |
| 298 | { |
| 299 | assert(!_is_saving); |
| 300 | assert(!_is_working); |
| 301 | |
| 302 | std::string file_name = pv::path::ToUnicodePath(name); |
| 303 | dsv_info("Load file: \"%s\"", file_name.c_str()); |
| 304 | |
| 305 | std::string file_str = name.toUtf8().toStdString(); |
| 306 | |
| 307 | if (ds_device_from_file(file_str.c_str()) != SR_OK) |
| 308 | { |
| 309 | dsv_err("Load file error!"); |
| 310 | return false; |
| 311 | } |
| 312 | |
| 313 | return set_default_device(); |
| 314 | } |
| 315 | |
| 316 | void SigSession::close_file(ds_device_handle dev_handle) |
| 317 | { |
no test coverage detected