diff options
author | Patrick Benavoli <patrickx.benavoli@intel.com> | 2011-10-24 18:50:03 +0200 |
---|---|---|
committer | David Wagner <david.wagner@intel.com> | 2014-02-10 17:14:57 +0100 |
commit | 63499d4763e42d76bfd39b79871f611381d2d164 (patch) | |
tree | 3f16d13707ec60a8ff2bb320ffce0a0e0cc6d91e /parameter/ConfigurableDomains.h | |
parent | cfb64dd41410d363fe2e24faf6cd33c9e846b401 (diff) | |
download | external_parameter-framework-63499d4763e42d76bfd39b79871f611381d2d164.zip external_parameter-framework-63499d4763e42d76bfd39b79871f611381d2d164.tar.gz external_parameter-framework-63499d4763e42d76bfd39b79871f611381d2d164.tar.bz2 |
parameter-framework: Sequence
BZ: 13152
- Introduced sequence notion in configurations:
Sequences are configuration specific and are controlled from the Settings
related XML files (order of settings appearance) as well as from the tuning
interface (new commands available to set and get the sequence
(setElementSequence / getElementSequence).
Notes:
- sequences will only matter for domains which new "SequenceAware"
attribute is set to true (false by default). This attribute is also
controlable through the tuning interface (setSequenceAware / getSequenceAware
commands).
- sequence unaware domain configurations will be applied before
sequence aware ones.
To allow for such functionality, the XML for settings format had to be
reworked, leading to an unfortunate compatibility break. However, one benefit
is that now a clear Settings section appears at the bottom of the domain
description, which is easier to maintain than the previous structure where the
settings appeared as sub-nodes of associated elements.
Change-Id: Ic93552fd510ed8847f9c8e7d9d6164f7ea3c8c45
Signed-off-by: Patrick Benavoli <patrickx.benavoli@intel.com>
Reviewed-on: http://android.intel.com:8080/22558
Reviewed-by: Centelles, Sylvain <sylvain.centelles@intel.com>
Tested-by: Barthes, FabienX <fabienx.barthes@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Reviewed-on: http://android.intel.com:8080/26780
Reviewed-by: Barthes, FabienX <fabienx.barthes@intel.com>
Diffstat (limited to 'parameter/ConfigurableDomains.h')
-rw-r--r-- | parameter/ConfigurableDomains.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/parameter/ConfigurableDomains.h b/parameter/ConfigurableDomains.h index 134667f..4c6192f 100644 --- a/parameter/ConfigurableDomains.h +++ b/parameter/ConfigurableDomains.h @@ -47,10 +47,13 @@ public: bool createDomain(const string& strName, string& strError); bool deleteDomain(const string& strName, string& strError); bool renameDomain(const string& strName, const string& strNewName, string& strError); + bool setSequenceAwareness(const string& strDomain, bool bSequenceAware, string& strError); + bool getSequenceAwareness(const string& strDomain, bool& bSequenceAware, string& strError) const; bool listDomainElements(const string& strDomain, string& strResult) const; bool split(const string& strDomain, CConfigurableElement* pConfigurableElement, string& strError); void listAssociatedElements(string& strResult) const; void listConflictingElements(string& strResult) const; + void listDomains(string& strResult) const; /// Configurations bool listConfigurations(const string& strDomain, string& strResult) const; bool createConfiguration(const string& strDomain, const string& strConfiguration, const CParameterBlackboard* pMainBlackboard, string& strError); @@ -58,6 +61,8 @@ public: bool renameConfiguration(const string& strDomain, const string& strConfigurationName, const string& strNewConfigurationName, string& strError); bool restoreConfiguration(const string& strDomain, const string& strConfiguration, CParameterBlackboard* pMainBlackboard, bool bAutoSync, string& strError); bool saveConfiguration(const string& strDomain, const string& strConfiguration, const CParameterBlackboard* pMainBlackboard, string& strError); + bool setElementSequence(const string& strDomain, const string& strConfiguration, const vector<string>& astrNewElementSequence, string& strError); + bool getElementSequence(const string& strDomain, const string& strConfiguration, string& strResult) const; // Last applied configurations void listLastAppliedConfigurations(string& strResult) const; @@ -76,7 +81,7 @@ public: void validate(const CParameterBlackboard* pMainBlackboard); // Configuration application if required - bool apply(CParameterBlackboard* pParameterBlackboard, bool bForce, string& strError); + bool apply(CParameterBlackboard* pParameterBlackboard, bool bForce, string& strError) const; // Class kind virtual string getKind() const; |