25#ifndef PD_PdVariable_H
26#define PD_PdVariable_H
48 QML_ADDED_IN_VERSION(1, 4)
70 setConnection NOTIFY connectionChanged)
75 bool connected READ getDataPresent NOTIFY dataPresentChanged)
79 Q_PROPERTY(QVariant value READ getValue WRITE setValue NOTIFY
84 Q_PROPERTY(QString text READ getValueAsString WRITE setValueAsString
89 Q_PROPERTY(QVariant mtime READ getMTimeToDouble NOTIFY valueUpdated)
96 bool hasVariable()
const;
99 QVariant getValue()
const;
100 Q_INVOKABLE
void setValue(QVariant);
101 QString getValueAsString()
const;
102 Q_INVOKABLE
void setValueAsString(QString);
103 bool getDataPresent();
105 std::chrono::nanoseconds getMTime()
const;
106 double getMTimeToDouble()
const;
110 void updateConnection();
112 Q_INVOKABLE
void inc();
Definition: PdConnection.h:38
Definition: PdVariable.cpp:262
Scalar/Vector/Matrix Variant to be used in QML applications.
Definition: PdVariable.h:45
void valueChanged()
Emitted, when the value changes, or the variable is disconnected.
void pathChanged(QString)
void dataPresentChanged(bool)
std::unique_ptr< Impl > impl
Definition: PdVariable.h:129
void valueUpdated(std::chrono::nanoseconds mtime)
Emitted also when value does not change but got an update from the msr process.
Definition: BroadcastModel.h:32