X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fsigsession.h;h=7e61d8dfab705f89c1277278b21a0c522cd53c45;hb=d873f4d685e16c708a15fcde12fbbec66650511c;hp=39e4af6802818a1e3fa950eb5058704d22b85b31;hpb=07dcf5615620315f4eda91a930b8540e64b625f2;p=pulseview.git diff --git a/pv/sigsession.h b/pv/sigsession.h index 39e4af6..7e61d8d 100644 --- a/pv/sigsession.h +++ b/pv/sigsession.h @@ -81,12 +81,13 @@ public: /** * Sets device instance that will be used in the next capture session. */ - void set_device(boost::shared_ptr dev_inst); + void set_device(boost::shared_ptr dev_inst) + throw(QString); - void release_device(device::DevInst *dev_inst); + void set_file(const std::string &name) + throw(QString); - void load_file(const std::string &name, - boost::function error_handler); + void release_device(device::DevInst *dev_inst); capture_state get_capture_state() const; @@ -113,6 +114,8 @@ private: void update_signals(boost::shared_ptr dev_inst); + void set_default_device(); + boost::shared_ptr signal_from_probe( const sr_probe *probe) const; @@ -134,12 +137,6 @@ private: boost::function error_handler, sr_input_format *format = NULL); - void load_session_thread_proc( - boost::function error_handler); - - void load_input_thread_proc(const std::string name, sr_input *in, - boost::function error_handler); - void sample_thread_proc(boost::shared_ptr dev_inst, boost::function error_handler);