X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;ds=inline;f=pv%2Fdata%2Fdecode%2Frow.hpp;h=34bb2373e844babd768335d4d8a335a227696b0c;hb=4b97fe09c7815411483d4682d62572092d70f8a6;hp=3a163fb38a5f16741c735bf4b487807289fac0dc;hpb=2acdb232d6bb452cfdfaea3ef5218fb4da592329;p=pulseview.git
diff --git a/pv/data/decode/row.hpp b/pv/data/decode/row.hpp
index 3a163fb3..34bb2373 100644
--- a/pv/data/decode/row.hpp
+++ b/pv/data/decode/row.hpp
@@ -14,12 +14,11 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ * along with this program; if not, see .
*/
-#ifndef PULSEVIEW_PV_DATA_DECODE_ROW_H
-#define PULSEVIEW_PV_DATA_DECODE_ROW_H
+#ifndef PULSEVIEW_PV_DATA_DECODE_ROW_HPP
+#define PULSEVIEW_PV_DATA_DECODE_ROW_HPP
#include
@@ -37,23 +36,26 @@ class Row
public:
Row();
- Row(const srd_decoder *decoder,
- const srd_decoder_annotation_row *row = NULL);
+ Row(int index, const srd_decoder *decoder,
+ const srd_decoder_annotation_row *row = nullptr);
const srd_decoder* decoder() const;
const srd_decoder_annotation_row* row() const;
const QString title() const;
+ const QString class_name() const;
+ int index() const;
bool operator<(const Row &other) const;
private:
+ int index_;
const srd_decoder *decoder_;
const srd_decoder_annotation_row *row_;
};
-} // decode
-} // data
-} // pv
+} // namespace decode
+} // namespace data
+} // namespace pv
-#endif // PULSEVIEW_PV_DATA_DECODE_ROW_H
+#endif // PULSEVIEW_PV_DATA_DECODE_ROW_HPP