class DecoderStack;
class Logic;
class LogicSegment;
+class Segment;
class SignalData;
class SignalBase : public QObject
*/
void set_data(shared_ptr<pv::data::SignalData> data);
+ /**
+ * Clears all sample data and removes all associated segments.
+ */
+ void clear_sample_data();
+
/**
* Get the internal data as analog data object in case of analog type.
*/
*/
bool has_samples() const;
+ /**
+ * Returns the sample rate for this signal.
+ */
+ virtual double get_samplerate() const;
+
/**
* Queries the kind of conversion performed on this channel.
*/
private Q_SLOTS:
void on_samples_cleared();
- void on_samples_added(QObject* segment, uint64_t start_sample,
+ void on_samples_added(shared_ptr<Segment> segment, uint64_t start_sample,
uint64_t end_sample);
void on_min_max_changed(float min, float max);