WimaDataContainer.h 586 Bytes
Newer Older
1
#pragma once
2 3 4

#include <QObject>

5
#include "WimaPlanData.h"
6 7 8 9 10

class WimaDataContainer : public QObject
{
    Q_OBJECT
public:
11
    WimaDataContainer(QObject *parent = nullptr);
12 13
    WimaDataContainer(WimaDataContainer &other, QObject *parent = nullptr) = delete;
    WimaDataContainer(WimaDataContainer &other) = delete;
14

15
    Q_INVOKABLE WimaDataContainer* pointerToThis() {return this;}  
16 17

signals:
18
    void newDataAvailable(void);
19 20

public slots:
21 22
    void                push(const WimaPlanData &planData);
    const WimaPlanData &pull() const;
23
private:
24 25


26
    WimaPlanData _planData;
27 28
};