X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fmainwindow.hpp;h=35cad3ab2890993f13c30afc95fa956ef7775548;hp=9a000c2a261f54e3123cdaf7c81d9bc0459e4c12;hb=f65cd27bdbf70644052dd43dac4bbe9403f4dfee;hpb=2acdb232d6bb452cfdfaea3ef5218fb4da592329 diff --git a/pv/mainwindow.hpp b/pv/mainwindow.hpp index 9a000c2a..35cad3ab 100644 --- a/pv/mainwindow.hpp +++ b/pv/mainwindow.hpp @@ -26,12 +26,16 @@ #include -#include "sigsession.hpp" +#include "session.hpp" struct srd_decoder; class QVBoxLayout; +namespace sigrok { +class Device; +} + namespace pv { class DeviceManager; @@ -58,6 +62,10 @@ public: const char *open_file_name = NULL, QWidget *parent = 0); + void run_stop(); + + void select_device(std::shared_ptr device); + private: void setup_ui(); @@ -100,9 +108,8 @@ private Q_SLOTS: void add_decoder(srd_decoder *decoder); - void run_stop(); - void capture_state_changed(int state); + void device_selected(); private: /** @@ -119,7 +126,7 @@ private: DeviceManager &device_manager_; - SigSession session_; + Session session_; pv::view::View *view_;