24 #ifndef PD_VECTORVARIANT_H 25 #define PD_VECTORVARIANT_H 27 #include <QtPdCom1/Process.h> 34 #if QT_VERSION < 0x050000 35 #define Q_NULLPTR NULL 51 Q_PROPERTY(QString path READ getPath WRITE setPath NOTIFY pathChanged)
59 Q_PROPERTY(QVariant connection READ getConnection WRITE setConnection
60 NOTIFY connectionUpdated)
64 Q_PROPERTY(
bool connected READ getDataPresent NOTIFY dataPresentChanged)
68 Q_PROPERTY(QVariant value READ getValue WRITE setValue
73 Q_PROPERTY(QString text READ getValueAsString WRITE setValueAsString
78 Q_PROPERTY(QVariant mtime READ getMTimeToDouble
86 bool hasVariable() const;
89 QVariant getValue() const;
90 Q_INVOKABLE
void setValue(const QVariant &);
91 QString getValueAsString() const;
92 Q_INVOKABLE
void setValueAsString(const QString &);
93 bool getDataPresent();
95 std::chrono::nanoseconds getMTime() const;
96 double getMTimeToDouble() const;
99 void setPath(QString &);
100 QVariant getConnection();
101 void setConnection(QVariant);
102 void updateConnection();
103 void setProcess(QtPdCom::Process *);
106 void processConnected();
107 void processDisconnected();
113 void valueUpdated(std::chrono::nanoseconds mtime);
119 void pathChanged(QString &);
120 void connectionUpdated();
121 void dataPresentChanged(
bool);
124 class Q_DECL_HIDDEN Impl;
125 QtPdCom::Process *process;
126 std::unique_ptr<Impl> impl;
#define Q_NULLPTR
Definition: VectorVariant.h:35