* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef PULSEVIEW_PV_DIALOGS_SAVEPROGRESS_HPP
-#define PULSEVIEW_PV_DIALOGS_SAVEPROGRESS_HPP
+#ifndef PULSEVIEW_PV_DIALOGS_STOREPROGRESS_HPP
+#define PULSEVIEW_PV_DIALOGS_STOREPROGRESS_HPP
+#include <atomic>
#include <memory>
#include <set>
#include <pv/storesession.hpp>
+using std::atomic;
using std::map;
using std::pair;
using std::shared_ptr;
const shared_ptr<sigrok::OutputFormat> output_format,
const map<string, Glib::VariantBase> &options,
const pair<uint64_t, uint64_t> sample_range,
- const Session &session,
- QWidget *parent = nullptr);
+ const Session &session, QWidget *parent = nullptr);
virtual ~StoreProgress();
private Q_SLOTS:
void on_progress_updated();
+ void on_cancel();
private:
pv::StoreSession session_;
+ atomic<bool> showing_error_;
};
-} // dialogs
-} // pv
+} // namespace dialogs
+} // namespace pv
-#endif // PULSEVIEW_PV_DIALOGS_SAVEPROGRESS_HPP
+#endif // PULSEVIEW_PV_DIALOGS_STOREPROGRESS_HPP