uidesigner/com.nokia.sdt.series60.componentlibrary/components/navipane/NaviBase.component
author dadubrow
Mon, 06 Apr 2009 13:50:37 -0500
branchRCL_2_0
changeset 48 cfd7fcf6bf2d
parent 2 d760517a8095
permissions -rw-r--r--
Modifying autotest behavior from connection settings page such that for each time the user request testing, test at most 3 times with success ending autotesting
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) 2006 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
cawthron
parents:
diff changeset
     9
<componentDefinition xmlns="http://www.nokia.com/sdt/emf/component" 
cawthron
parents:
diff changeset
    10
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
cawthron
parents:
diff changeset
    11
	<component baseComponent="com.nokia.sdt.series60.ControlBase" 
cawthron
parents:
diff changeset
    12
		friendlyName="%friendlyName" 
cawthron
parents:
diff changeset
    13
		qualifiedName="com.nokia.sdt.series60.NaviBase" 
cawthron
parents:
diff changeset
    14
		abstract="true"
cawthron
parents:
diff changeset
    15
		version="1.0">
cawthron
parents:
diff changeset
    16
		<symbian sdkName="com.nokia.series60" minSDKVersion="2.0" 
cawthron
parents:
diff changeset
    17
			 />
cawthron
parents:
diff changeset
    18
		<attributes>
cawthron
parents:
diff changeset
    19
			<attribute key="is-navipane-content">true</attribute>
cawthron
parents:
diff changeset
    20
			<attribute key="is-status-pane-content">true</attribute>
cawthron
parents:
diff changeset
    21
			<attribute key="is-non-resizable-or-moveable-layout-object">true</attribute>
cawthron
parents:
diff changeset
    22
			
cawthron
parents:
diff changeset
    23
			<attribute key="never-add-component">true</attribute>
cawthron
parents:
diff changeset
    24
			<attribute key="is-system-component">true</attribute>
cawthron
parents:
diff changeset
    25
			
cawthron
parents:
diff changeset
    26
			<attribute key="status-pane-id">EEikStatusPaneUidNavi</attribute>
cawthron
parents:
diff changeset
    27
			
cawthron
parents:
diff changeset
    28
		</attributes>
cawthron
parents:
diff changeset
    29
		<propertyOverrides>
cawthron
parents:
diff changeset
    30
			<propertyOverride name="location" category="Hidden"/>
cawthron
parents:
diff changeset
    31
			<propertyOverride name="size" category="Hidden"/>
cawthron
parents:
diff changeset
    32
		</propertyOverrides>
cawthron
parents:
diff changeset
    33
		
cawthron
parents:
diff changeset
    34
		<sourceGen>
cawthron
parents:
diff changeset
    35
cawthron
parents:
diff changeset
    36
			<templateGroup id="NaviBaseSetup">
cawthron
parents:
diff changeset
    37
			
cawthron
parents:
diff changeset
    38
				<template phase="ForwardDeclarations" id="0">
cawthron
parents:
diff changeset
    39
class CAknNavigationDecorator;
cawthron
parents:
diff changeset
    40
				</template>
cawthron
parents:
diff changeset
    41
				<template phase="InstanceVariables" id="0b">
cawthron
parents:
diff changeset
    42
// any current navi decorator
cawthron
parents:
diff changeset
    43
CAknNavigationDecorator* iNaviDecorator_;
cawthron
parents:
diff changeset
    44
				</template>
cawthron
parents:
diff changeset
    45
				<template phase="MainSystemIncludes" id="1a"><![CDATA[
cawthron
parents:
diff changeset
    46
#include <aknnavide.h>
cawthron
parents:
diff changeset
    47
]]>				</template>
cawthron
parents:
diff changeset
    48
				<template phase="Construct" id="1">
cawthron
parents:
diff changeset
    49
iNaviDecorator_ = NULL;
cawthron
parents:
diff changeset
    50
				</template>
cawthron
parents:
diff changeset
    51
				<template phase="Destroy" id="2">
cawthron
parents:
diff changeset
    52
if ( iNaviDecorator_ != NULL )
cawthron
parents:
diff changeset
    53
	{
cawthron
parents:
diff changeset
    54
	delete iNaviDecorator_;
cawthron
parents:
diff changeset
    55
	iNaviDecorator_ = NULL;
cawthron
parents:
diff changeset
    56
	}
cawthron
parents:
diff changeset
    57
				</template>
cawthron
parents:
diff changeset
    58
				<template phase="MainSystemIncludes" id="3"><![CDATA[
cawthron
parents:
diff changeset
    59
#include <aknnavi.h>
cawthron
parents:
diff changeset
    60
]]>				</template>
cawthron
parents:
diff changeset
    61
cawthron
parents:
diff changeset
    62
			</templateGroup>
cawthron
parents:
diff changeset
    63
			
cawthron
parents:
diff changeset
    64
			<template phase="SetupStatusPane" id="SetupPrelude"><![CDATA[
cawthron
parents:
diff changeset
    65
// set the navi pane content
cawthron
parents:
diff changeset
    66
TUid naviPaneUid = TUid::Uid( EEikStatusPaneUidNavi );
cawthron
parents:
diff changeset
    67
CEikStatusPaneBase::TPaneCapabilities subPaneNavi = 
cawthron
parents:
diff changeset
    68
	StatusPane()->PaneCapabilities( naviPaneUid );
cawthron
parents:
diff changeset
    69
if ( subPaneNavi.IsPresent() && subPaneNavi.IsAppOwned() )
cawthron
parents:
diff changeset
    70
	{
cawthron
parents:
diff changeset
    71
	CAknNavigationControlContainer* naviPane = 
cawthron
parents:
diff changeset
    72
		static_cast< CAknNavigationControlContainer* >( 
cawthron
parents:
diff changeset
    73
			StatusPane()->ControlL( naviPaneUid ) );
cawthron
parents:
diff changeset
    74
	if ( iNaviDecorator_ != NULL )
cawthron
parents:
diff changeset
    75
		{
cawthron
parents:
diff changeset
    76
		delete iNaviDecorator_;
cawthron
parents:
diff changeset
    77
		iNaviDecorator_ = NULL;
cawthron
parents:
diff changeset
    78
		}
cawthron
parents:
diff changeset
    79
]]>			
cawthron
parents:
diff changeset
    80
			</template>
cawthron
parents:
diff changeset
    81
cawthron
parents:
diff changeset
    82
			<!-- navi content must set iNaviDecorator_ -->
cawthron
parents:
diff changeset
    83
			
cawthron
parents:
diff changeset
    84
			<template phase="SetupStatusPane" id="SetupPostlude"><![CDATA[
cawthron
parents:
diff changeset
    85
	naviPane->PushL( *iNaviDecorator_ );
cawthron
parents:
diff changeset
    86
	}
cawthron
parents:
diff changeset
    87
]]>			
cawthron
parents:
diff changeset
    88
			</template>
cawthron
parents:
diff changeset
    89
cawthron
parents:
diff changeset
    90
			<template phase="CleanupStatusPane" id="CleanupPostlude"><![CDATA[
cawthron
parents:
diff changeset
    91
// reset the navi pane 
cawthron
parents:
diff changeset
    92
TUid naviPaneUid = TUid::Uid( EEikStatusPaneUidNavi );
cawthron
parents:
diff changeset
    93
CEikStatusPaneBase::TPaneCapabilities subPaneNavi = 
cawthron
parents:
diff changeset
    94
	StatusPane()->PaneCapabilities( naviPaneUid );
cawthron
parents:
diff changeset
    95
if ( subPaneNavi.IsPresent() && subPaneNavi.IsAppOwned() )
cawthron
parents:
diff changeset
    96
	{
cawthron
parents:
diff changeset
    97
	CAknNavigationControlContainer* naviPane = 
cawthron
parents:
diff changeset
    98
		static_cast< CAknNavigationControlContainer* >( 
cawthron
parents:
diff changeset
    99
			StatusPane()->ControlL( naviPaneUid ) );
cawthron
parents:
diff changeset
   100
	if ( iNaviDecorator_ != NULL )
cawthron
parents:
diff changeset
   101
		{
cawthron
parents:
diff changeset
   102
		naviPane->Pop( iNaviDecorator_ );
cawthron
parents:
diff changeset
   103
		delete iNaviDecorator_;
cawthron
parents:
diff changeset
   104
		iNaviDecorator_ = NULL;
cawthron
parents:
diff changeset
   105
		}
cawthron
parents:
diff changeset
   106
	}
cawthron
parents:
diff changeset
   107
]]>
cawthron
parents:
diff changeset
   108
			</template>
cawthron
parents:
diff changeset
   109
			
cawthron
parents:
diff changeset
   110
		</sourceGen>
cawthron
parents:
diff changeset
   111
	</component>
cawthron
parents:
diff changeset
   112
</componentDefinition>