diff options
author | Frederic Boisnard <fredericx.boisnard@intel.com> | 2012-02-28 15:59:22 +0100 |
---|---|---|
committer | David Wagner <david.wagner@intel.com> | 2014-02-12 17:03:07 +0100 |
commit | 74edbc8e72f0fbca441fe7840ebeb090ef93a0e6 (patch) | |
tree | 2c67bee01932411e4f1a114bfaae50718e0c0528 /parameter | |
parent | 848488afb8b2f950c01eb35444f54d93e69db570 (diff) | |
download | external_parameter-framework-74edbc8e72f0fbca441fe7840ebeb090ef93a0e6.zip external_parameter-framework-74edbc8e72f0fbca441fe7840ebeb090ef93a0e6.tar.gz external_parameter-framework-74edbc8e72f0fbca441fe7840ebeb090ef93a0e6.tar.bz2 |
PFW: Add getConfigurableElement() to CSubsystemObject
BZ: 25743
CSubsystemObject manages an instance of CInstanceConfigurableElement through a
private member variable, preventing subclasses of CSubsystemObject from
accessing it. These subclasses should have access to this knowledge, e.g. when a
plugin needs to display specific debug information.
This patch adds a new protected method
CSubsystemObject::getConfigurableElement().
Change-Id: Ifba58e4ef41b53de828eb1a85b3a8e9a3e5bf40c
Reviewed-on: http://android.intel.com:8080/37731
Reviewed-by: Boisnard, FredericX <fredericx.boisnard@intel.com>
Reviewed-by: De Chivre, RenaudX <renaudx.de.chivre@intel.com>
Reviewed-by: M, Arulselvan <arulselvan.m@intel.com>
Tested-by: M, Arulselvan <arulselvan.m@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Diffstat (limited to 'parameter')
-rw-r--r-- | parameter/SubsystemObject.cpp | 6 | ||||
-rw-r--r-- | parameter/SubsystemObject.h | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/parameter/SubsystemObject.cpp b/parameter/SubsystemObject.cpp index 5d92127..1eaffba 100644 --- a/parameter/SubsystemObject.cpp +++ b/parameter/SubsystemObject.cpp @@ -212,3 +212,9 @@ string CSubsystemObject::formatMappingValue(const string& strMappingValue, uint3 } return strFormattedValue; } + +// Configurable element retrieval +const CInstanceConfigurableElement* CSubsystemObject::getConfigurableElement() const +{ + return _pInstanceConfigurableElement; +} diff --git a/parameter/SubsystemObject.h b/parameter/SubsystemObject.h index d08f3c4..e5767b6 100644 --- a/parameter/SubsystemObject.h +++ b/parameter/SubsystemObject.h @@ -66,6 +66,8 @@ protected: void log(const string& strMessage, ...) const; // Mapping formatting static string formatMappingValue(const string& strMappingValue, uint32_t uiFirstAmendKey, uint32_t uiNbAmendKeys, const CMappingContext& context); + // Configurable element retrieval + const CInstanceConfigurableElement* getConfigurableElement() const; private: // Instance element to sync from/to |