X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=sigsession.h;h=a08ba8129914ae0f61c6031d28b858a32cd0b1d0;hp=47f37a10fa8e5680a9a61bde5d448d9fc07c95ac;hb=7cd5faf8cfed1871195aed7a4c325342172944b3;hpb=2953961c06ff9e758035ba3cd67220568bd01710 diff --git a/sigsession.h b/sigsession.h index 47f37a10..a08ba812 100644 --- a/sigsession.h +++ b/sigsession.h @@ -21,14 +21,25 @@ #ifndef SIGSESSION_H #define SIGSESSION_H +#include + +#include +#include + +#include + extern "C" { #include } -#include +class LogicData; +class LogicDataSnapshot; +class Signal; -class SigSession +class SigSession : public QObject { + Q_OBJECT + public: SigSession(); @@ -36,6 +47,9 @@ public: void loadFile(const std::string &name); + std::vector< boost::shared_ptr >& + get_signals(); + private: void dataFeedIn(const struct sr_dev_inst *sdi, struct sr_datafeed_packet *packet); @@ -44,7 +58,12 @@ private: struct sr_datafeed_packet *packet); private: - int probeList[SR_MAX_NUM_PROBES + 1]; + std::vector< boost::shared_ptr > _signals; + boost::shared_ptr _logic_data; + boost::shared_ptr _cur_logic_snapshot; + +signals: + void dataUpdated(); private: // TODO: This should not be necessary. Multiple concurrent