summaryrefslogtreecommitdiffstats
path: root/parameter/ParameterMgrPlatformConnector.cpp
diff options
context:
space:
mode:
authorPatrick Benavoli <patrickx.benavoli@intel.com>2011-09-13 14:15:52 +0200
committerDavid Wagner <david.wagner@intel.com>2014-02-10 17:14:55 +0100
commitb71ccf75a1b2c718543783b277bb9c104c97e490 (patch)
treeacf3c45915424b371bd7ed692c896b695005e45c /parameter/ParameterMgrPlatformConnector.cpp
parenta364ba000fb5eafe901b0b5e11c2b0f39d60f1bd (diff)
downloadexternal_parameter-framework-b71ccf75a1b2c718543783b277bb9c104c97e490.zip
external_parameter-framework-b71ccf75a1b2c718543783b277bb9c104c97e490.tar.gz
external_parameter-framework-b71ccf75a1b2c718543783b277bb9c104c97e490.tar.bz2
parameter-framework: Changed criterion interface
BZ: 9561 - separated selection criterion change event indication form configuration application requests in different APIs - added a way to retrieve selection criterion from its name - updated version number 0.2.1 Change-Id: Icf4560fe67001655a171401f106296b9aa09afb3 Orig-Change-Id: I8dfb05ba1e704888c5c1ff9268a2a2e9a46af9bb Signed-off-by: Patrick Benavoli <patrickx.benavoli@intel.com> Reviewed-on: http://android.intel.com:8080/20208 Reviewed-by: Barthes, FabienX <fabienx.barthes@intel.com> Tested-by: Barthes, FabienX <fabienx.barthes@intel.com> Reviewed-by: buildbot <buildbot@intel.com> Tested-by: buildbot <buildbot@intel.com>
Diffstat (limited to 'parameter/ParameterMgrPlatformConnector.cpp')
-rw-r--r--parameter/ParameterMgrPlatformConnector.cpp23
1 files changed, 20 insertions, 3 deletions
diff --git a/parameter/ParameterMgrPlatformConnector.cpp b/parameter/ParameterMgrPlatformConnector.cpp
index 9da41dd..7f570c5 100644
--- a/parameter/ParameterMgrPlatformConnector.cpp
+++ b/parameter/ParameterMgrPlatformConnector.cpp
@@ -54,6 +54,7 @@ CParameterMgrPlatformConnector::~CParameterMgrPlatformConnector()
delete _pParameterMgrLogger;
}
+// Selection Criteria interface. Beware returned objects are lent, clients shall not delete them!
ISelectionCriterionTypeInterface* CParameterMgrPlatformConnector::createSelectionCriterionType(bool bIsInclusive)
{
assert(!_bStarted);
@@ -61,13 +62,27 @@ ISelectionCriterionTypeInterface* CParameterMgrPlatformConnector::createSelectio
return _pParameterMgr->createSelectionCriterionType(bIsInclusive);
}
-ISelectionCriterionInterface* CParameterMgrPlatformConnector::createSelectionCriterion(const std::string& strName, const ISelectionCriterionTypeInterface* pSelectionCriterionType)
+ISelectionCriterionInterface* CParameterMgrPlatformConnector::createSelectionCriterion(const string& strName, const ISelectionCriterionTypeInterface* pSelectionCriterionType)
{
assert(!_bStarted);
return _pParameterMgr->createSelectionCriterion(strName, static_cast<const CSelectionCriterionType*>(pSelectionCriterionType));
}
+// Selection criterion retrieval
+ISelectionCriterionInterface* CParameterMgrPlatformConnector::getSelectionCriterion(const string& strName)
+{
+ return _pParameterMgr->getSelectionCriterion(strName);
+}
+
+// Configuration application
+bool CParameterMgrPlatformConnector::applyConfigurations(string& strError)
+{
+ assert(_bStarted);
+
+ return _pParameterMgr->applyConfigurations(strError);
+}
+
// Logging
void CParameterMgrPlatformConnector::setLogger(CParameterMgrPlatformConnector::ILogger* pLogger)
{
@@ -75,7 +90,7 @@ void CParameterMgrPlatformConnector::setLogger(CParameterMgrPlatformConnector::I
}
// Start
-bool CParameterMgrPlatformConnector::start(std::string& strError)
+bool CParameterMgrPlatformConnector::start(string& strError)
{
// Create data structure
if (!_pParameterMgr->load(strError)) {
@@ -88,11 +103,13 @@ bool CParameterMgrPlatformConnector::start(std::string& strError)
return false;
}
+ _bStarted = true;
+
return true;
}
// Private logging
-void CParameterMgrPlatformConnector::doLog(const std::string& strLog)
+void CParameterMgrPlatformConnector::doLog(const string& strLog)
{
if (_pLogger) {