X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdevices%2Finputfile.hpp;h=e08832f608d6247e9febce369f32c3b8aea843e5;hp=41698e6d6be45638b7d00f24cb139deb9f2c6f6a;hb=3782d8609d2f4bd66855dc4f72c0f74d9bc11c23;hpb=4deee4de1660cd5cdc100f3130a3e68af97212d9 diff --git a/pv/devices/inputfile.hpp b/pv/devices/inputfile.hpp index 41698e6d..e08832f6 100644 --- a/pv/devices/inputfile.hpp +++ b/pv/devices/inputfile.hpp @@ -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;