]> sigrok.org Git - pulseview.git/blobdiff - pv/data/decode/row.hpp
Implement hidable rows
[pulseview.git] / pv / data / decode / row.hpp
index 34bb2373e844babd768335d4d8a335a227696b0c..9d7992e8ceb0f71b2dd6c80c99a63149079007cd 100644 (file)
@@ -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_rowrow = 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