X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fstoresession.hpp;h=9f31d59a7920c93d6252dba98acf0eee8fcef0d9;hp=8eaddaa60f50ebb3138870a6463d5937973d5e54;hb=da5e6727a632752d19f975d84ea76f1683cd656f;hpb=2acdb232d6bb452cfdfaea3ef5218fb4da592329 diff --git a/pv/storesession.hpp b/pv/storesession.hpp index 8eaddaa6..9f31d59a 100644 --- a/pv/storesession.hpp +++ b/pv/storesession.hpp @@ -18,28 +18,34 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifndef PULSEVIEW_PV_STORESESSION_H -#define PULSEVIEW_PV_STORESESSION_H +#ifndef PULSEVIEW_PV_STORESESSION_HPP +#define PULSEVIEW_PV_STORESESSION_HPP #include #include +#include +#include +#include #include #include #include +#include + #include namespace sigrok { class Output; +class OutputFormat; } namespace pv { -class SigSession; +class Session; namespace data { -class LogicSnapshot; +class LogicSegment; } class StoreSession : public QObject @@ -51,7 +57,9 @@ private: public: StoreSession(const std::string &file_name, - const SigSession &session); + const std::shared_ptr &output_format, + const std::map &options, + const Session &session); ~StoreSession(); @@ -66,16 +74,19 @@ public: void cancel(); private: - void store_proc(std::shared_ptr snapshot); + void store_proc(std::shared_ptr segment); Q_SIGNALS: void progress_updated(); private: const std::string file_name_; - const SigSession &session_; + const std::shared_ptr output_format_; + const std::map options_; + const Session &session_; std::shared_ptr output_; + std::ofstream output_stream_; std::thread thread_; @@ -89,4 +100,4 @@ private: } // pv -#endif // PULSEVIEW_PV_STORESESSION_H +#endif // PULSEVIEW_PV_STORESESSION_HPP