void set_main_bar(std::shared_ptr<pv::toolbars::MainBar> main_bar);
+ /**
+ * Indicates whether the captured data was saved to disk already or not
+ */
+ bool data_saved() const;
+
void save_settings(QSettings &settings) const;
void restore_settings(QSettings &settings);
private:
void sample_thread_proc(std::function<void (const QString)> error_handler);
+ void free_unused_memory();
+
void feed_in_header();
void feed_in_meta(std::shared_ptr<sigrok::Meta> meta);
std::thread sampling_thread_;
bool out_of_memory_;
+ bool data_saved_;
Q_SIGNALS:
void capture_state_changed(int state);
void add_view(const QString &title, views::ViewType type,
Session *session);
+
+public Q_SLOTS:
+ void on_data_saved();
};
} // namespace pv