X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fdialogs%2Fstoreprogress.hpp;h=f355acc69e2f3b6c8ff35eac2a389d2b93aa56e9;hb=db843aa8f7135deb6e22a92cff9237b7326a40aa;hp=ca14dfb21182b4846707b5f29fbfe9f8b1b24f4b;hpb=2acdb232d6bb452cfdfaea3ef5218fb4da592329;p=pulseview.git diff --git a/pv/dialogs/storeprogress.hpp b/pv/dialogs/storeprogress.hpp index ca14dfb2..f355acc6 100644 --- a/pv/dialogs/storeprogress.hpp +++ b/pv/dialogs/storeprogress.hpp @@ -14,13 +14,13 @@ * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * along with this program; if not, see . */ -#ifndef PULSEVIEW_PV_DIALOGS_SAVEPROGRESS_H -#define PULSEVIEW_PV_DIALOGS_SAVEPROGRESS_H +#ifndef PULSEVIEW_PV_DIALOGS_STOREPROGRESS_HPP +#define PULSEVIEW_PV_DIALOGS_STOREPROGRESS_HPP +#include #include #include @@ -28,9 +28,15 @@ #include +using std::atomic; +using std::map; +using std::pair; +using std::shared_ptr; +using std::string; + namespace pv { -class SigSession; +class Session; namespace dialogs { @@ -39,8 +45,11 @@ class StoreProgress : public QProgressDialog Q_OBJECT public: - StoreProgress(const QString &file_name, const SigSession &session, - QWidget *parent = 0); + StoreProgress(const QString &file_name, + const shared_ptr output_format, + const map &options, + const pair sample_range, + const Session &session, QWidget *parent = nullptr); virtual ~StoreProgress(); @@ -53,12 +62,14 @@ private: private Q_SLOTS: void on_progress_updated(); + void on_cancel(); private: pv::StoreSession session_; + atomic showing_error_; }; -} // dialogs -} // pv +} // namespace dialogs +} // namespace pv -#endif // PULSEVIEW_PV_DIALOGS_SAVEPROGRESS_H +#endif // PULSEVIEW_PV_DIALOGS_STOREPROGRESS_HPP