PdQmlWidgets  2.0.0
Signals | Public Member Functions | Properties | List of all members
PdQmlWidgets::VectorVariant Class Reference

Vector Variant to be used in QML applications. More...

#include <VectorVariant.h>

Inheritance diagram for PdQmlWidgets::VectorVariant:
Inheritance graph
[legend]
Collaboration diagram for PdQmlWidgets::VectorVariant:
Collaboration graph
[legend]

Signals

void valueChanged ()
 Emitted, when the value changes, or the variable is disconnected. More...
 
void valueUpdated (std::chrono::nanoseconds mtime)
 Emitted also when value does not change but got an update from the msr process. More...
 
void pathChanged (QString &)
 
void connectionUpdated ()
 
void dataPresentChanged (bool)
 

Public Member Functions

 VectorVariant (QObject *=Q_NULLPTR)
 
 ~VectorVariant ()
 
void clearVariable ()
 
bool hasVariable () const
 
void clearData ()
 
QVariant getValue () const
 
Q_INVOKABLE void setValue (const QVariant &)
 
QString getValueAsString () const
 
Q_INVOKABLE void setValueAsString (const QString &)
 
bool getDataPresent ()
 
std::chrono::nanoseconds getMTime () const
 
double getMTimeToDouble () const
 
QString getPath ()
 
void setPath (QString &)
 
QVariant getConnection ()
 
void setConnection (QVariant)
 
void updateConnection ()
 (re)connects to variable More...
 
void setProcess (QtPdCom::Process *)
 

Properties

QString path
 Assign path: this selects the default process and event transmission. More...
 
QVariant connection
 if one wants to update the variable connection values in one call supply a map with {"path":path, "period":sampleTime .... More...
 
bool connected
 Indicates that the process is connected and data is transfered. More...
 
QVariant value
 Process value. More...
 
QString text
 Interpret the elements of an process variable array as string. More...
 
QVariant mtime
 last modification time of process variable More...
 

Detailed Description

Vector Variant to be used in QML applications.

Constructor & Destructor Documentation

◆ VectorVariant()

PdQmlWidgets::VectorVariant::VectorVariant ( QObject *  = Q_NULLPTR)

◆ ~VectorVariant()

PdQmlWidgets::VectorVariant::~VectorVariant ( )

Member Function Documentation

◆ clearData()

void PdQmlWidgets::VectorVariant::clearData ( )

◆ clearVariable()

void PdQmlWidgets::VectorVariant::clearVariable ( )

◆ connectionUpdated

void PdQmlWidgets::VectorVariant::connectionUpdated ( )
signal

◆ dataPresentChanged

void PdQmlWidgets::VectorVariant::dataPresentChanged ( bool  )
signal

◆ getConnection()

QVariant PdQmlWidgets::VectorVariant::getConnection ( )

◆ getDataPresent()

bool PdQmlWidgets::VectorVariant::getDataPresent ( )

◆ getMTime()

std::chrono::nanoseconds PdQmlWidgets::VectorVariant::getMTime ( ) const

◆ getMTimeToDouble()

double PdQmlWidgets::VectorVariant::getMTimeToDouble ( ) const

◆ getPath()

QString PdQmlWidgets::VectorVariant::getPath ( )

◆ getValue()

QVariant PdQmlWidgets::VectorVariant::getValue ( ) const

◆ getValueAsString()

QString PdQmlWidgets::VectorVariant::getValueAsString ( ) const

◆ hasVariable()

bool PdQmlWidgets::VectorVariant::hasVariable ( ) const

◆ pathChanged

void PdQmlWidgets::VectorVariant::pathChanged ( QString &  )
signal

◆ setConnection()

void PdQmlWidgets::VectorVariant::setConnection ( QVariant  )

◆ setPath()

void PdQmlWidgets::VectorVariant::setPath ( QString &  )

◆ setProcess()

void PdQmlWidgets::VectorVariant::setProcess ( QtPdCom::Process *  )

◆ setValue()

Q_INVOKABLE void PdQmlWidgets::VectorVariant::setValue ( const QVariant &  )

◆ setValueAsString()

Q_INVOKABLE void PdQmlWidgets::VectorVariant::setValueAsString ( const QString &  )

◆ updateConnection()

void PdQmlWidgets::VectorVariant::updateConnection ( )

(re)connects to variable

◆ valueChanged

void PdQmlWidgets::VectorVariant::valueChanged ( )
signal

Emitted, when the value changes, or the variable is disconnected.

◆ valueUpdated

void PdQmlWidgets::VectorVariant::valueUpdated ( std::chrono::nanoseconds  mtime)
signal

Emitted also when value does not change but got an update from the msr process.

Property Documentation

◆ connected

bool PdQmlWidgets::VectorVariant::connected
read

Indicates that the process is connected and data is transfered.

◆ connection

QVariant PdQmlWidgets::VectorVariant::connection
readwrite

if one wants to update the variable connection values in one call supply a map with {"path":path, "period":sampleTime ....

}

◆ mtime

QVariant PdQmlWidgets::VectorVariant::mtime
read

last modification time of process variable

◆ path

QString PdQmlWidgets::VectorVariant::path
readwrite

Assign path: this selects the default process and event transmission.

◆ text

QString PdQmlWidgets::VectorVariant::text
readwrite

Interpret the elements of an process variable array as string.

◆ value

QVariant PdQmlWidgets::VectorVariant::value
readwrite

Process value.


The documentation for this class was generated from the following file: