X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fdevices%2Finputfile.hpp;h=165010f717f3cffe067eac15c7a50bcd11d4aa1f;hb=8845be3c9c7d5aca02fb2efc4038f4735a5242d6;hp=41698e6d6be45638b7d00f24cb139deb9f2c6f6a;hpb=6f925ba9d6faf1077b73c5a5808259576081716a;p=pulseview.git
diff --git a/pv/devices/inputfile.hpp b/pv/devices/inputfile.hpp
index 41698e6d..165010f7 100644
--- a/pv/devices/inputfile.hpp
+++ b/pv/devices/inputfile.hpp
@@ -17,8 +17,8 @@
* along with this program; if not, see .
*/
-#ifndef PULSEVIEW_PV_DEVICE_INPUTFILE_HPP
-#define PULSEVIEW_PV_DEVICE_INPUTFILE_HPP
+#ifndef PULSEVIEW_PV_DEVICES_INPUTFILE_HPP
+#define PULSEVIEW_PV_DEVICES_INPUTFILE_HPP
#include
@@ -26,6 +26,8 @@
#include "file.hpp"
+#include
+
using std::atomic;
using std::ifstream;
using std::map;
@@ -47,6 +49,15 @@ public:
shared_ptr format,
const map &options);
+ /**
+ * Constructor that loads a file using the metadata saved by
+ * save_meta_to_settings() before.
+ */
+ InputFile(const shared_ptr &context,
+ QSettings &settings);
+
+ void save_meta_to_settings(QSettings &settings);
+
void open();
void close();
@@ -59,8 +70,8 @@ public:
private:
const shared_ptr context_;
- const shared_ptr format_;
- const map options_;
+ shared_ptr format_;
+ map options_;
shared_ptr input_;
ifstream *f;
@@ -70,5 +81,5 @@ private:
} // namespace devices
} // namespace pv
-#endif // PULSEVIEW_PV_SESSIONS_INPUTFILE_HPP
+#endif // PULSEVIEW_PV_DEVICES_INPUTFILE_HPP