+ void set_capture_state(capture_state state);
+
+ void update_signals(std::shared_ptr<device::DevInst> dev_inst);
+
+ std::shared_ptr<view::Signal> signal_from_probe(
+ const sr_channel *probe) const;
+
+ void read_sample_rate(const sr_dev_inst *const sdi);
+
+private:
+ /**
+ * Attempts to autodetect the format. Failing that
+ * @param filename The filename of the input file.
+ * @return A pointer to the 'struct sr_input_format' that should be
+ * used, or NULL if no input format was selected or
+ * auto-detected.
+ */
+ static sr_input_format* determine_input_file_format(
+ const std::string &filename);
+
+ static sr_input* load_input_file_format(
+ const std::string &filename,
+ std::function<void (const QString)> error_handler,
+ sr_input_format *format = NULL);
+
+ void sample_thread_proc(std::shared_ptr<device::DevInst> dev_inst,
+ std::function<void (const QString)> error_handler);
+
+ void feed_in_header(const sr_dev_inst *sdi);
+
+ void feed_in_meta(const sr_dev_inst *sdi,
+ const sr_datafeed_meta &meta);
+
+ void feed_in_frame_begin();
+
+ void feed_in_logic(const sr_datafeed_logic &logic);
+
+ void feed_in_analog(const sr_datafeed_analog &analog);
+