X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fdata%2Fdecode%2Frow.hpp;h=b877b58b85b4ca25300dad8d45e12042ad30a7a8;hb=f54e68b03d5d24c7787962fcc701d8d52b0ec8ab;hp=8105887450fcab824772fb050eb43da150e40ca8;hpb=efdec55aec1a137460fa362a381ed1904182bfed;p=pulseview.git diff --git a/pv/data/decode/row.hpp b/pv/data/decode/row.hpp index 81058874..b877b58b 100644 --- a/pv/data/decode/row.hpp +++ b/pv/data/decode/row.hpp @@ -22,7 +22,8 @@ #include -#include "annotation.hpp" +#include +#include struct srd_decoder; struct srd_decoder_annotation_row; @@ -31,28 +32,42 @@ namespace pv { namespace data { namespace decode { +struct AnnotationClass; +class Decoder; + class Row { public: Row(); - Row(const srd_decoder *decoder, - const srd_decoder_annotation_row *row = nullptr); + Row(uint32_t index, Decoder* decoder, + const srd_decoder_annotation_row* srd_row = nullptr); - const srd_decoder* decoder() const; - const srd_decoder_annotation_row* row() const; + const Decoder* decoder() const; + const srd_decoder_annotation_row* get_srd_row() const; const QString title() const; + const QString description() const; + vector ann_classes() const; + uint32_t index() const; + + bool visible() const; + void set_visible(bool visible); + + bool has_hidden_classes() const; - bool operator<(const Row &other) const; + bool operator<(const Row& other) const; + bool operator==(const Row& other) const; private: - const srd_decoder *decoder_; - const srd_decoder_annotation_row *row_; + uint32_t index_; + Decoder* decoder_; + const srd_decoder_annotation_row* srd_row_; + bool visible_; }; -} // decode -} // data -} // pv +} // namespace decode +} // namespace data +} // namespace pv #endif // PULSEVIEW_PV_DATA_DECODE_ROW_HPP