const QString infoMessage;
try {
- session_.set_file(file_name.toStdString());
+ session_.set_session_file(file_name.toStdString());
} catch(Error e) {
show_session_error(tr("Failed to load ") + file_name, e.what());
session_.set_default_device();
device_selected();
}
-void Session::set_file(const string &name)
+void Session::set_session_file(const string &name)
{
session_ = device_manager_.context()->load_session(name);
device_ = session_->devices()[0];
*/
void set_device(std::shared_ptr<sigrok::Device> device);
- void set_file(const std::string &name);
+ /**
+ * Sets a sigrok session file as the capture device.
+ * @param name the path to the file.
+ */
+ void set_session_file(const std::string &name);
void set_default_device();