settings.setValue("geometry", saveGeometry());
settings.endGroup();
- if (_session.get_device()) {
+ if (_session.device()) {
settings.beginGroup("Device");
key_list.push_back("vendor");
key_list.push_back("model");
key_list.push_back("connection_id");
dev_info = _device_manager.get_device_info(
- _session.get_device());
+ _session.device());
for (string key : key_list) {
{
assert(_sampling_bar);
- shared_ptr<Device> selected_device = _session.get_device();
+ shared_ptr<Device> selected_device = _session.device();
list< shared_ptr<Device> > devices;
if (_device_manager.devices().size() == 0)
// Create the layout
setLayout(&_layout);
- shared_ptr<sigrok::Device> device = _session.get_device();
+ shared_ptr<sigrok::Device> device = _session.device();
assert(device);
// Collect a set of signals
~SigSession();
- std::shared_ptr<sigrok::Device> get_device() const;
+ std::shared_ptr<sigrok::Device> device() const;
/**
* Sets device instance that will be used in the next capture session.