uidesigner/com.nokia.sdt.component.symbian.test/data/srcgen/srcgen3_bad7.component
author cawthron
Tue, 24 Mar 2009 22:20:21 -0500
changeset 2 d760517a8095
permissions -rw-r--r--
new
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
cawthron
parents:
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
cawthron
parents:
diff changeset
     2
<!-- Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -->
cawthron
parents:
diff changeset
     3
<!-- All rights reserved.                                              -->
cawthron
parents:
diff changeset
     4
<!-- This component and the accompanying materials are made available  -->
cawthron
parents:
diff changeset
     5
<!-- under the terms of the License "Eclipse Public License v1.0"      -->
cawthron
parents:
diff changeset
     6
<!-- which accompanies this distribution, and is available             -->
cawthron
parents:
diff changeset
     7
<!-- at the URL "http://www.eclipse.org/legal/epl-v10.html".           -->
cawthron
parents:
diff changeset
     8
<componentDefinition xmlns="http://www.nokia.com/sdt/emf/component" 
cawthron
parents:
diff changeset
     9
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" 
cawthron
parents:
diff changeset
    10
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
cawthron
parents:
diff changeset
    11
xsi:schemaLocation="http://www.nokia.com/sdt/emf/component
cawthron
parents:
diff changeset
    12
C:\Users\NOKIAI~1\RADPLA~1\design\component.xsd">
cawthron
parents:
diff changeset
    13
	<component baseComponent="com.nokia.examples.baseComponent"
cawthron
parents:
diff changeset
    14
	friendlyName="SourceGen Test" qualifiedName="com.nokia.examples.srcgen3_bad7" 
cawthron
parents:
diff changeset
    15
	category="Testing" version="1.0">
cawthron
parents:
diff changeset
    16
		<sourceGen>
cawthron
parents:
diff changeset
    17
			<!-- create the main file -->
cawthron
parents:
diff changeset
    18
			<defineLocation domain="cpp" dir="src" file="main.cpp"
cawthron
parents:
diff changeset
    19
				id="srcgen3.FILE"
cawthron
parents:
diff changeset
    20
				location=""/>
cawthron
parents:
diff changeset
    21
			<!-- create the #includes block -->
cawthron
parents:
diff changeset
    22
			<defineLocation 
cawthron
parents:
diff changeset
    23
				baseLocation="srcgen3.FILE"
cawthron
parents:
diff changeset
    24
				id="srcgen3.INCLUDES"
cawthron
parents:
diff changeset
    25
				location="region(Designer Includes)"/>
cawthron
parents:
diff changeset
    26
			<!-- create MyClass -->
cawthron
parents:
diff changeset
    27
			<defineLocation 
cawthron
parents:
diff changeset
    28
				baseLocation="srcgen3.FILE"
cawthron
parents:
diff changeset
    29
				id="srcgen3.CLASS"
cawthron
parents:
diff changeset
    30
				location="class(MyClass)">
cawthron
parents:
diff changeset
    31
				<!-- this needs to define code in another block -->
cawthron
parents:
diff changeset
    32
				<template phase="Illegal">
cawthron
parents:
diff changeset
    33
#include "baseclass.h"
cawthron
parents:
diff changeset
    34
				</template>
cawthron
parents:
diff changeset
    35
				<template>
cawthron
parents:
diff changeset
    36
class MyClass : public BaseClass
cawthron
parents:
diff changeset
    37
	{
cawthron
parents:
diff changeset
    38
	}
cawthron
parents:
diff changeset
    39
				</template>
cawthron
parents:
diff changeset
    40
			</defineLocation>
cawthron
parents:
diff changeset
    41
cawthron
parents:
diff changeset
    42
			<!-- create MyClass::InitComponents -->
cawthron
parents:
diff changeset
    43
			<defineLocation
cawthron
parents:
diff changeset
    44
				baseLocation="srcgen3.CLASS"
cawthron
parents:
diff changeset
    45
				id="srcgen3.INIT_COMPONENTS"
cawthron
parents:
diff changeset
    46
				location="function(InitComponents())">
cawthron
parents:
diff changeset
    47
				<template>
cawthron
parents:
diff changeset
    48
void MyClass::InitComponents()
cawthron
parents:
diff changeset
    49
	{
cawthron
parents:
diff changeset
    50
	}
cawthron
parents:
diff changeset
    51
				</template>				
cawthron
parents:
diff changeset
    52
			</defineLocation>
cawthron
parents:
diff changeset
    53
			
cawthron
parents:
diff changeset
    54
<!-- now use the locations to do stuff (a container really does this) -->
cawthron
parents:
diff changeset
    55
		   <template location="srcgen3.INCLUDES">
cawthron
parents:
diff changeset
    56
#include &lt;myclass.h;&gt;
cawthron
parents:
diff changeset
    57
		   </template>
cawthron
parents:
diff changeset
    58
cawthron
parents:
diff changeset
    59
		   <template location="srcgen3.CLASS">
cawthron
parents:
diff changeset
    60
int iMyField;
cawthron
parents:
diff changeset
    61
		   </template>
cawthron
parents:
diff changeset
    62
		   
cawthron
parents:
diff changeset
    63
		   <templateGroup phase="initcomponents" 
cawthron
parents:
diff changeset
    64
			   	location="srcgen3.INIT_COMPONENTS">
cawthron
parents:
diff changeset
    65
				<template>
cawthron
parents:
diff changeset
    66
iMyField = 23;				
cawthron
parents:
diff changeset
    67
				</template>
cawthron
parents:
diff changeset
    68
		   </templateGroup>
cawthron
parents:
diff changeset
    69
		</sourceGen>
cawthron
parents:
diff changeset
    70
	</component>
cawthron
parents:
diff changeset
    71
</componentDefinition>