summaryrefslogtreecommitdiffstats
path: root/parameter/AreaConfiguration.h
diff options
context:
space:
mode:
authorFrédéric Boisnard <fredericx.boisnard@intel.com>2012-05-30 16:15:02 +0200
committerDavid Wagner <david.wagner@intel.com>2014-02-12 17:03:10 +0100
commit9620e44c6c7605bf589f60331eb5b05b71336853 (patch)
tree24de41296b6da730e70f1ced0ad633bb4a7c7da3 /parameter/AreaConfiguration.h
parent8b01852701d50869318663f568270f977d93dbdf (diff)
downloadexternal_parameter-framework-9620e44c6c7605bf589f60331eb5b05b71336853.zip
external_parameter-framework-9620e44c6c7605bf589f60331eb5b05b71336853.tar.gz
external_parameter-framework-9620e44c6c7605bf589f60331eb5b05b71336853.tar.bz2
PFW: Fixed bug on BitParameterTypes
BZ: 44148 The save and restore operation would not work correctly when BitParameters of a BitParameterBlock were used in more than a single Domain. This patch aims to fixup this bug and introduces a new class: BitwiseAreaConfiguration. Change-Id: I0aaccd57cf1cce33400f94a8879565171d283425 Orig-Change-Id: I7107f7db9f01cfff3c38cbac606a8c1e9bca8b5e Signed-off-by: Frédéric Boisnard <fredericx.boisnard@intel.com> Reviewed-on: http://android.intel.com:8080/58363 Reviewed-by: Mendi, EduardoX <eduardox.mendi@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/AreaConfiguration.h')
-rw-r--r--parameter/AreaConfiguration.h20
1 files changed, 15 insertions, 5 deletions
diff --git a/parameter/AreaConfiguration.h b/parameter/AreaConfiguration.h
index b5e7e4c..6afed71 100644
--- a/parameter/AreaConfiguration.h
+++ b/parameter/AreaConfiguration.h
@@ -64,10 +64,10 @@ public:
const CConfigurableElement* getConfigurableElement() const;
// Configuration merging
- void copyFromInner(const CAreaConfiguration* pFromAreaConfiguration);
+ virtual void copyToOuter(CAreaConfiguration* pToAreaConfiguration) const;
// Configuration splitting
- void copyToInner(CAreaConfiguration* pToAreaConfiguration) const;
+ virtual void copyFromOuter(const CAreaConfiguration* pFromAreaConfiguration);
// XML configuration settings parsing/composing
bool serializeXmlSettings(CXmlElement& xmlConfigurableElementSettingsElementContent, CConfigurationAccessContext& configurationAccessContext);
@@ -77,19 +77,29 @@ public:
// Data size
uint32_t getSize() const;
+
+protected:
+ CAreaConfiguration(const CConfigurableElement* pConfigurableElement, const CSyncerSet* pSyncerSet, uint32_t uiSize);
+
private:
+ // Blackboard copies
+ virtual void copyTo(CParameterBlackboard* pToBlackboard, uint32_t uiOffset) const;
+ virtual void copyFrom(const CParameterBlackboard* pFromBlackboard, uint32_t uiOffset);
+
// Store validity
void setValid(bool bValid);
+protected:
// Associated configurable element
const CConfigurableElement* _pConfigurableElement;
- // Syncer set (required for immediate synchronization)
- const CSyncerSet* _pSyncerSet;
-
// Configurable element settings
CParameterBlackboard _blackboard;
+private:
+ // Syncer set (required for immediate synchronization)
+ const CSyncerSet* _pSyncerSet;
+
// Area configuration validity (invalid area configurations can't be restored)
bool _bValid;
};