25#ifndef PD_PdVariable_H
26#define PD_PdVariable_H
48 QML_ADDED_IN_VERSION(1, 4)
100 Q_INVOKABLE
void setValue(QVariant);
105 std::chrono::nanoseconds
getMTime() const;
112 Q_INVOKABLE
void inc();
128 class Q_DECL_HIDDEN
Impl;
PdVariable(QObject *=Q_NULLPTR)
Constructor.
Definition PdVariable.cpp:501
Definition PdConnection.h:38
Definition PdVariable.cpp:262
QString getValueAsString() const
Definition PdVariable.cpp:690
void valueChanged()
Emitted, when the value changes, or the variable is disconnected.
void clearData()
Definition PdVariable.cpp:620
QVariant mtime
Last modification time of the process variable.
Definition PdVariable.h:85
bool hasVariable() const
Connected state.
Definition PdVariable.cpp:612
QtPdCom::PdConnection connection
Connection property which describes the variable to connect to.
Definition PdVariable.h:69
void clearVariable()
Unsubscribe from a Variable.
Definition PdVariable.cpp:597
void pathChanged(QString)
void updateConnection()
(re)connects to variable
Definition PdVariable.cpp:519
std::chrono::nanoseconds getMTime() const
Definition PdVariable.cpp:752
PdVariable(QObject *=Q_NULLPTR)
Constructor.
Definition PdVariable.cpp:501
void dataPresentChanged(bool)
Q_INVOKABLE void inc()
Increments the current value and writes it to the process.
Definition PdVariable.cpp:680
void setConnection(PdConnection const &)
Definition PdVariable.cpp:587
QVariant value
Process value.
Definition PdVariable.h:77
QVariant getValue() const
Definition PdVariable.cpp:635
bool getDataPresent()
Definition PdVariable.cpp:766
std::unique_ptr< Impl > impl
Definition PdVariable.h:125
Q_INVOKABLE void setValueAsString(QString)
Definition PdVariable.cpp:713
Q_INVOKABLE void setValue(QVariant)
Definition PdVariable.cpp:645
PdConnection getConnection()
Definition PdVariable.cpp:580
QString text
Interpret the elements of an process variable array as string.
Definition PdVariable.h:81
bool connected
Indicates that the process is connected and data is transfered.
Definition PdVariable.h:73
void valueUpdated(std::chrono::nanoseconds mtime)
Emitted also when value does not change but got an update from the msr process.
double getMTimeToDouble() const
Definition PdVariable.cpp:759
Definition BroadcastModel.h:32