summaryrefslogtreecommitdiffstats
path: root/parameter/ParameterAccessContext.cpp
diff options
context:
space:
mode:
authorPatrick Benavoli <patrickx.benavoli@intel.com>2011-10-27 14:18:00 +0200
committerDavid Wagner <david.wagner@intel.com>2014-02-10 17:14:57 +0100
commit4bed9212041d94d52e55e624bd081fcbf01ee04e (patch)
tree038feec5bb0749ff31674eb7198dbdafe8cb1cf9 /parameter/ParameterAccessContext.cpp
parent63499d4763e42d76bfd39b79871f611381d2d164 (diff)
downloadexternal_parameter-framework-4bed9212041d94d52e55e624bd081fcbf01ee04e.zip
external_parameter-framework-4bed9212041d94d52e55e624bd081fcbf01ee04e.tar.gz
external_parameter-framework-4bed9212041d94d52e55e624bd081fcbf01ee04e.tar.bz2
PFW: Dynamic parameter access
BZ: 13272 Added dynamic parameter setting / getting interface for hosting platforms This new API allows: - getting any parameter - setting any parameter as long as it is rogue (attached to no domains) Passed parameter values are in the form of strings. Change-Id: I01a34597fcb4dafb225519cbc01dfffb22b5d52a Signed-off-by: Patrick Benavoli <patrickx.benavoli@intel.com> Reviewed-on: http://android.intel.com:8080/22629 Reviewed-by: Centelles, Sylvain <sylvain.centelles@intel.com> Tested-by: Barthes, FabienX <fabienx.barthes@intel.com> Reviewed-by: buildbot <buildbot@intel.com> Tested-by: buildbot <buildbot@intel.com> Reviewed-on: http://android.intel.com:8080/26781 Reviewed-by: Barthes, FabienX <fabienx.barthes@intel.com>
Diffstat (limited to 'parameter/ParameterAccessContext.cpp')
-rw-r--r--parameter/ParameterAccessContext.cpp17
1 files changed, 14 insertions, 3 deletions
diff --git a/parameter/ParameterAccessContext.cpp b/parameter/ParameterAccessContext.cpp
index e296d23..769565a 100644
--- a/parameter/ParameterAccessContext.cpp
+++ b/parameter/ParameterAccessContext.cpp
@@ -35,13 +35,13 @@
CParameterAccessContext::CParameterAccessContext(string& strError, CParameterBlackboard* pParameterBlackboard, bool bValueSpaceIsRaw, bool bOutputRawFormatIsHex) :
base(strError), _pParameterBlackboard(pParameterBlackboard),
_bValueSpaceIsRaw(bValueSpaceIsRaw), _bOutputRawFormatIsHex(bOutputRawFormatIsHex),
- _bBigEndianSubsystem(false), _bAutoSync(true)
+ _bBigEndianSubsystem(false), _bAutoSync(true), _bDynamicAccess(false)
{
}
CParameterAccessContext::CParameterAccessContext(string& strError) :
base(strError), _pParameterBlackboard(NULL), _bValueSpaceIsRaw(false),
- _bOutputRawFormatIsHex(false), _bBigEndianSubsystem(false), _bAutoSync(true)
+ _bOutputRawFormatIsHex(false), _bBigEndianSubsystem(false), _bAutoSync(true), _bDynamicAccess(false)
{
}
@@ -97,5 +97,16 @@ void CParameterAccessContext::setAutoSync(bool bAutoSync)
bool CParameterAccessContext::getAutoSync() const
{
- return _bAutoSync;
+ return _bAutoSync || _bDynamicAccess;
+}
+
+// Dynamic access
+void CParameterAccessContext::setDynamicAccess(bool bDynamicAccess)
+{
+ _bDynamicAccess = bDynamicAccess;
+}
+
+bool CParameterAccessContext::isDynamicAccess() const
+{
+ return _bDynamicAccess;
}