X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fdata%2Flogic.hpp;h=b5e532c45e9a0523d13991f39fb8c653d498eca3;hb=69e950969e45ddbf516069c28f72f5696c53af5d;hp=18622c1e6391f7a4fe39e38a79c4aca2afecddd1;hpb=464f05d59f205225eff1cb435f9ae11716dbe9de;p=pulseview.git diff --git a/pv/data/logic.hpp b/pv/data/logic.hpp index 18622c1e..b5e532c4 100644 --- a/pv/data/logic.hpp +++ b/pv/data/logic.hpp @@ -21,6 +21,7 @@ #define PULSEVIEW_PV_DATA_LOGIC_HPP #include "signaldata.hpp" +#include "segment.hpp" #include @@ -47,6 +48,7 @@ public: void push_segment(shared_ptr &segment); const deque< shared_ptr >& logic_segments() const; + deque< shared_ptr >& logic_segments(); vector< shared_ptr > segments() const; @@ -60,13 +62,13 @@ public: uint64_t max_sample_count() const; - void notify_samples_added(QObject* segment, uint64_t start_sample, + void notify_samples_added(shared_ptr segment, uint64_t start_sample, uint64_t end_sample); Q_SIGNALS: void samples_cleared(); - void samples_added(QObject* segment, uint64_t start_sample, + void samples_added(SharedPtrToSegment segment, uint64_t start_sample, uint64_t end_sample); private: