equal
deleted
inserted
replaced
|
1 <?xml version="1.0" encoding="utf-8"?> |
|
2 <!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. --> |
|
3 <!-- This component and the accompanying materials are made available under the terms of the License |
|
4 "Eclipse Public License v1.0" which accompanies this distribution, |
|
5 and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". --> |
|
6 <!-- Initial Contributors: |
|
7 Nokia Corporation - initial contribution. |
|
8 Contributors: |
|
9 --> |
|
10 <!DOCTYPE task |
|
11 PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"> |
|
12 <task id="GUID-940E3C48-D0ED-419A-9172-E4856C6CA809" xml:lang="en"><title>Register |
|
13 a view with the View Server</title><prolog><metadata><keywords/></metadata></prolog><taskbody> |
|
14 <context> <p><codeph>CCoeAppUi</codeph> provides functions for view |
|
15 registration and pseudo-view registration for the application identified by <codeph>aAppUid</codeph>. |
|
16 Registering allows a view to participate in the view activities, such as activation, |
|
17 deactivation and their notifications in the View Server.</p> <note> Views |
|
18 must be registered in the app UI's<codeph> CCoeAppUi::ConstructL(CCoeAppUi |
|
19 *)</codeph>.</note><p>The following code snippet shows registering a view:</p><codeblock xml:space="preserve">CNewView* iViewId = new( ELeave ) CNewView ( TVwsViewId( 0xA,0x1 ), iCCoeAppUi ); |
|
20 CleanupStack::PushL( iViewId ); |
|
21 iCCoeAppUi->RegisterViewL( iViewId );</codeblock></context> |
|
22 </taskbody></task> |