]> sigrok.org Git - pulseview.git/blobdiff - pv/data/decoderstack.h
Paint the unresolved area to show the decode progress
[pulseview.git] / pv / data / decoderstack.h
index 8b9d29b2bf89e487c31bf12e030b98678d618e2c..4de7ae4c24ab85cdfd9e93e52c465f8d3ed6d105 100644 (file)
@@ -74,6 +74,9 @@ public:
 
        const std::list< boost::shared_ptr<decode::Decoder> >& stack() const;
        void push(boost::shared_ptr<decode::Decoder> decoder);
+       void remove(int index);
+
+       int64_t samples_decoded() const;
 
        const std::vector< boost::shared_ptr<pv::view::decode::Annotation> >
                annotations() const;
@@ -106,6 +109,7 @@ private:
        std::list< boost::shared_ptr<decode::Decoder> > _stack;
 
        mutable boost::mutex _mutex;
+       int64_t _samples_decoded;
        std::vector< boost::shared_ptr<pv::view::decode::Annotation> >
                _annotations;
        QString _error_message;