X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fdata%2Flogic.hpp;h=e7f7a055da3db150f12f8365edf16af3b7aec59c;hb=8b2eb22ed4f467f5364e8e9824a12137e2433b7e;hp=990ad3ff9b0c3cf70c640283c2a2a319bad84941;hpb=9aa2602a054146d1be4fe833a6d7135d7f307a27;p=pulseview.git diff --git a/pv/data/logic.hpp b/pv/data/logic.hpp index 990ad3f..e7f7a05 100644 --- a/pv/data/logic.hpp +++ b/pv/data/logic.hpp @@ -14,8 +14,7 @@ * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * along with this program; if not, see . */ #ifndef PULSEVIEW_PV_DATA_LOGIC_HPP @@ -25,13 +24,17 @@ #include +#include + namespace pv { namespace data { class LogicSegment; -class Logic : public SignalData +class Logic : public QObject, public SignalData { + Q_OBJECT + public: Logic(unsigned int num_channels); @@ -47,7 +50,16 @@ public: void clear(); - uint64_t get_max_sample_count() const; + uint64_t max_sample_count() const; + + void notify_samples_added(QObject* segment, uint64_t start_sample, + uint64_t end_sample); + +Q_SIGNALS: + void samples_cleared(); + + void samples_added(QObject* segment, uint64_t start_sample, + uint64_t end_sample); private: const unsigned int num_channels_;