X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fstoresession.hpp;h=e89b3fd209da4e488ae208cd5d47820e0a085692;hp=946fac4172aab29a270aa37dd276c2b4f88a6507;hb=09f55d9665efb3b17ba7de4bae47be6989e884fe;hpb=7a01bd3654ed046216308fa64edfd79be7cd525f diff --git a/pv/storesession.hpp b/pv/storesession.hpp index 946fac41..e89b3fd2 100644 --- a/pv/storesession.hpp +++ b/pv/storesession.hpp @@ -14,8 +14,7 @@ * 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_STORESESSION_HPP @@ -25,11 +24,14 @@ #include #include +#include #include #include #include #include +#include + #include namespace sigrok { @@ -42,6 +44,8 @@ namespace pv { class Session; namespace data { +class SignalBase; +class AnalogSegment; class LogicSegment; } @@ -55,6 +59,8 @@ private: 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(); @@ -70,14 +76,20 @@ 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(); + void store_successful(); + 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_; @@ -91,6 +103,8 @@ private: mutable std::mutex mutex_; QString error_; + + uint64_t start_sample_, sample_count_; }; } // pv