diff options
author | Patrick Benavoli <patrickx.benavoli@intel.com> | 2011-09-13 14:15:52 +0200 |
---|---|---|
committer | David Wagner <david.wagner@intel.com> | 2014-02-10 17:14:55 +0100 |
commit | b71ccf75a1b2c718543783b277bb9c104c97e490 (patch) | |
tree | acf3c45915424b371bd7ed692c896b695005e45c /parameter/SelectionCriteriaDefinition.cpp | |
parent | a364ba000fb5eafe901b0b5e11c2b0f39d60f1bd (diff) | |
download | external_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/SelectionCriteriaDefinition.cpp')
-rw-r--r-- | parameter/SelectionCriteriaDefinition.cpp | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/parameter/SelectionCriteriaDefinition.cpp b/parameter/SelectionCriteriaDefinition.cpp index e23f326..5a9855a 100644 --- a/parameter/SelectionCriteriaDefinition.cpp +++ b/parameter/SelectionCriteriaDefinition.cpp @@ -56,19 +56,9 @@ const CSelectionCriterion* CSelectionCriteriaDefinition::getSelectionCriterion(c return static_cast<const CSelectionCriterion*>(findChild(strName)); } -// Subscription -void CSelectionCriteriaDefinition::setObserver(ISelectionCriterionObserver* pSelectionCriterionObserver) +CSelectionCriterion* CSelectionCriteriaDefinition::getSelectionCriterion(const string& strName) { - // Propagate - uint32_t uiNbChildren = getNbChildren(); - uint32_t uiChild; - - for (uiChild = 0; uiChild < uiNbChildren; uiChild++) { - - CSelectionCriterion* pSelectionCriterion = static_cast<CSelectionCriterion*>(getChild(uiChild)); - - pSelectionCriterion->setObserver(pSelectionCriterionObserver); - } + return static_cast<CSelectionCriterion*>(findChild(strName)); } // List available criteria |