aboutsummaryrefslogtreecommitdiffstats
path: root/parameter/ParameterFrameworkConfiguration.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'parameter/ParameterFrameworkConfiguration.cpp')
-rw-r--r--parameter/ParameterFrameworkConfiguration.cpp35
1 files changed, 35 insertions, 0 deletions
diff --git a/parameter/ParameterFrameworkConfiguration.cpp b/parameter/ParameterFrameworkConfiguration.cpp
index 388e375..d1c032b 100644
--- a/parameter/ParameterFrameworkConfiguration.cpp
+++ b/parameter/ParameterFrameworkConfiguration.cpp
@@ -33,6 +33,7 @@
#define base CElement
CParameterFrameworkConfiguration::CParameterFrameworkConfiguration()
+ : _bTuningAllowed(false), _uiServerPort(0)
{
}
@@ -45,3 +46,37 @@ bool CParameterFrameworkConfiguration::childrenAreDynamic() const
{
return true;
}
+
+// System class name
+const string& CParameterFrameworkConfiguration::getSystemClassName() const
+{
+ return _strSystemClassName;
+}
+
+// Tuning allowed
+bool CParameterFrameworkConfiguration::isTuningAllowed() const
+{
+ return _bTuningAllowed;
+}
+
+// Server port
+uint16_t CParameterFrameworkConfiguration::getServerPort() const
+{
+ return _uiServerPort;
+}
+
+// From IXmlSink
+bool CParameterFrameworkConfiguration::fromXml(const CXmlElement& xmlElement, CXmlSerializingContext& serializingContext)
+{
+ // System class name
+ _strSystemClassName = xmlElement.getAttributeString("SystemClassName");
+
+ // Tuning allowed
+ _bTuningAllowed = xmlElement.getAttributeBoolean("TuningAllowed");
+
+ // Server port
+ _uiServerPort = (uint16_t)xmlElement.getAttributeInteger("ServerPort");
+
+ // Base
+ return base::fromXml(xmlElement, serializingContext);
+}