parameter-framework: improvements and corrections
BZ: 6721
- Bug correction concerning selection criteria display (inclusive type)
- Adapted XML format to allow for only on parameter to be associated to
a domain
- Removed unused files in parameter project
Change-Id: I9f42d08ff8cb60354714fe3d6b0f0b321ad0a7bf
Orig-Change-Id: I837e553070f5acf2d275082c986ba29433493e31
Signed-off-by: Patrick Benavoli <patrickx.benavoli@intel.com>
Reviewed-on: http://android.intel.com:8080/16878
Reviewed-by: Mahe, Erwan <erwan.mahe@intel.com>
Tested-by: Barthes, FabienX <fabienx.barthes@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
diff --git a/parameter/MappingContext.h b/parameter/MappingContext.h
index aca9349..40f8438 100644
--- a/parameter/MappingContext.h
+++ b/parameter/MappingContext.h
@@ -39,13 +39,13 @@
{
// Item structure
struct SItem {
- uint32_t uiItem;
+ const string* strItem;
bool bSet;
};
public:
// Regular Constructor
- CMappingContext(uint32_t uiNbItems);
+ CMappingContext(uint32_t uiNbItemTypes);
~CMappingContext();
// Copy constructor
@@ -55,13 +55,14 @@
const CMappingContext& operator=(const CMappingContext& right);
// Item access
- bool setItem(uint32_t uiItemType, const string& strItem);
- uint32_t getItem(uint32_t uiItemType) const;
+ bool setItem(uint32_t uiItemType, const string* pStrItem);
+ const string& getItem(uint32_t uiItemType) const;
+ uint32_t getItemAsInteger(uint32_t uiItemType) const;
bool iSet(uint32_t uiItemType) const;
private:
// Item array
SItem* _pstItemArray;
// Items array size
- uint32_t _uiNbItems;
+ uint32_t _uiNbItemTypes;
};