X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fsession.hpp;h=d6cfdd302c97815daec25bcf19b62e12008c96e2;hb=0f8f8c180b32413177f3940ea6f216d1cbadf09b;hp=a4fc352d1969fd527951820bbf75e37f8b2b991c;hpb=bb7dd726eb7159ddd80d94ede791f2e2a9eaef0f;p=pulseview.git diff --git a/pv/session.hpp b/pv/session.hpp index a4fc352..d6cfdd3 100644 --- a/pv/session.hpp +++ b/pv/session.hpp @@ -72,6 +72,10 @@ namespace devices { class Device; } +namespace toolbars { +class MainBar; +} + namespace view { class View; } @@ -100,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. */ @@ -159,6 +169,9 @@ private: std::shared_ptr device_; std::unordered_set< std::shared_ptr > views_; + std::shared_ptr main_view_; + + std::shared_ptr main_bar_; mutable std::mutex sampling_mutex_; //!< Protects access to capture_state_. capture_state capture_state_;