# HG changeset patch # User Lucas Thompson # Date 1523955829 -3600 # Node ID 365876627fb0d0328d43e5910c1fbc7add9af1e5 # Parent 0684c6698e3fb3679fb2b828dfa08d21061a6d42 Add constructor overload for using an optional ProgressReporter diff -r 0684c6698e3f -r 365876627fb0 data/fileio/CSVFileWriter.h --- a/data/fileio/CSVFileWriter.h Tue Apr 17 10:03:49 2018 +0100 +++ b/data/fileio/CSVFileWriter.h Tue Apr 17 10:03:49 2018 +0100 @@ -23,6 +23,7 @@ class Model; class MultiSelection; +class ProgressReporter; class CSVFileWriter : public QObject { @@ -33,6 +34,17 @@ Model *model, QString delimiter = ",", DataExportOptions options = DataExportDefaults); + + CSVFileWriter( + QString path, + Model *model, + ProgressReporter *reporter, + QString delimiter = ",", + DataExportOptions options = DataExportDefaults + ) : CSVFileWriter(path, model, delimiter, options) + { + m_reporter = reporter; + } virtual ~CSVFileWriter(); virtual bool isOK() const; @@ -47,6 +59,7 @@ QString m_error; QString m_delimiter; DataExportOptions m_options; + ProgressReporter *m_reporter; }; #endif