diff options
author | Brett Stottlemyer <bstottle@ford.com> | 2016-10-15 22:12:11 -0400 |
---|---|---|
committer | Brett Stottlemyer <bstottle@ford.com> | 2016-10-19 03:51:59 +0000 |
commit | 9c41edbf83af89f80417a2abd75454b92d6796bd (patch) | |
tree | 13ef5b7eb08333159cac958a748b6793d0ed1279 /src/remoteobjects/qremoteobjectnode_p.h | |
parent | b9af13650a3dca00833001e27d046022962ff655 (diff) |
Allow Replica property values to persist
Replicas already provide a mechanism to show a default value before the
connection to the Source is established. This enhancement allows the
.rep PROP definition to include a 'PERSISTED' flag as well, which saves
the property value when the Replica is stopped and restores the value
when it is started again.
Because a shared dll (QtRO) should not know or care where and how values
are persisted, a persistence class needs to be set for the owner Node
for this feature to work.
Change-Id: I5718b024fd268c95d1add2b1be49e6864127782e
Reviewed-by: Continuous Integration (KDAB) <build@kdab.com>
Reviewed-by: Michael Brasser <michael.brasser@live.com>
Diffstat (limited to 'src/remoteobjects/qremoteobjectnode_p.h')
-rw-r--r-- | src/remoteobjects/qremoteobjectnode_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/remoteobjects/qremoteobjectnode_p.h b/src/remoteobjects/qremoteobjectnode_p.h index f412378..b2ebe59 100644 --- a/src/remoteobjects/qremoteobjectnode_p.h +++ b/src/remoteobjects/qremoteobjectnode_p.h @@ -118,6 +118,8 @@ public: QRemoteObjectPackets::ObjectInfoList rxObjects; QVariantList rxArgs; QVariant rxValue; + QRemoteObjectPersistedStore *persistedStore; + QRemoteObjectNode::StorageOwnership persistedStoreOwnership; Q_DECLARE_PUBLIC(QRemoteObjectNode) }; |