X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Flogicsignal.hpp;h=0705613eb3b9252de57eb566d59505cba297ff1c;hp=769b2fb6f3bd3a9359d63788cd1ee047c8211b14;hb=da30ecb7e72bd2547e524258efa5ec642988b70b;hpb=5b5fa4da3b7112414b9f51e6626ae7f4bf606f02 diff --git a/pv/view/logicsignal.hpp b/pv/view/logicsignal.hpp index 769b2fb6..0705613e 100644 --- a/pv/view/logicsignal.hpp +++ b/pv/view/logicsignal.hpp @@ -18,8 +18,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifndef PULSEVIEW_PV_VIEW_LOGICSIGNAL_H -#define PULSEVIEW_PV_VIEW_LOGICSIGNAL_H +#ifndef PULSEVIEW_PV_VIEW_LOGICSIGNAL_HPP +#define PULSEVIEW_PV_VIEW_LOGICSIGNAL_HPP #include @@ -31,12 +31,15 @@ class QIcon; class QToolBar; namespace sigrok { - class Device; - class TriggerMatchType; +class TriggerMatchType; } namespace pv { +namespace devices { +class Device; +} + namespace data { class Logic; } @@ -65,7 +68,7 @@ private: public: LogicSignal(pv::Session &session, - std::shared_ptr device, + std::shared_ptr device, std::shared_ptr channel, std::shared_ptr data); @@ -75,6 +78,8 @@ public: std::shared_ptr logic_data() const; + void set_logic_data(std::shared_ptr data); + /** * Computes the vertical extents of the contents of this row item. * @return A pair containing the minimum and maximum y-values. @@ -125,7 +130,7 @@ private Q_SLOTS: void on_trigger(); private: - std::shared_ptr device_; + std::shared_ptr device_; std::shared_ptr data_; const sigrok::TriggerMatchType *trigger_match_; @@ -144,4 +149,4 @@ private: } // namespace view } // namespace pv -#endif // PULSEVIEW_PV_VIEW_LOGICSIGNAL_H +#endif // PULSEVIEW_PV_VIEW_LOGICSIGNAL_HPP