* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef PULSEVIEW_PV_WIDGETS_DEVICETOOLBUTTON_H
-#define PULSEVIEW_PV_WIDGETS_DEVICETOOLBUTTON_H
+#ifndef PULSEVIEW_PV_WIDGETS_DEVICETOOLBUTTON_HPP
+#define PULSEVIEW_PV_WIDGETS_DEVICETOOLBUTTON_HPP
#include <list>
#include <memory>
struct srd_decoder;
-namespace sigrok {
-class Device;
-}
-
namespace pv {
class DeviceManager;
+namespace devices {
+class Device;
+}
+
namespace widgets {
class DeviceToolButton : public QToolButton
/**
* Returns a reference to the selected device.
*/
- std::shared_ptr<sigrok::Device> selected_device();
+ std::shared_ptr<devices::Device> selected_device();
/**
* Sets the current list of devices.
* @param selected_device the currently active device.
*/
void set_device_list(
- const std::list< std::shared_ptr<sigrok::Device> > &devices,
- std::shared_ptr<sigrok::Device> selected);
+ const std::list< std::shared_ptr<devices::Device> > &devices,
+ std::shared_ptr<devices::Device> selected);
private:
/**
QMenu menu_;
QSignalMapper mapper_;
- std::shared_ptr<sigrok::Device> selected_device_;
- std::vector< std::weak_ptr<sigrok::Device> > devices_;
+ std::shared_ptr<devices::Device> selected_device_;
+ std::vector< std::weak_ptr<devices::Device> > devices_;
QString device_tooltip_;
};
} // widgets
} // pv
-#endif // PULSEVIEW_PV_WIDGETS_DEVICETOOLBUTTON_H
+#endif // PULSEVIEW_PV_WIDGETS_DEVICETOOLBUTTON_HPP