#include <QObject>
namespace sigrok {
+class Channel;
class Output;
class OutputFormat;
}
class Session;
namespace data {
+class AnalogSegment;
class LogicSegment;
}
StoreSession(const std::string &file_name,
const std::shared_ptr<sigrok::OutputFormat> &output_format,
const std::map<std::string, Glib::VariantBase> &options,
+ const std::pair<uint64_t, uint64_t> sample_range,
const Session &session);
~StoreSession();
void cancel();
private:
- void store_proc(std::shared_ptr<pv::data::LogicSegment> segment);
+ void store_proc(std::vector< std::shared_ptr<sigrok::Channel> > achannel_list,
+ std::vector< std::shared_ptr<pv::data::AnalogSegment> > asegment_list,
+ std::shared_ptr<pv::data::LogicSegment> lsegment);
Q_SIGNALS:
void progress_updated();
const std::string file_name_;
const std::shared_ptr<sigrok::OutputFormat> output_format_;
const std::map<std::string, Glib::VariantBase> options_;
+ const std::pair<uint64_t, uint64_t> sample_range_;
const Session &session_;
std::shared_ptr<sigrok::Output> output_;
mutable std::mutex mutex_;
QString error_;
+
+ uint64_t start_sample_, sample_count_;
};
} // pv