uidesigner/com.nokia.sdt.series60.componentlibrary/components/cba/CBA_commonSrc.inc
author fturovic <frank.turovich@nokia.com>
Tue, 07 Apr 2009 13:55:47 -0500
branchRCL_2_0
changeset 69 cab50ba61335
parent 2 d760517a8095
permissions -rw-r--r--
added info on IAD custom rules
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
cawthron
parents:
diff changeset
     1
			<templateGroup ifEvents="leftSoftKeyPressed">
cawthron
parents:
diff changeset
     2
			
cawthron
parents:
diff changeset
     3
			<template phase="UserHandlers">
cawthron
parents:
diff changeset
     4
TBool ${event.handlerName}( TInt aCommand );
cawthron
parents:
diff changeset
     5
			</template>
cawthron
parents:
diff changeset
     6
cawthron
parents:
diff changeset
     7
			<defineLocation id="LeftSoftKeyPressedMethod" baseLocation="MAIN_FILE"
cawthron
parents:
diff changeset
     8
					owned="false"
cawthron
parents:
diff changeset
     9
					isEventHandler="true"
cawthron
parents:
diff changeset
    10
					location="function(${handlerClassName}::${event.handlerName}(TInt))">
cawthron
parents:
diff changeset
    11
					<template><![CDATA[
cawthron
parents:
diff changeset
    12
/** 
cawthron
parents:
diff changeset
    13
 * Handle the ${event.eventName} event.
cawthron
parents:
diff changeset
    14
 * @return ETrue if the command was handled, EFalse if not
cawthron
parents:
diff changeset
    15
 */
cawthron
parents:
diff changeset
    16
TBool ${handlerClassName}::${event.handlerName}( TInt aCommand )
cawthron
parents:
diff changeset
    17
	{
cawthron
parents:
diff changeset
    18
	// TODO: implement ${event.eventName} event handler
cawthron
parents:
diff changeset
    19
	return EFalse;
cawthron
parents:
diff changeset
    20
	}
cawthron
parents:
diff changeset
    21
]]>				
cawthron
parents:
diff changeset
    22
					</template>
cawthron
parents:
diff changeset
    23
				</defineLocation>
cawthron
parents:
diff changeset
    24
			
cawthron
parents:
diff changeset
    25
				<template location="LeftSoftKeyPressedMethod" />
cawthron
parents:
diff changeset
    26
	
cawthron
parents:
diff changeset
    27
				<template form="HandleCommandSwitchDispatch" phase="SwitchContents" 
cawthron
parents:
diff changeset
    28
					ifEvents="leftSoftKeyPressed"><![CDATA[<%	
cawthron
parents:
diff changeset
    29
			var leftId = getCbaLeftId(instance);
cawthron
parents:
diff changeset
    30
			if (leftId == "EAknSoftkeyOptions") {
cawthron
parents:
diff changeset
    31
				// S60 explicitly stops further processing when Options is caught by the
cawthron
parents:
diff changeset
    32
				// AknView::HandleCommandL() or AknAppUi::ProcessCommandL() routines
cawthron
parents:
diff changeset
    33
				warning(formatString(lookupString("maskedLeftSoftKeyEventHandler"),
cawthron
parents:
diff changeset
    34
					instance.name));
cawthron
parents:
diff changeset
    35
			}
cawthron
parents:
diff changeset
    36
			if (leftId != null && leftId != "") { %>
cawthron
parents:
diff changeset
    37
	case ${leftId}:
cawthron
parents:
diff changeset
    38
		commandHandled = ${event.handlerName}( aCommand );
cawthron
parents:
diff changeset
    39
		break;
cawthron
parents:
diff changeset
    40
<% } %>]]>		</template>		
cawthron
parents:
diff changeset
    41
			</templateGroup>
cawthron
parents:
diff changeset
    42
cawthron
parents:
diff changeset
    43
			<templateGroup ifEvents="rightSoftKeyPressed">
cawthron
parents:
diff changeset
    44
			
cawthron
parents:
diff changeset
    45
			<template phase="UserHandlers">
cawthron
parents:
diff changeset
    46
TBool ${event.handlerName}( TInt aCommand );
cawthron
parents:
diff changeset
    47
			</template>
cawthron
parents:
diff changeset
    48
cawthron
parents:
diff changeset
    49
			<defineLocation id="RightSoftKeyPressedMethod" baseLocation="MAIN_FILE"
cawthron
parents:
diff changeset
    50
					owned="false"
cawthron
parents:
diff changeset
    51
					isEventHandler="true"
cawthron
parents:
diff changeset
    52
					location="function(${handlerClassName}::${event.handlerName}(TInt))">
cawthron
parents:
diff changeset
    53
					<template><![CDATA[
cawthron
parents:
diff changeset
    54
/** 
cawthron
parents:
diff changeset
    55
 * Handle the ${event.eventName} event.
cawthron
parents:
diff changeset
    56
 * @return ETrue if the command was handled, EFalse if not
cawthron
parents:
diff changeset
    57
 */
cawthron
parents:
diff changeset
    58
TBool ${handlerClassName}::${event.handlerName}( TInt aCommand )
cawthron
parents:
diff changeset
    59
	{
cawthron
parents:
diff changeset
    60
	// TODO: implement ${event.eventName} event handler
cawthron
parents:
diff changeset
    61
	return EFalse;
cawthron
parents:
diff changeset
    62
	}
cawthron
parents:
diff changeset
    63
]]>				
cawthron
parents:
diff changeset
    64
					</template>
cawthron
parents:
diff changeset
    65
				</defineLocation>
cawthron
parents:
diff changeset
    66
			
cawthron
parents:
diff changeset
    67
				<template location="RightSoftKeyPressedMethod" />
cawthron
parents:
diff changeset
    68
	
cawthron
parents:
diff changeset
    69
				<template form="HandleCommandSwitchDispatch" phase="SwitchContents" 
cawthron
parents:
diff changeset
    70
					ifEvents="rightSoftKeyPressed"><![CDATA[<%	
cawthron
parents:
diff changeset
    71
			var rightId = getCbaRightId(instance);
cawthron
parents:
diff changeset
    72
			if (rightId != null && rightId != "") { %>
cawthron
parents:
diff changeset
    73
	case ${rightId}:
cawthron
parents:
diff changeset
    74
		commandHandled = ${event.handlerName}( aCommand );
cawthron
parents:
diff changeset
    75
		break;
cawthron
parents:
diff changeset
    76
<% } %>]]>		</template>		
cawthron
parents:
diff changeset
    77
			</templateGroup>