X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fdata%2Fdecoderstack.hpp;h=383109905c03ae5e23912d186c6214b58b4a70bf;hb=f3d66e52ed6b454ea7a0662d5e6367e230116a2b;hp=e8aeed10f2b09da3db62e8fbc82c317c383ed536;hpb=2b81ae4682ade4109ffa442794de36ceb32045eb;p=pulseview.git diff --git a/pv/data/decoderstack.hpp b/pv/data/decoderstack.hpp index e8aeed1..3831099 100644 --- a/pv/data/decoderstack.hpp +++ b/pv/data/decoderstack.hpp @@ -58,7 +58,7 @@ class LogicSignal; namespace data { -class LogicSnapshot; +class LogicSegment; namespace decode { class Annotation; @@ -67,7 +67,7 @@ class Decoder; class Logic; -class DecoderStack : public QObject, public SignalData +class DecoderStack : public QObject { Q_OBJECT @@ -87,6 +87,10 @@ public: void push(std::shared_ptr decoder); void remove(int index); + double samplerate() const; + + double start_time() const; + int64_t samples_decoded() const; std::vector get_visible_rows() const; @@ -131,6 +135,9 @@ Q_SIGNALS: private: pv::Session &session_; + double start_time_; + double samplerate_; + /** * This mutex prevents more than one decode operation occuring * concurrently. @@ -141,7 +148,7 @@ private: std::list< std::shared_ptr > stack_; - std::shared_ptr snapshot_; + std::shared_ptr segment_; mutable std::mutex input_mutex_; mutable std::condition_variable input_cond_;