X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fstoresession.hpp;h=6976b3134da11956cb87d09449ab10f5d6fad128;hp=9f31d59a7920c93d6252dba98acf0eee8fcef0d9;hb=ed2cec68674ac98de6bde7a399d12a0bb9c8dd05;hpb=e93f553816d1938ab1917dff497a36acec4257e3 diff --git a/pv/storesession.hpp b/pv/storesession.hpp index 9f31d59a..6976b313 100644 --- a/pv/storesession.hpp +++ b/pv/storesession.hpp @@ -36,6 +36,7 @@ #include namespace sigrok { +class Channel; class Output; class OutputFormat; } @@ -45,6 +46,7 @@ namespace pv { class Session; namespace data { +class AnalogSegment; class LogicSegment; } @@ -59,6 +61,7 @@ public: StoreSession(const std::string &file_name, const std::shared_ptr &output_format, const std::map &options, + const std::pair sample_range, const Session &session); ~StoreSession(); @@ -74,7 +77,9 @@ public: void cancel(); private: - void store_proc(std::shared_ptr segment); + void store_proc(std::vector< std::shared_ptr > achannel_list, + std::vector< std::shared_ptr > asegment_list, + std::shared_ptr lsegment); Q_SIGNALS: void progress_updated(); @@ -83,6 +88,7 @@ private: const std::string file_name_; const std::shared_ptr output_format_; const std::map options_; + const std::pair sample_range_; const Session &session_; std::shared_ptr output_; @@ -96,6 +102,8 @@ private: mutable std::mutex mutex_; QString error_; + + uint64_t start_sample_, sample_count_; }; } // pv