X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fdata%2Fdecode%2Frow.hpp;h=9d7992e8ceb0f71b2dd6c80c99a63149079007cd;hb=c6b4e925a8c5d855a70ab2815e8bc1c371d5801a;hp=34bb2373e844babd768335d4d8a335a227696b0c;hpb=1ed996b433f3391f54846784d76da4fe6b07500f;p=pulseview.git diff --git a/pv/data/decode/row.hpp b/pv/data/decode/row.hpp index 34bb2373..9d7992e8 100644 --- a/pv/data/decode/row.hpp +++ b/pv/data/decode/row.hpp @@ -31,27 +31,34 @@ namespace pv { namespace data { namespace decode { +class Decoder; + class Row { public: Row(); - Row(int index, const srd_decoder *decoder, - const srd_decoder_annotation_row *row = nullptr); + Row(int index, const Decoder* decoder, + const srd_decoder_annotation_row* row = nullptr); - const srd_decoder* decoder() const; - const srd_decoder_annotation_row* row() const; + const Decoder* decoder() const; + const srd_decoder_annotation_row* srd_row() const; const QString title() const; const QString class_name() const; int index() const; - bool operator<(const Row &other) const; + bool visible() const; + void set_visible(bool visible); + + bool operator<(const Row& other) const; + bool operator==(const Row& other) const; private: int index_; - const srd_decoder *decoder_; - const srd_decoder_annotation_row *row_; + const Decoder* decoder_; + const srd_decoder_annotation_row* row_; + bool visible_; }; } // namespace decode