X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdata%2Flogic.hpp;h=07f8222c1946cc699828c6ac3cdc6c3d761eb67d;hp=18622c1e6391f7a4fe39e38a79c4aca2afecddd1;hb=HEAD;hpb=464f05d59f205225eff1cb435f9ae11716dbe9de diff --git a/pv/data/logic.hpp b/pv/data/logic.hpp index 18622c1e..07f8222c 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,15 +62,18 @@ 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 Q_SLOTS: + void on_segment_completed(); + private: double samplerate_; const unsigned int num_channels_;