X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;ds=sidebyside;f=pv%2Fdata%2Fanalog.hpp;h=6fd01e035208b0374bf44dfe59e7e1fc57646619;hb=bf9f12687c8d43422455cbdc27ec1cc5d4305149;hp=2fe588e4476572ae41a7e980de8b55a3022b0e1b;hpb=f3d66e52ed6b454ea7a0662d5e6367e230116a2b;p=pulseview.git
diff --git a/pv/data/analog.hpp b/pv/data/analog.hpp
index 2fe588e..6fd01e0 100644
--- a/pv/data/analog.hpp
+++ b/pv/data/analog.hpp
@@ -14,25 +14,28 @@
* 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_ANALOG_H
-#define PULSEVIEW_PV_DATA_ANALOG_H
+#ifndef PULSEVIEW_PV_DATA_ANALOG_HPP
+#define PULSEVIEW_PV_DATA_ANALOG_HPP
#include "signaldata.hpp"
#include
#include
+#include
+
namespace pv {
namespace data {
class AnalogSegment;
-class Analog : public SignalData
+class Analog : public QObject, public SignalData
{
+ Q_OBJECT
+
public:
Analog();
@@ -46,7 +49,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:
std::deque< std::shared_ptr > segments_;
@@ -55,4 +67,4 @@ private:
} // namespace data
} // namespace pv
-#endif // PULSEVIEW_PV_DATA_ANALOG_H
+#endif // PULSEVIEW_PV_DATA_ANALOG_HPP