summaryrefslogtreecommitdiffstats
path: root/parameter/include
diff options
context:
space:
mode:
authorDavid Wagner <david.wagner@intel.com>2015-01-16 16:59:06 +0100
committerDavid Wagner <david.wagner@intel.com>2015-01-28 20:02:52 +0100
commit962ff7b523d81249dfc1eb6870b7a6249893e2ea (patch)
treeded0b501ce65c97eefb195bf7b3d896d6f289367 /parameter/include
parente6711f76f6baaccf449e85b2105fc0e64b20ab9a (diff)
downloadexternal_parameter-framework-962ff7b523d81249dfc1eb6870b7a6249893e2ea.zip
external_parameter-framework-962ff7b523d81249dfc1eb6870b7a6249893e2ea.tar.gz
external_parameter-framework-962ff7b523d81249dfc1eb6870b7a6249893e2ea.tar.bz2
ParameterMgr: add a method to forcefully disable the remote interface
In some setup, users might not want to start the remote interface even if the toplevel configuration file allows it. The parameter-framework client can now override the remote interface starting policy. This was, until now, only dictated by the 'TuningAllowed' attribute in the toplevel configuration file and the presence of the libremote-processor library. This method is forwarded to the connectors and the bindings. Change-Id: Ib6dc272dfc7114125fdafd1a58642cde88847752 Signed-off-by: David Wagner <david.wagner@intel.com>
Diffstat (limited to 'parameter/include')
-rw-r--r--parameter/include/ParameterMgrFullConnector.h13
-rw-r--r--parameter/include/ParameterMgrPlatformConnector.h13
2 files changed, 26 insertions, 0 deletions
diff --git a/parameter/include/ParameterMgrFullConnector.h b/parameter/include/ParameterMgrFullConnector.h
index 63d3cf0..8ef7bb7 100644
--- a/parameter/include/ParameterMgrFullConnector.h
+++ b/parameter/include/ParameterMgrFullConnector.h
@@ -71,6 +71,19 @@ public:
const ISelectionCriterionTypeInterface* pSelectionCriterionType);
ISelectionCriterionInterface* getSelectionCriterion(const std::string& strName);
+ /** Is the remote interface forcefully disabled ?
+ */
+ bool getForceNoRemoteInterface() const;
+
+ /**
+ * Forcefully disable the remote interface or cancel this policy.
+ *
+ * Has no effect if called after calling start().
+ *
+ * @param[in] bForceNoRemoteInterface disable the remote interface if true.
+ */
+ void setForceNoRemoteInterface(bool bForceNoRemoteInterface);
+
void applyConfigurations();
/** Should start fail in case of missing subsystems.
diff --git a/parameter/include/ParameterMgrPlatformConnector.h b/parameter/include/ParameterMgrPlatformConnector.h
index d8ae433..cd99215 100644
--- a/parameter/include/ParameterMgrPlatformConnector.h
+++ b/parameter/include/ParameterMgrPlatformConnector.h
@@ -78,6 +78,19 @@ public:
// Must be cassed after successfull start
CParameterHandle* createParameterHandle(const std::string& strPath, std::string& strError) const;
+ /** Is the remote interface forcefully disabled ?
+ */
+ bool getForceNoRemoteInterface() const;
+
+ /**
+ * Forcefully disable the remote interface or cancel this policy.
+ *
+ * Has no effect if called after calling start().
+ *
+ * @param[in] bForceNoRemoteInterface disable the remote interface if true.
+ */
+ void setForceNoRemoteInterface(bool bForceNoRemoteInterface);
+
/** Should start fail in case of missing subsystems.
*
* Will fail if called on started instance.