projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reimplement file save using the srzip output module.
[pulseview.git]
/
pv
/
storesession.h
diff --git
a/pv/storesession.h
b/pv/storesession.h
index 262eddc1eff3a9ad92afef0d673aa85bcb94d5f2..d365730e5217adc3cb352a30770cc346884d8136 100644
(file)
--- a/
pv/storesession.h
+++ b/
pv/storesession.h
@@
-30,6
+30,10
@@
#include <QObject>
#include <QObject>
+namespace sigrok {
+class Output;
+}
+
namespace pv {
class SigSession;
namespace pv {
class SigSession;
@@
-51,7
+55,7
@@
public:
~StoreSession();
~StoreSession();
- std::pair<
uint64_t, uint64_
t> progress() const;
+ std::pair<
int, in
t> progress() const;
const QString& error() const;
const QString& error() const;
@@
-64,18
+68,20
@@
public:
private:
void store_proc(std::shared_ptr<pv::data::LogicSnapshot> snapshot);
private:
void store_proc(std::shared_ptr<pv::data::LogicSnapshot> snapshot);
-
signals
:
+
Q_SIGNALS
:
void progress_updated();
private:
const std::string _file_name;
const SigSession &_session;
void progress_updated();
private:
const std::string _file_name;
const SigSession &_session;
+ std::shared_ptr<sigrok::Output> _output;
+
std::thread _thread;
std::atomic<bool> _interrupt;
std::thread _thread;
std::atomic<bool> _interrupt;
- std::atomic<
uint64_
t> _units_stored, _unit_count;
+ std::atomic<
in
t> _units_stored, _unit_count;
mutable std::mutex _mutex;
QString _error;
mutable std::mutex _mutex;
QString _error;