diff options
author | Kevin Rocard <kevinx.rocard@intel.com> | 2013-07-18 09:13:51 +0200 |
---|---|---|
committer | David Wagner <david.wagner@intel.com> | 2014-02-12 17:04:08 +0100 |
commit | d6909ebe19bf6e2817dadea32e06dda9d22bf073 (patch) | |
tree | a07834b6847662ab2f5e74c0d741de23a946516b /parameter/ParameterMgr.h | |
parent | 325bf97a49f9d1225a7815de8bd9c16b556d5070 (diff) | |
download | external_parameter-framework-d6909ebe19bf6e2817dadea32e06dda9d22bf073.zip external_parameter-framework-d6909ebe19bf6e2817dadea32e06dda9d22bf073.tar.gz external_parameter-framework-d6909ebe19bf6e2817dadea32e06dda9d22bf073.tar.bz2 |
Add an option to continue on failed setting load
BZ: 122982
When the PFW starts it loads the configurable domains, if the load
fails, it used to abort the parameterMgr global load.
Add an option to continue on failed setting load, as if there were none.
Change-Id: Ifd3cd859ad0eaef266be4c9245ebd28c9e9c0a74
Signed-off-by: Kevin Rocard <kevinx.rocard@intel.com>
Reviewed-on: http://android.intel.com:8080/119924
Reviewed-by: Centelles, Sylvain <sylvain.centelles@intel.com>
Tested-by: Barthes, FabienX <fabienx.barthes@intel.com>
Reviewed-by: cactus <cactus@intel.com>
Tested-by: cactus <cactus@intel.com>
Diffstat (limited to 'parameter/ParameterMgr.h')
-rw-r--r-- | parameter/ParameterMgr.h | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/parameter/ParameterMgr.h b/parameter/ParameterMgr.h index 9145c4e..1f738fe 100644 --- a/parameter/ParameterMgr.h +++ b/parameter/ParameterMgr.h @@ -138,10 +138,9 @@ public: CParameterHandle* createParameterHandle(const string& strPath, string& strError); /** Should start fail in case of missing subsystems. - * Will fail if called on started instance. * - * @param[in] bFail: If set to true, parameterMgr start will fail on missing subsystems - * If set to false, missing subsystems will fallback on virtual subsystem + * @param[in] bFail: If set to true, parameterMgr start will fail on missing subsystems. + * If set to false, missing subsystems will fallback on virtual subsystem. */ void setFailureOnMissingSubsystem(bool bFail); @@ -151,6 +150,18 @@ public: */ bool getFailureOnMissingSubsystem() const; + /** Should start fail in failed settings load. + * + * @param[in] bFail: If set to true, parameterMgr start will fail on failed settings load. + * If set to false, failed settings load will be ignored. + */ + void setFailureOnFailedSettingsLoad(bool bFail); + /** Would start fail in case of failed settings load. + * + * @return failure on failed settings load policy state. + */ + bool getFailureOnFailedSettingsLoad(); + //////////// Tuning ///////////// // Tuning mode bool setTuningMode(bool bOn, string& strError); @@ -395,6 +406,7 @@ private: // System class Structure loading bool loadSettings(string& strError); + bool loadSettingsFromConfigFile(string& strError); // Parse XML file into Root element bool xmlParse(CXmlElementSerializingContext& elementSerializingContext, CElement* pRootElement, const string& strXmlFilePath, const string& strXmlFolder, ElementLibrary eElementLibrary, const string& strNameAttrituteName = "Name"); @@ -483,5 +495,10 @@ private: * If set to false, missing subsystem will fallback on virtual subsystem. */ bool _bFailOnMissingSubsystem; + /** If set to true, unparsable or discording domains will abort parameterMgr start. + * If set to false, unparsable or discording domains + * will continue the parameterMgr start with no domains. + */ + bool _bFailOnFailedSettingsLoad; }; |