- void load_file(const std::string &name,
- boost::function<void (const QString)> error_handler);
+ DeviceManager& device_manager();
+
+ const DeviceManager& device_manager() const;
+
+ const std::shared_ptr<sigrok::Session>& session() const;
+
+ std::shared_ptr<sigrok::Device> device() const;
+
+ /**
+ * Sets device instance that will be used in the next capture session.
+ */
+ void set_device(std::shared_ptr<sigrok::Device> device);
+
+ void set_file(const std::string &name);
+
+ void set_default_device();