]> sigrok.org Git - pulseview.git/blobdiff - pv/data/decode/row.hpp
DecodeTrace: Highlight row expand markers when a class is hidden
[pulseview.git] / pv / data / decode / row.hpp
index 5ddd10d3318fb2b0c9e0d399fa8b83915164d45f..b877b58b85b4ca25300dad8d45e12042ad30a7a8 100644 (file)
@@ -22,7 +22,8 @@
 
 #include <vector>
 
-#include "annotation.hpp"
+#include <pv/data/decode/annotation.hpp>
+#include <pv/data/decode/decoder.hpp>
 
 struct srd_decoder;
 struct srd_decoder_annotation_row;
@@ -31,24 +32,38 @@ 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<AnnotationClass*> 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_;
 };
 
 }  // namespace decode