summaryrefslogtreecommitdiffstats
path: root/parameter/ParameterMgr.h
diff options
context:
space:
mode:
authorGeorges-Henri Baron <georges-henrix.baron@intel.com>2012-06-28 12:05:09 +0200
committerDavid Wagner <david.wagner@intel.com>2014-02-12 17:03:13 +0100
commit326a31df0dd401283de6170ed09bcf605f61ef7d (patch)
tree8b41618325db75380a53df102e2f0e62451a3b2b /parameter/ParameterMgr.h
parentdc32d63f2ed740af1bfc0b3f8fd2337cba46d895 (diff)
downloadexternal_parameter-framework-326a31df0dd401283de6170ed09bcf605f61ef7d.zip
external_parameter-framework-326a31df0dd401283de6170ed09bcf605f61ef7d.tar.gz
external_parameter-framework-326a31df0dd401283de6170ed09bcf605f61ef7d.tar.bz2
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 <georges-henrix.baron@intel.com> Reviewed-on: http://android.intel.com:8080/55155 Reviewed-by: Rocard, KevinX <kevinx.rocard@intel.com> Reviewed-by: Centelles, Sylvain <sylvain.centelles@intel.com> Tested-by: Mendi, EduardoX <eduardox.mendi@intel.com> Reviewed-by: buildbot <buildbot@intel.com> Tested-by: buildbot <buildbot@intel.com>
Diffstat (limited to 'parameter/ParameterMgr.h')
-rw-r--r--parameter/ParameterMgr.h9
1 files changed, 9 insertions, 0 deletions
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 <map>
#include <vector>
+#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();