X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdialogs%2Fconnect.h;h=5a8b1cd0baf07d7974535c4db4bb951616f05262;hp=862184b87326566415b2a142f59baef523dc6b6b;hb=945745012eb57cefa1ef457daf48cfffa99f9ec2;hpb=c9de8b3297469aad87554ad6fcc6909223424f54 diff --git a/pv/dialogs/connect.h b/pv/dialogs/connect.h index 862184b8..5a8b1cd0 100644 --- a/pv/dialogs/connect.h +++ b/pv/dialogs/connect.h @@ -21,6 +21,8 @@ #ifndef PULSEVIEW_PV_CONNECT_H #define PULSEVIEW_PV_CONNECT_H +#include + #include #include #include @@ -31,8 +33,16 @@ #include struct sr_config; +struct sr_dev_inst; namespace pv { + +class DeviceManager; + +namespace device { +class DevInst; +} + namespace dialogs { class Connect : public QDialog @@ -40,7 +50,9 @@ class Connect : public QDialog Q_OBJECT public: - Connect(QWidget *parent); + Connect(QWidget *parent, pv::DeviceManager &device_manager); + + boost::shared_ptr get_selected_device() const; private: void populate_drivers(); @@ -58,6 +70,8 @@ private: static void free_drvopts(sr_config *src); private: + pv::DeviceManager &_device_manager; + QVBoxLayout _layout; QWidget _form; @@ -69,6 +83,8 @@ private: QPushButton _scan_button; QListWidget _device_list; + std::map > + _device_map; QDialogButtonBox _button_box; };