]> sigrok.org Git - pulseview.git/blobdiff - pv/views/decoder_output/view.hpp
clang-tidy and clazy proposals
[pulseview.git] / pv / views / decoder_output / view.hpp
index ece85ad65835f45a5d83a29ece14f8eb97515ae6..16d35e82e2823af56cfe83cd5738798360667e6c 100644 (file)
@@ -41,7 +41,9 @@ namespace decoder_output {
 // When adding an entry here, don't forget to update SaveTypeNames as well
 enum SaveType {
        SaveTypeBinary,
-       SaveTypeHexDump,
+       SaveTypeHexDumpPlain,
+       SaveTypeHexDumpWithOffset,
+       SaveTypeHexDumpComplete,
        SaveTypeCount  // Indicates how many save types there are, must always be last
 };
 
@@ -55,8 +57,6 @@ class View : public ViewBase
 public:
        explicit View(Session &session, bool is_main_view=false, QMainWindow *parent = nullptr);
 
-       ~View();
-
        virtual ViewType get_type() const;
 
        /**
@@ -76,6 +76,9 @@ private:
        void reset_data();
        void update_data();
 
+       void save_data() const;
+       void save_data_as_hex_dump(bool with_offset=false, bool with_ascii=false) const;
+
 private Q_SLOTS:
        void on_selected_decoder_changed(int index);
        void on_selected_class_changed(int index);