]> sigrok.org Git - pulseview.git/blobdiff - pv/data/decode/decoder.hpp
TabularDecView: Make the model/view work
[pulseview.git] / pv / data / decode / decoder.hpp
index eb9a44bf6c1a8841cba632bc1bf3b5aa8d517c91..7b1a20134acaccd7ce4adec6462d11a02c11ffcb 100644 (file)
@@ -82,12 +82,14 @@ struct DecodeBinaryClassInfo
 class Decoder
 {
 public:
-       Decoder(const srd_decoder *const dec);
+       Decoder(const srd_decoder *const dec, uint8_t stack_level);
 
        virtual ~Decoder();
 
        const srd_decoder* get_srd_decoder() const;
 
+       uint8_t get_stack_level() const;
+
        const char* name() const;
 
        bool visible() const;
@@ -97,7 +99,6 @@ public:
        void set_channels(vector<DecodeChannel*> channels);
 
        const map<string, GVariant*>& options() const;
-
        void set_option(const char *id, GVariant *value);
 
        void apply_all_options();
@@ -120,6 +121,7 @@ public:
 
 private:
        const srd_decoder* const srd_decoder_;
+       uint8_t stack_level_;
 
        bool visible_;