From 326a31df0dd401283de6170ed09bcf605f61ef7d Mon Sep 17 00:00:00 2001 From: Georges-Henri Baron Date: Thu, 28 Jun 2012 12:05:09 +0200 Subject: PFW: Add two commands to print xml settings and structure BZ: 44910 Creates two commands that can be called through the command line of the parameter-framework. First command getDomainXML returns a string containing the xml structure of the domains, configurations and settings. Second command getSystemClassXML returns a string containing the xml structure of all the instantiated parameter with their attributes. Change-Id: I9a35333802049a2177b8fc416754fdb67e6efff0 Signed-off-by: Georges-Henri Baron Reviewed-on: http://android.intel.com:8080/55155 Reviewed-by: Rocard, KevinX Reviewed-by: Centelles, Sylvain Tested-by: Mendi, EduardoX Reviewed-by: buildbot Tested-by: buildbot --- parameter/ParameterMgr.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'parameter/ParameterMgr.h') diff --git a/parameter/ParameterMgr.h b/parameter/ParameterMgr.h index 59b4ab3..78db932 100644 --- a/parameter/ParameterMgr.h +++ b/parameter/ParameterMgr.h @@ -32,6 +32,8 @@ #include "Element.h" #include #include +#include "XmlDocSink.h" +#include "XmlDocSource.h" class CElementLibrarySet; @@ -159,6 +161,10 @@ public: bool importDomainsBinary(const string& strFileName, string& strError); bool exportDomainsBinary(const string& strFileName, string& strError); + // GUI command XML send + bool getDomainsXMLString(string& strResult, bool bWithSettings); + bool getSystemClassXMLString(string& strResult); + // Introspect void logStructureContent(string& strContent) const; @@ -242,6 +248,9 @@ private: CCommandHandler::CommandStatus importConfigurableDomainsWithSettingsFromXMLCommmandProcess(const IRemoteCommand& remoteCommand, string& strResult); CCommandHandler::CommandStatus exportSettingsCommmandProcess(const IRemoteCommand& remoteCommand, string& strResult); CCommandHandler::CommandStatus importSettingsCommmandProcess(const IRemoteCommand& remoteCommand, string& strResult); + /// GUI commands + CCommandHandler::CommandStatus getSystemClassXMLCommmandProcess(const IRemoteCommand& remoteCommand, string& strResult); + CCommandHandler::CommandStatus getDomainsXMLCommmandProcess(const IRemoteCommand& remoteCommand, string& strResult); // Max command usage length, use for formatting void setMaxCommandUsageLength(); -- cgit v1.1