summaryrefslogtreecommitdiffstats
path: root/src/remoteobjects/qremoteobjectnode_p.h
diff options
context:
space:
mode:
authorBrett Stottlemyer <bstottle@ford.com>2016-10-15 22:12:11 -0400
committerBrett Stottlemyer <bstottle@ford.com>2016-10-19 03:51:59 +0000
commit9c41edbf83af89f80417a2abd75454b92d6796bd (patch)
tree13ef5b7eb08333159cac958a748b6793d0ed1279 /src/remoteobjects/qremoteobjectnode_p.h
parentb9af13650a3dca00833001e27d046022962ff655 (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.h2
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)
};