<?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">
	<component baseComponent="com.nokia.examples.baseComponent"
	friendlyName="SourceGen Test" qualifiedName="com.nokia.examples.complex" 
	category="Testing" version="1.0">
		<documentation>
			<information>
			Source generation test component
			</information>
		</documentation>
		<designerImages smallIconFile="test-image.bmp" largeIconFile="test-image.bmp" layoutImageFile="test-image.bmp"/>
		<symbian sdkName="com.nokia.series60" minSDKVersion="2.0" maxSDKVersion="3.0" 
			classHelpTopic="org.eclipse.ui.property_sheet_page_help_context" 
			/>
		<attributes>
			<attribute key="is-layout-object">true</attribute>
		</attributes>
		<properties>
			<property category="Data" displayName="First" name="first" type="integer"/>
			<property category="Data" displayName="Second" name="second" type="integer"/>
		</properties>
		<sourceGen forms="CEikDialog">
		 <templateGroup form="CEikDialog">
		   <template phase="initcomponents" id="foo">
		${id} =static_cast&lt;CEikEdwin*&gt; (ControlOrNull(${property["dialogId"]}));
		   </template>
		   <template phase="parenting"> ... parenting for CEikDialog ... </template>
		 </templateGroup>
		 <templateGroup form="default">
		   <template phase="initcomponents" id="foo">  <!-- note: "id" can be shared in different forms -->
		${id} = new (ELeave) CEikEdwin;
		...
		iCoeEnv-&gt;CreateResourceReaderLC (reader, ${property["rssName"]});
		   </template>
		 <template phase="parenting"> ... parenting for default ... </template>
		</templateGroup>
		<!-- unnamed group -->
		<templateGroup>
			<template id="pol">
			</template>
		</templateGroup>
		</sourceGen>

	</component>
</componentDefinition>
