summaryrefslogtreecommitdiff
path: root/examples/triage/sections.h
diff options
context:
space:
mode:
authorRusty Wagner <rusty@vector35.com>2019-04-02 15:30:45 -0400
committerRusty Wagner <rusty@vector35.com>2019-04-02 15:36:40 -0400
commit73a9399f5d1d86c7e291498b7fe836550f2f76ab (patch)
treee7c7cfe9a2f27a93ddac41cf600e7bc1fc638a83 /examples/triage/sections.h
parentc17af471c48ea092434917c803f9c88fe91022a6 (diff)
Add a C++ version of the triage plugin (no Makefile yet)
Diffstat (limited to 'examples/triage/sections.h')
-rw-r--r--examples/triage/sections.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/examples/triage/sections.h b/examples/triage/sections.h
new file mode 100644
index 00000000..09c9ea63
--- /dev/null
+++ b/examples/triage/sections.h
@@ -0,0 +1,24 @@
+#pragma once
+
+#include <QtWidgets/QWidget>
+#include "uitypes.h"
+
+
+class SegmentsWidget: public QWidget
+{
+ std::vector<SegmentRef> m_segments;
+
+public:
+ SegmentsWidget(QWidget* parent, BinaryViewRef data);
+ const std::vector<SegmentRef>& GetSegments() const { return m_segments; }
+};
+
+
+class SectionsWidget: public QWidget
+{
+ std::vector<SectionRef> m_sections;
+
+public:
+ SectionsWidget(QWidget* parent, BinaryViewRef data);
+ const std::vector<SectionRef>& GetSections() const { return m_sections; }
+};