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/include | |
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/include')
-rw-r--r-- | parameter/include/ParameterMgrPlatformConnector.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/parameter/include/ParameterMgrPlatformConnector.h b/parameter/include/ParameterMgrPlatformConnector.h index 50c1212..ee22b48 100644 --- a/parameter/include/ParameterMgrPlatformConnector.h +++ b/parameter/include/ParameterMgrPlatformConnector.h @@ -73,6 +73,7 @@ public: /** 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 fallbacks on virtual subsystem * @param[out] strError a string describing the error if the function failed, @@ -88,6 +89,23 @@ public: */ bool getFailureOnMissingSubsystem(); + /** Should start fail in failed settings load. + * + * Will fail if called on started instance. + * + * @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. + * @param[out] strResult a string containing the result of the command. + * + * @return false if unable to set, true otherwise. + */ + bool setFailureOnFailedSettingsLoad(bool bFail, std::string& strError); + /** Would start fail in case of failed settings load. + * + * @return failure on failed settings load policy state. + */ + bool getFailureOnFailedSettingsLoad(); + private: CParameterMgrPlatformConnector(const CParameterMgrPlatformConnector&); CParameterMgrPlatformConnector& operator=(const CParameterMgrPlatformConnector&); |