+ void samples_cleared();
+
+ void samples_added(QObject* segment, uint64_t start_sample,
+ uint64_t end_sample);
+
+private Q_SLOTS:
+ void on_samples_cleared();
+
+ void on_samples_added(QObject* segment, uint64_t start_sample,
+ uint64_t end_sample);
+
+ void on_capture_state_changed(int state);
+
+protected:
+ shared_ptr<sigrok::Channel> channel_;
+ ChannelType channel_type_;
+ shared_ptr<pv::data::SignalData> data_;
+ shared_ptr<pv::data::SignalData> converted_data_;
+ int conversion_type_;
+
+ std::thread conversion_thread_;
+ atomic<bool> conversion_interrupt_;
+ mutex conversion_input_mutex_;
+ condition_variable conversion_input_cond_;