Session: Renamed pv::SigSession to Session
authorJoel Holdsworth <joel@airwebreathe.org.uk>
Sat, 22 Nov 2014 16:02:34 +0000 (16:02 +0000)
committerJoel Holdsworth <joel@airwebreathe.org.uk>
Sat, 22 Nov 2014 16:02:34 +0000 (16:02 +0000)
30 files changed:
pv/data/decoderstack.cpp
pv/data/decoderstack.hpp
pv/devicemanager.hpp
pv/dialogs/storeprogress.cpp
pv/dialogs/storeprogress.hpp
pv/mainwindow.cpp
pv/mainwindow.hpp
pv/popups/channels.cpp
pv/popups/channels.hpp
pv/sigsession.cpp
pv/sigsession.hpp
pv/storesession.cpp
pv/storesession.hpp
pv/toolbars/samplingbar.cpp
pv/toolbars/samplingbar.hpp
pv/view/analogsignal.cpp
pv/view/analogsignal.hpp
pv/view/decodetrace.cpp
pv/view/decodetrace.hpp
pv/view/logicsignal.cpp
pv/view/logicsignal.hpp
pv/view/rowitemowner.hpp
pv/view/signal.cpp
pv/view/signal.hpp
pv/view/tracegroup.cpp
pv/view/tracegroup.hpp
pv/view/view.cpp
pv/view/view.hpp
pv/view/viewport.hpp
test/data/decoderstack.cpp

index 5e30faa73c810e7d64e9bfb936e7cb6e8656daa8..da831e3be097fe6446bb688ae953860f9964ef10 100644 (file)
@@ -59,7 +59,7 @@ const unsigned int DecoderStack::DecodeNotifyPeriod = 65536;
 
 mutex DecoderStack::global_decode_mutex_;
 
-DecoderStack::DecoderStack(pv::SigSession &session,
+DecoderStack::DecoderStack(pv::Session &session,
        const srd_decoder *const dec) :
        session_(session),
        sample_count_(0),
index 979a56fa0699f306075609f1e5959cbd65056624..e8aeed10f2b09da3db62e8fbc82c317c383ed536 100644 (file)
@@ -50,7 +50,7 @@ struct TwoDecoderStack;
 
 namespace pv {
 
-class SigSession;
+class Session;
 
 namespace view {
 class LogicSignal;
@@ -78,7 +78,7 @@ private:
        static const unsigned int DecodeNotifyPeriod;
 
 public:
-       DecoderStack(pv::SigSession &session_,
+       DecoderStack(pv::Session &session_,
                const srd_decoder *const decoder);
 
        virtual ~DecoderStack();
@@ -129,7 +129,7 @@ Q_SIGNALS:
        void new_decode_data();
 
 private:
-       pv::SigSession &session_;
+       pv::Session &session_;
 
        /**
         * This mutex prevents more than one decode operation occuring
index 823cb2bc9542ee8632690be4780db421a8bcc1de..fa116223305a179884c27d400d76b25c53e87caa 100644 (file)
@@ -40,7 +40,7 @@ namespace sigrok {
 
 namespace pv {
 
-class SigSession;
+class Session;
 
 class DeviceManager
 {
index 7cc40a75667994405d4ab26a937872ddb4819128..b041dcdb1508455576399f824121c8598db743c8 100644 (file)
@@ -28,7 +28,7 @@ namespace pv {
 namespace dialogs {
 
 StoreProgress::StoreProgress(const QString &file_name,
-       const SigSession &session, QWidget *parent) :
+       const Session &session, QWidget *parent) :
        QProgressDialog(tr("Saving..."), tr("Cancel"), 0, 0, parent),
        session_(file_name.toStdString(), session)
 {
index ca14dfb21182b4846707b5f29fbfe9f8b1b24f4b..92634b4247110d1c781d78ccaaa3d188d388914f 100644 (file)
@@ -30,7 +30,7 @@
 
 namespace pv {
 
-class SigSession;
+class Session;
 
 namespace dialogs {
 
@@ -39,7 +39,7 @@ class StoreProgress : public QProgressDialog
        Q_OBJECT
 
 public:
-       StoreProgress(const QString &file_name, const SigSession &session,
+       StoreProgress(const QString &file_name, const Session &session,
                QWidget *parent = 0);
 
        virtual ~StoreProgress();
index 97717b5abe3493fd16ec2f285cd11955c5ce18a3..f9aa81dfdc4e7bc2e4e843543091709821d96a0a 100644 (file)
@@ -98,13 +98,13 @@ MainWindow::MainWindow(DeviceManager &device_manager,
 void MainWindow::run_stop()
 {
        switch(session_.get_capture_state()) {
-       case SigSession::Stopped:
+       case Session::Stopped:
                session_.start_capture([&](QString message) {
                        session_error("Capture failed", message); });
                break;
 
-       case SigSession::AwaitingTrigger:
-       case SigSession::Running:
+       case Session::AwaitingTrigger:
+       case Session::Running:
                session_.stop_capture();
                break;
        }
@@ -556,7 +556,7 @@ void MainWindow::add_decoder(srd_decoder *decoder)
 
 void MainWindow::capture_state_changed(int state)
 {
-       sampling_bar_->set_capture_state((pv::SigSession::capture_state)state);
+       sampling_bar_->set_capture_state((pv::Session::capture_state)state);
 }
 
 void MainWindow::device_selected()
index eee1d855d072c561e123c935aca1301bb0168c56..c7859d0a4cb43ec9f7256d8fcdaf5153c4e931a6 100644 (file)
@@ -120,7 +120,7 @@ private:
 
        DeviceManager &device_manager_;
 
-       SigSession session_;
+       Session session_;
 
        pv::view::View *view_;
 
index 4598f1239185219a9ce088ae7dccbd4d16ada088..f8061d9ac2c3514ba72cf2bea5cc06a316373238 100644 (file)
@@ -53,7 +53,7 @@ using pv::view::Signal;
 namespace pv {
 namespace popups {
 
-Channels::Channels(SigSession &session, QWidget *parent) :
+Channels::Channels(Session &session, QWidget *parent) :
        Popup(parent),
        session_(session),
        updating_channels_(false),
index e472fdffae05dece304a2c8330a2dac7d49fd164..0ebe333f5f4836484ebf547f364e735445e50338 100644 (file)
@@ -41,7 +41,7 @@ namespace sigrok {
 
 namespace pv {
 
-class SigSession;
+class Session;
 
 namespace prop {
 namespace binding {
@@ -60,7 +60,7 @@ class Channels : public pv::widgets::Popup
        Q_OBJECT
 
 public:
-       Channels(SigSession &session_, QWidget *parent);
+       Channels(Session &session_, QWidget *parent);
 
 private:
        void set_all_channels(bool set);
@@ -81,7 +81,7 @@ private Q_SLOTS:
        void disable_all_channels();
 
 private:
-       pv::SigSession &session_;
+       pv::Session &session_;
 
        QFormLayout layout_;
 
index 80830214877148f38a6100c06dc43bbc56c0a134..87ba9afa5d484eace490524d5d9247a0ab5061ef 100644 (file)
@@ -82,7 +82,7 @@ using Glib::VariantBase;
 using Glib::Variant;
 
 namespace pv {
-SigSession::SigSession(DeviceManager &device_manager) :
+Session::Session(DeviceManager &device_manager) :
        device_manager_(device_manager),
        session_(device_manager.context()->create_session()),
        capture_state_(Stopped)
@@ -90,33 +90,33 @@ SigSession::SigSession(DeviceManager &device_manager) :
        set_default_device();
 }
 
-SigSession::~SigSession()
+Session::~Session()
 {
        // Stop and join to the thread
        stop_capture();
 }
 
-DeviceManager& SigSession::device_manager()
+DeviceManager& Session::device_manager()
 {
        return device_manager_;
 }
 
-const DeviceManager& SigSession::device_manager() const
+const DeviceManager& Session::device_manager() const
 {
        return device_manager_;
 }
 
-const shared_ptr<sigrok::Session>& SigSession::session() const
+const shared_ptr<sigrok::Session>& Session::session() const
 {
        return session_;
 }
 
-shared_ptr<Device> SigSession::device() const
+shared_ptr<Device> Session::device() const
 {
        return device_;
 }
 
-void SigSession::set_device(shared_ptr<Device> device)
+void Session::set_device(shared_ptr<Device> device)
 {
        // Ensure we are not capturing before setting the device
        stop_capture();
@@ -157,7 +157,7 @@ void SigSession::set_device(shared_ptr<Device> device)
        device_selected();
 }
 
-void SigSession::set_file(const string &name)
+void Session::set_file(const string &name)
 {
        session_ = device_manager_.context()->load_session(name);
        device_ = session_->devices()[0];
@@ -171,7 +171,7 @@ void SigSession::set_file(const string &name)
        device_selected();
 }
 
-void SigSession::set_default_device()
+void Session::set_default_device()
 {
        shared_ptr<HardwareDevice> default_device;
        const list< shared_ptr<HardwareDevice> > &devices =
@@ -192,13 +192,13 @@ void SigSession::set_default_device()
        }
 }
 
-SigSession::capture_state SigSession::get_capture_state() const
+Session::capture_state Session::get_capture_state() const
 {
        lock_guard<mutex> lock(sampling_mutex_);
        return capture_state_;
 }
 
-void SigSession::start_capture(function<void (const QString)> error_handler)
+void Session::start_capture(function<void (const QString)> error_handler)
 {
        stop_capture();
 
@@ -220,11 +220,11 @@ void SigSession::start_capture(function<void (const QString)> error_handler)
 
        // Begin the session
        sampling_thread_ = std::thread(
-               &SigSession::sample_thread_proc, this, device_,
+               &Session::sample_thread_proc, this, device_,
                        error_handler);
 }
 
-void SigSession::stop_capture()
+void Session::stop_capture()
 {
        if (get_capture_state() != Stopped)
                session_->stop();
@@ -234,7 +234,7 @@ void SigSession::stop_capture()
                sampling_thread_.join();
 }
 
-set< shared_ptr<data::SignalData> > SigSession::get_data() const
+set< shared_ptr<data::SignalData> > Session::get_data() const
 {
        shared_lock<shared_mutex> lock(signals_mutex_);
        set< shared_ptr<data::SignalData> > data;
@@ -246,18 +246,18 @@ set< shared_ptr<data::SignalData> > SigSession::get_data() const
        return data;
 }
 
-boost::shared_mutex& SigSession::signals_mutex() const
+boost::shared_mutex& Session::signals_mutex() const
 {
        return signals_mutex_;
 }
 
-const vector< shared_ptr<view::Signal> >& SigSession::signals() const
+const vector< shared_ptr<view::Signal> >& Session::signals() const
 {
        return signals_;
 }
 
 #ifdef ENABLE_DECODE
-bool SigSession::add_decoder(srd_decoder *const dec)
+bool Session::add_decoder(srd_decoder *const dec)
 {
        map<const srd_channel*, shared_ptr<view::LogicSignal> > channels;
        shared_ptr<data::DecoderStack> decoder_stack;
@@ -313,13 +313,13 @@ bool SigSession::add_decoder(srd_decoder *const dec)
        return true;
 }
 
-vector< shared_ptr<view::DecodeTrace> > SigSession::get_decode_signals() const
+vector< shared_ptr<view::DecodeTrace> > Session::get_decode_signals() const
 {
        shared_lock<shared_mutex> lock(signals_mutex_);
        return decode_traces_;
 }
 
-void SigSession::remove_decode_signal(view::DecodeTrace *signal)
+void Session::remove_decode_signal(view::DecodeTrace *signal)
 {
        for (auto i = decode_traces_.begin(); i != decode_traces_.end(); i++)
                if ((*i).get() == signal)
@@ -331,7 +331,7 @@ void SigSession::remove_decode_signal(view::DecodeTrace *signal)
 }
 #endif
 
-void SigSession::set_capture_state(capture_state state)
+void Session::set_capture_state(capture_state state)
 {
        lock_guard<mutex> lock(sampling_mutex_);
        const bool changed = capture_state_ != state;
@@ -340,7 +340,7 @@ void SigSession::set_capture_state(capture_state state)
                capture_state_changed(state);
 }
 
-void SigSession::update_signals(shared_ptr<Device> device)
+void Session::update_signals(shared_ptr<Device> device)
 {
        assert(device);
        assert(capture_state_ == Stopped);
@@ -407,7 +407,7 @@ void SigSession::update_signals(shared_ptr<Device> device)
        signals_changed();
 }
 
-shared_ptr<view::Signal> SigSession::signal_from_channel(
+shared_ptr<view::Signal> Session::signal_from_channel(
        shared_ptr<Channel> channel) const
 {
        lock_guard<boost::shared_mutex> lock(signals_mutex_);
@@ -419,7 +419,7 @@ shared_ptr<view::Signal> SigSession::signal_from_channel(
        return shared_ptr<view::Signal>();
 }
 
-void SigSession::read_sample_rate(shared_ptr<Device> device)
+void Session::read_sample_rate(shared_ptr<Device> device)
 {
        const auto keys = device_->config_keys(ConfigKey::DEVICE_OPTIONS);
        const auto iter = keys.find(ConfigKey::SAMPLERATE);
@@ -436,7 +436,7 @@ void SigSession::read_sample_rate(shared_ptr<Device> device)
        }
 }
 
-void SigSession::sample_thread_proc(shared_ptr<Device> device,
+void Session::sample_thread_proc(shared_ptr<Device> device,
        function<void (const QString)> error_handler)
 {
        assert(device);
@@ -465,12 +465,12 @@ void SigSession::sample_thread_proc(shared_ptr<Device> device,
        }
 }
 
-void SigSession::feed_in_header(shared_ptr<Device> device)
+void Session::feed_in_header(shared_ptr<Device> device)
 {
        read_sample_rate(device);
 }
 
-void SigSession::feed_in_meta(shared_ptr<Device> device,
+void Session::feed_in_meta(shared_ptr<Device> device,
        shared_ptr<Meta> meta)
 {
        (void)device;
@@ -489,13 +489,13 @@ void SigSession::feed_in_meta(shared_ptr<Device> device,
        signals_changed();
 }
 
-void SigSession::feed_in_frame_begin()
+void Session::feed_in_frame_begin()
 {
        if (cur_logic_snapshot_ || !cur_analog_snapshots_.empty())
                frame_began();
 }
 
-void SigSession::feed_in_logic(shared_ptr<Logic> logic)
+void Session::feed_in_logic(shared_ptr<Logic> logic)
 {
        lock_guard<mutex> lock(data_mutex_);
 
@@ -540,7 +540,7 @@ void SigSession::feed_in_logic(shared_ptr<Logic> logic)
        data_received();
 }
 
-void SigSession::feed_in_analog(shared_ptr<Analog> analog)
+void Session::feed_in_analog(shared_ptr<Analog> analog)
 {
        lock_guard<mutex> lock(data_mutex_);
 
@@ -608,7 +608,7 @@ void SigSession::feed_in_analog(shared_ptr<Analog> analog)
        data_received();
 }
 
-void SigSession::data_feed_in(shared_ptr<Device> device, shared_ptr<Packet> packet)
+void Session::data_feed_in(shared_ptr<Device> device, shared_ptr<Packet> packet)
 {
        assert(device);
        assert(packet);
index 5f613bf93af4fe5c6e87bef1509383e9c01be79b..c6a317def7b61b5f1b61a6bef5ffa65847372fc4 100644 (file)
@@ -65,7 +65,7 @@ class LogicSignal;
 class Signal;
 }
 
-class SigSession : public QObject
+class Session : public QObject
 {
        Q_OBJECT
 
@@ -77,9 +77,9 @@ public:
        };
 
 public:
-       SigSession(DeviceManager &device_manager);
+       Session(DeviceManager &device_manager);
 
-       ~SigSession();
+       ~Session();
 
        DeviceManager& device_manager();
 
index 058b46a99ee8d1d5b6434cd33e6da93c91d080fd..f6fef4635c630fadcb772c14e1013b96c2d61a17 100644 (file)
@@ -53,7 +53,7 @@ namespace pv {
 const size_t StoreSession::BlockSize = 1024 * 1024;
 
 StoreSession::StoreSession(const std::string &file_name,
-       const SigSession &session) :
+       const Session &session) :
        file_name_(file_name),
        session_(session),
        interrupt_(false),
index 8eaddaa60f50ebb3138870a6463d5937973d5e54..62cf18958e251229e02b19abb29a189fd999dda1 100644 (file)
@@ -36,7 +36,7 @@ class Output;
 
 namespace pv {
 
-class SigSession;
+class Session;
 
 namespace data {
 class LogicSnapshot;
@@ -51,7 +51,7 @@ private:
 
 public:
        StoreSession(const std::string &file_name,
-               const SigSession &session);
+               const Session &session);
 
        ~StoreSession();
 
@@ -73,7 +73,7 @@ Q_SIGNALS:
 
 private:
        const std::string file_name_;
-       const SigSession &session_;
+       const Session &session_;
 
        std::shared_ptr<sigrok::Output> output_;
 
index 2002dd237b4f88ce3dd5edb012ae6a1ee81b6c01..cddfa5f5d39f8d9a8b327038757e690d598d877e 100644 (file)
@@ -56,7 +56,7 @@ const uint64_t SamplingBar::MinSampleCount = 100ULL;
 const uint64_t SamplingBar::MaxSampleCount = 1000000000000ULL;
 const uint64_t SamplingBar::DefaultSampleCount = 1000000;
 
-SamplingBar::SamplingBar(SigSession &session, MainWindow &main_window) :
+SamplingBar::SamplingBar(Session &session, MainWindow &main_window) :
        QToolBar("Sampling Bar", &main_window),
        session_(session),
        main_window_(main_window),
@@ -88,7 +88,7 @@ SamplingBar::SamplingBar(SigSession &session, MainWindow &main_window) :
 
        sample_count_.show_min_max_step(0, UINT64_MAX, 1);
 
-       set_capture_state(pv::SigSession::Stopped);
+       set_capture_state(pv::Session::Stopped);
 
        configure_button_.setIcon(QIcon::fromTheme("configure",
                QIcon(":/icons/configure.png")));
@@ -153,11 +153,11 @@ shared_ptr<Device> SamplingBar::get_selected_device() const
        return device_selector_.itemData(index).value<shared_ptr<Device>>();
 }
 
-void SamplingBar::set_capture_state(pv::SigSession::capture_state state)
+void SamplingBar::set_capture_state(pv::Session::capture_state state)
 {
        const QIcon *icons[] = {&icon_grey_, &icon_red_, &icon_green_};
        run_stop_button_.setIcon(*icons[state]);
-       run_stop_button_.setText((state == pv::SigSession::Stopped) ?
+       run_stop_button_.setText((state == pv::Session::Stopped) ?
                tr("Run") : tr("Stop"));
        run_stop_button_.setShortcut(QKeySequence(Qt::Key_Space));
 }
index af2743118ad7441d1140869b5989632bb46e8762..25ce23ae9ccffb9463966652e988eb3d8092e9f4 100644 (file)
@@ -46,7 +46,7 @@ class QAction;
 namespace pv {
 
 class MainWindow;
-class SigSession;
+class Session;
 
 namespace toolbars {
 
@@ -60,7 +60,7 @@ private:
        static const uint64_t DefaultSampleCount;
 
 public:
-       SamplingBar(SigSession &session, pv::MainWindow &main_window);
+       SamplingBar(Session &session, pv::MainWindow &main_window);
 
        void set_device_list(
                const std::list< std::pair<std::shared_ptr<sigrok::Device>, std::string> > &devices,
@@ -68,7 +68,7 @@ public:
 
        std::shared_ptr<sigrok::Device> get_selected_device() const;
 
-       void set_capture_state(pv::SigSession::capture_state state);
+       void set_capture_state(pv::Session::capture_state state);
 
 Q_SIGNALS:
        void run_stop();
@@ -93,7 +93,7 @@ protected:
        bool eventFilter(QObject *watched, QEvent *event);
 
 private:
-       SigSession &session_;
+       Session &session_;
        MainWindow &main_window_;
 
        QComboBox device_selector_;
index abbb94c57f1d94225db6ae7c53fb9c611899db68..8a19cc210180abeedaedeb6305e96942b046686a 100644 (file)
@@ -53,7 +53,7 @@ const QColor AnalogSignal::SignalColours[4] = {
 const float AnalogSignal::EnvelopeThreshold = 256.0f;
 
 AnalogSignal::AnalogSignal(
-       pv::SigSession &session,
+       pv::Session &session,
        shared_ptr<Channel> channel,
        shared_ptr<data::Analog> data) :
        Signal(session, channel),
index 91a8e5c2810665ea6a4f445b187426d0d66d5343..5295fe32eed6f6229d62b3abb5a79f632a393787 100644 (file)
@@ -43,7 +43,7 @@ private:
        static const float EnvelopeThreshold;
 
 public:
-       AnalogSignal(pv::SigSession &session,
+       AnalogSignal(pv::Session &session,
                std::shared_ptr<sigrok::Channel> channel,
                std::shared_ptr<pv::data::Analog> data);
 
index 6947491a285ead6b3317e166e4ca645354d627c6..790589568582003b70f2ceb948a7803b4ae07fc1 100644 (file)
@@ -123,7 +123,7 @@ const QColor DecodeTrace::OutlineColours[16] = {
        QColor(0x6B, 0x23, 0x37)
 };
 
-DecodeTrace::DecodeTrace(pv::SigSession &session,
+DecodeTrace::DecodeTrace(pv::Session &session,
        std::shared_ptr<pv::data::DecoderStack> decoder_stack, int index) :
        Trace(QString::fromUtf8(
                decoder_stack->stack().front()->decoder()->name)),
index 0e2ce1464e2faf337b3fa37c0cf0c5283f5b6d55..e3d8d68c04feb45e50c8780f8f480dfa45b001b1 100644 (file)
@@ -39,7 +39,7 @@ class QComboBox;
 
 namespace pv {
 
-class SigSession;
+class Session;
 
 namespace data {
 class DecoderStack;
@@ -82,7 +82,7 @@ private:
        static const QColor OutlineColours[16];
 
 public:
-       DecodeTrace(pv::SigSession &session,
+       DecodeTrace(pv::Session &session,
                std::shared_ptr<pv::data::DecoderStack> decoder_stack,
                int index);
 
@@ -192,7 +192,7 @@ private Q_SLOTS:
        void on_show_hide_decoder(int index);
 
 private:
-       pv::SigSession &session_;
+       pv::Session &session_;
        std::shared_ptr<pv::data::DecoderStack> decoder_stack_;
 
        uint64_t decode_start_, decode_end_;
index 5beb39df4fa6b4f126686b97aec6d35ecab731a2..b3901363548cff82686412fe070bad4f60c2d254 100644 (file)
@@ -82,7 +82,7 @@ const QColor LogicSignal::SignalColours[10] = {
 };
 
 LogicSignal::LogicSignal(
-       pv::SigSession &session,
+       pv::Session &session,
        shared_ptr<Device> device,
        shared_ptr<Channel> channel,
        shared_ptr<data::Logic> data) :
index a4f64e6bddc83b09da242b85b94d9ee23d629775..0d422d7ce5b1534ef47b1b620f7b6f1d35d7ad5a 100644 (file)
@@ -57,7 +57,7 @@ private:
        static const QColor SignalColours[10];
 
 public:
-       LogicSignal(pv::SigSession &session,
+       LogicSignal(pv::Session &session,
                std::shared_ptr<sigrok::Device> device,
                std::shared_ptr<sigrok::Channel> channel,
                std::shared_ptr<pv::data::Logic> data);
index 8c63aa565da3eb372df1a215a8a81d4db9784481..10d6e99ba3512bfc381f4d575fb3760e8aaa5b2d 100644 (file)
@@ -28,7 +28,7 @@
 
 namespace pv {
 
-class SigSession;
+class Session;
 
 namespace view {
 
@@ -46,12 +46,12 @@ public:
        /**
         * Returns the session of the onwer.
         */
-       virtual pv::SigSession& session() = 0;
+       virtual pv::Session& session() = 0;
 
        /**
         * Returns the session of the owner.
         */
-       virtual const pv::SigSession& session() const = 0;
+       virtual const pv::Session& session() const = 0;
 
        /**
         * Returns the view of the owner.
index 35e1cdbfc840b1bb8e5fde6178f7dbfafc26b09e..767896f2ccda2d75b5063d55a0c17afaf6b7adda 100644 (file)
@@ -58,7 +58,7 @@ const char *const ChannelNames[] = {
        "SCL"
 };
 
-Signal::Signal(pv::SigSession &session,
+Signal::Signal(pv::Session &session,
        std::shared_ptr<sigrok::Channel> channel) :
        Trace(channel->name().c_str()),
        session_(session),
index dd3af0b3abc704d339859ecf4449eb23734e04da..910b2e699e055582466d2b59d0de8c6589a7495d 100644 (file)
@@ -36,7 +36,7 @@ namespace sigrok {
 
 namespace pv {
 
-class SigSession;
+class Session;
 
 namespace data {
 class SignalData;
@@ -49,7 +49,7 @@ class Signal : public Trace
        Q_OBJECT
 
 protected:
-       Signal(pv::SigSession &session,
+       Signal(pv::Session &session,
                std::shared_ptr<sigrok::Channel> channel);
 
 public:
@@ -79,7 +79,7 @@ private Q_SLOTS:
        void on_disable();
 
 protected:
-       pv::SigSession &session_;
+       pv::Session &session_;
        std::shared_ptr<sigrok::Channel> channel_;
 
        QComboBox *name_widget_;
index 665b4ad186c1403cb3a888f9f73e4e94851c37df..272fc1a1e3b341823e82133c099d4f35f392c617 100644 (file)
@@ -52,13 +52,13 @@ bool TraceGroup::enabled() const
                [](const shared_ptr<RowItem> &r) { return r->enabled(); });
 }
 
-pv::SigSession& TraceGroup::session()
+pv::Session& TraceGroup::session()
 {
        assert(owner_);
        return owner_->session();
 }
 
-const pv::SigSession& TraceGroup::session() const
+const pv::Session& TraceGroup::session() const
 {
        assert(owner_);
        return owner_->session();
index 960a15d9a23105bd314ae090bee1bc680792c816..f89ea437f33c8026ad1ab9898055bf145b9867d8 100644 (file)
@@ -51,12 +51,12 @@ public:
        /**
         * Returns the session of the onwer.
         */
-       pv::SigSession& session();
+       pv::Session& session();
 
        /**
         * Returns the session of the onwer.
         */
-       const pv::SigSession& session() const;
+       const pv::Session& session() const;
 
        /**
         * Returns the view of the owner.
index d621e7143f8a2f189bd06329fb020d0cf26cfb7d..c96063536c0e917bc86336bbf2d7cb071a63b3c6 100644 (file)
@@ -79,7 +79,7 @@ const QColor View::CursorAreaColour(220, 231, 243);
 
 const QSizeF View::LabelPadding(4, 0);
 
-View::View(SigSession &session, QWidget *parent) :
+View::View(Session &session, QWidget *parent) :
        QAbstractScrollArea(parent),
        session_(session),
        viewport_(new Viewport(*this)),
@@ -149,12 +149,12 @@ View::View(SigSession &session, QWidget *parent) :
        header_->raise();
 }
 
-SigSession& View::session()
+Session& View::session()
 {
        return session_;
 }
 
-const SigSession& View::session() const
+const Session& View::session() const
 {
        return session_;
 }
index c6e585b7cbdd4cae86290b4e142395c908cb5fc9..e763da7e398a9b563b8fc5927088ad3ed391a2aa 100644 (file)
@@ -39,7 +39,7 @@
 
 namespace pv {
 
-class SigSession;
+class Session;
 
 namespace view {
 
@@ -69,10 +69,10 @@ public:
        static const QSizeF LabelPadding;
 
 public:
-       explicit View(SigSession &session, QWidget *parent = 0);
+       explicit View(Session &session, QWidget *parent = 0);
 
-       SigSession& session();
-       const SigSession& session() const;
+       Session& session();
+       const Session& session() const;
 
        /**
         * Returns the view of the owner.
@@ -236,7 +236,7 @@ private Q_SLOTS:
        void on_hover_point_changed();
 
 private:
-       SigSession &session_;
+       Session &session_;
 
        Viewport *viewport_;
        Ruler *ruler_;
index 1171a70730c8ed9490e5de549c19b46b250de8a0..07bfcad9c5263a49b2fa5d22e9992dbf0541add5 100644 (file)
@@ -27,7 +27,7 @@
 
 class QPainter;
 class QPaintEvent;
-class SigSession;
+class Session;
 
 namespace pv {
 namespace view {
index 09f047d5d07549ce4d4e928f74d4801af2509e34..baeec2d6d11b69f36713d996b9991d86fc3cde07 100644 (file)
@@ -49,7 +49,7 @@ BOOST_AUTO_TEST_CASE(TwoDecoderStack)
 
        {
                pv::DeviceManager dm(ctx);
-               pv::SigSession ss(dm);
+               pv::Session ss(dm);
 
                const GSList *l = srd_decoder_list();
                BOOST_REQUIRE(l);