#include <libsigrok/libsigrok.h>
+struct srd_decoder;
+
namespace pv {
class DeviceManager;
}
namespace view {
+class DecodeSignal;
class Signal;
}
boost::shared_ptr<data::Logic> get_data();
+ void add_decoder(srd_decoder *const dec);
+
private:
void set_capture_state(capture_state state);
bool is_trigger_enabled() const;
+ void read_sample_rate(const sr_dev_inst *const sdi);
+
private:
/**
* Attempts to autodetect the format. Failing that
boost::function<void (const QString)> error_handler,
sr_input_format *format = NULL);
- void load_thread_proc(const std::string name,
+ void load_session_thread_proc(
+ boost::function<void (const QString)> error_handler);
+
+ void load_input_thread_proc(const std::string name, sr_input *in,
boost::function<void (const QString)> error_handler);
void sample_thread_proc(struct sr_dev_inst *sdi,
*/
struct sr_dev_inst *_sdi;
+ std::vector< boost::shared_ptr<view::DecodeSignal> > _decode_traces;
+
mutable boost::mutex _sampling_mutex;
capture_state _capture_state;