uidesigner/com.nokia.sdt.component.symbian.test/data/srcmapping/components/srcmapChoicesABC.component
author timkelly
Mon, 21 Sep 2009 10:30:34 -0500
branchRCL_2_2
changeset 502 bbc19f0223db
parent 0 fb279309251b
permissions -rw-r--r--
Manually merge in changeset 501:c39dede7ad37 from default.

<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -->
<!-- All rights reserved.                                              -->
<!-- This component and the accompanying materials are made available  -->
<!-- under the terms of the License "Eclipse Public License v1.0"      -->
<!-- which accompanies this distribution, and is available             -->
<!-- at the URL "http://www.eclipse.org/legal/epl-v10.html".           -->
<componentDefinition xmlns="http://www.nokia.com/sdt/emf/component" 
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://www.nokia.com/sdt/emf/component
C:\Users\NOKIAI~1\RADPLA~1\design\component.xsd">

<!-- test a case with three explicit choices.  -->
	
	<component baseComponent="com.nokia.examples.baseComponent"
	friendlyName="Source Mapping Test" qualifiedName="com.nokia.examples.srcmapChoicesABC" 
	category="Testing" version="1.0">
		
<sourceMapping>
 <mapResource struct="COMMAND" headers="enumsheader.rh">
  <select property="type">
    <choice value="A">
       <mapSimpleMember property="A" member="command"/>
    </choice>
    <choice value="B">
       <mapSimpleMember property="B" member="command"/>
    </choice>
    <choice value="C">
       <mapSimpleMember property="C" member="command"/>
    </choice>
  </select>
 </mapResource>
</sourceMapping>
		
		<properties>
			<property name="type" type="string"/>
			<property name="A" type="integer"/>
			<property name="B" type="integer"/>
			<property name="C" type="integer"/>
		</properties>
	</component>
</componentDefinition>