X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fdata%2Fsignalbase.hpp;h=90a13555fb41938db36eb6063aef096bc6da20ef;hb=bcaf033478ecf9a482f53b3dc973b7d2b9c4c52b;hp=381716480371f6c5494a618e53aca196c7160787;hpb=5d9fe823db16bc4a537e600451876a735d20a98d;p=pulseview.git diff --git a/pv/data/signalbase.hpp b/pv/data/signalbase.hpp index 3817164..90a1355 100644 --- a/pv/data/signalbase.hpp +++ b/pv/data/signalbase.hpp @@ -65,6 +65,7 @@ public: private: static const int ColourBGAlpha; + static const uint64_t ConversionBlockSize; public: SignalBase(shared_ptr channel, ChannelType channel_type); @@ -149,15 +150,11 @@ public: #ifdef ENABLE_DECODE bool is_decode_signal() const; - - shared_ptr decoder_stack() const; - - void set_decoder_stack(shared_ptr decoder_stack); #endif - void save_settings(QSettings &settings) const; + virtual void save_settings(QSettings &settings) const; - void restore_settings(QSettings &settings); + virtual void restore_settings(QSettings &settings); private: uint8_t convert_a2l_threshold(float threshold, float value); @@ -176,6 +173,11 @@ Q_SIGNALS: void conversion_type_changed(const ConversionType t); + void samples_cleared(); + + void samples_added(QObject* segment, uint64_t start_sample, + uint64_t end_sample); + private Q_SLOTS: void on_samples_cleared(); @@ -184,17 +186,13 @@ private Q_SLOTS: void on_capture_state_changed(int state); -private: +protected: shared_ptr channel_; ChannelType channel_type_; shared_ptr data_; shared_ptr converted_data_; int conversion_type_; -#ifdef ENABLE_DECODE - shared_ptr decoder_stack_; -#endif - std::thread conversion_thread_; QString internal_name_, name_;