QRemoteObjectAbstractPersistedStore Class

A class which provides the methods for setting PROP values of a replica to value they had the last time the replica was used. More...

Header: #include <QRemoteObjectAbstractPersistedStore>
qmake: QT += remoteobjects

Public Functions

QRemoteObjectAbstractPersistedStore(QObject *parent = nullptr)
virtual ~QRemoteObjectAbstractPersistedStore()
virtual QVariantList restoreProperties(const QString &repName, const QByteArray &repSig) = 0
virtual void saveProperties(const QString &repName, const QByteArray &repSig, const QVariantList &values) = 0

Protected Functions

QRemoteObjectAbstractPersistedStore(QRemoteObjectAbstractPersistedStorePrivate &, QObject *parent)

Detailed Description

A class which provides the methods for setting PROP values of a replica to value they had the last time the replica was used.

This can be used to provide a "reasonable" value to be displayed until the connection to the source is established and current values are available.

This class must be overridden to provide an implementation for saving (QRemoteObjectAbstractPersistedStore::saveProperties) and restoring (QRemoteObjectAbstractPersistedStore::restoreProperties) PROP values. The derived type can then be set for a node, and any replica acquired from that node will then automatically store PERSISTED properties when the replica destructor is called, and retrieve the values when the replica is instantiated.

Member Function Documentation

QRemoteObjectAbstractPersistedStore::QRemoteObjectAbstractPersistedStore(QObject *parent = nullptr)

Constructs a QRemoteObjectAbstractPersistedStore with the given parent. The default value of parent is nullptr.

[protected] QRemoteObjectAbstractPersistedStore::QRemoteObjectAbstractPersistedStore(QRemoteObjectAbstractPersistedStorePrivate &, QObject *parent)

Default constructs an instance of QRemoteObjectAbstractPersistedStore.

[virtual] QRemoteObjectAbstractPersistedStore::~QRemoteObjectAbstractPersistedStore()

Destroys the instance of QRemoteObjectAbstractPersistedStore. The destructor is virtual.

[pure virtual] QVariantList QRemoteObjectAbstractPersistedStore::restoreProperties(const QString &repName, const QByteArray &repSig)

[pure virtual] void QRemoteObjectAbstractPersistedStore::saveProperties(const QString &repName, const QByteArray &repSig, const QVariantList &values)