namespace data {
namespace decode {
+class Decoder;
+
class Row
{
public:
Row();
- Row(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 visible() const;
+ void set_visible(bool visible);
- 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_;
+ int index_;
+ const Decoder* decoder_;
+ const srd_decoder_annotation_row* row_;
+ bool visible_;
};
-} // decode
-} // data
-} // pv
+} // namespace decode
+} // namespace data
+} // namespace pv
#endif // PULSEVIEW_PV_DATA_DECODE_ROW_HPP