X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdata%2Fdecodesignal.hpp;h=0f3a0330e3ad9029ad742d796294452d091f91ef;hp=23ab209b73a2faa784806fe5d24b68abd6683e96;hb=ecd07c20d34ce940163ac2e7fb26cb7ceac565bb;hpb=ad908057e13224eee9f983685e0ccc7db1ded0e9 diff --git a/pv/data/decodesignal.hpp b/pv/data/decodesignal.hpp index 23ab209..0f3a033 100644 --- a/pv/data/decodesignal.hpp +++ b/pv/data/decodesignal.hpp @@ -20,15 +20,27 @@ #ifndef PULSEVIEW_PV_DATA_DECODESIGNAL_HPP #define PULSEVIEW_PV_DATA_DECODESIGNAL_HPP +#include + +#include + #include #include +using std::list; +using std::vector; using std::shared_ptr; namespace pv { namespace data { +namespace decode { +class Annotation; +class Decoder; +class Row; +} + class DecoderStack; class Logic; class SignalData; @@ -42,12 +54,25 @@ public: virtual ~DecodeSignal(); bool is_decode_signal() const; - shared_ptr decoder_stack() const; + shared_ptr decoder_stack() const; + const list< shared_ptr >& decoder_stack_list() const; void stack_decoder(srd_decoder *decoder); void remove_decoder(int index); bool toggle_decoder_visibility(int index); + QString error_message() const; + + vector visible_rows() const; + + /** + * Extracts sorted annotations between two period into a vector. + */ + void get_annotation_subset( + vector &dest, + const decode::Row &row, uint64_t start_sample, + uint64_t end_sample) const; + Q_SIGNALS: void new_annotations();