X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fsession.hpp;h=d6cfdd302c97815daec25bcf19b62e12008c96e2;hb=0f8f8c180b32413177f3940ea6f216d1cbadf09b;hp=83a73f4af7678252dc28b0afee6f25cf2b02b553;hpb=47e9e7bbc3a4e91a960f4cbb1db48c5aff6dcace;p=pulseview.git diff --git a/pv/session.hpp b/pv/session.hpp index 83a73f4..d6cfdd3 100644 --- a/pv/session.hpp +++ b/pv/session.hpp @@ -72,8 +72,11 @@ namespace devices { class Device; } +namespace toolbars { +class MainBar; +} + namespace view { -class DecodeTrace; class View; } @@ -101,6 +104,12 @@ public: std::shared_ptr device() const; + std::shared_ptr main_view() const; + + void set_main_bar(std::shared_ptr main_bar); + + std::shared_ptr main_bar() const; + /** * Sets device instance that will be used in the next capture session. */ @@ -126,10 +135,7 @@ public: #ifdef ENABLE_DECODE bool add_decoder(srd_decoder *const dec); - std::vector< std::shared_ptr > - get_decode_signals() const; - - void remove_decode_signal(view::DecodeTrace *signal); + void remove_decode_signal(std::shared_ptr signalbase); #endif private: @@ -163,8 +169,9 @@ private: std::shared_ptr device_; std::unordered_set< std::shared_ptr > views_; + std::shared_ptr main_view_; - std::vector< std::shared_ptr > decode_traces_; + std::shared_ptr main_bar_; mutable std::mutex sampling_mutex_; //!< Protects access to capture_state_. capture_state capture_state_;