From d39b189e045353199ad852aaf2816c93864c7e88 Mon Sep 17 00:00:00 2001 From: David Wagner Date: Tue, 6 Jan 2015 14:52:49 +0100 Subject: ParameterMgr: Add more tuning methods to the C++ public API These methods are: - renameDomain - setSequenceAwareness - getSequenceAwareness - renameConfiguration - setElementSequence - setApplicationRule - getApplicationRule - clearApplicationRule The "remote tuning" methods are also modified to use them instead of directly accessing inner objects and the tuning mode checking is moved to the public C++ method when applicable. Change-Id: I9cdd0abbacb76232cd746878dca9ab619e8b6b58 Signed-off-by: David Wagner --- parameter/ParameterMgr.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'parameter/ParameterMgr.h') diff --git a/parameter/ParameterMgr.h b/parameter/ParameterMgr.h index 7962294..fcba462 100644 --- a/parameter/ParameterMgr.h +++ b/parameter/ParameterMgr.h @@ -221,10 +221,17 @@ public: ////////// Configuration/Domains handling ////////////// // Creation/Deletion bool createDomain(const std::string& strName, std::string& strError); + bool renameDomain(const std::string& strName, const std::string& strNewName, + std::string& strError); bool deleteDomain(const std::string& strName, std::string& strError); bool deleteAllDomains(std::string& strError); + bool setSequenceAwareness(const std::string& strName, bool bSequenceAware, + std::string& strResult); + bool getSequenceAwareness(const std::string& strName, bool& bSequenceAware, + std::string& strResult); bool createConfiguration(const std::string& strDomain, const std::string& strConfiguration, std::string& strError); bool deleteConfiguration(const std::string& strDomain, const std::string& strConfiguration, std::string& strError); + bool renameConfiguration(const std::string& strDomain, const std::string& strConfiguration, const std::string& strNewConfiguration, std::string& strError); // Save/Restore bool restoreConfiguration(const std::string& strDomain, const std::string& strConfiguration, std::list& strError); @@ -234,6 +241,16 @@ public: bool addConfigurableElementToDomain(const std::string& strDomain, const std::string& strConfigurableElementPath, std::string& strError); bool removeConfigurableElementFromDomain(const std::string& strDomain, const std::string& strConfigurableElementPath, std::string& strError); bool split(const std::string& strDomain, const std::string& strConfigurableElementPath, std::string& strError); + bool setElementSequence(const std::string& strDomain, const std::string& strConfiguration, + const std::vector& astrNewElementSequence, + std::string& strError); + + bool getApplicationRule(const std::string& strDomain, const std::string& strConfiguration, + std::string& strResult); + bool setApplicationRule(const std::string& strDomain, const std::string& strConfiguration, + const std::string& strApplicationRule, std::string& strError); + bool clearApplicationRule(const std::string& strDomain, const std::string& strConfiguration, + std::string& strError); /** * Method that imports Configurable Domains from an Xml source. -- cgit v1.1