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 concept |
|
11 PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd"> |
|
12 <concept id="GUID-6F120C75-4D58-405C-8713-0626EE22E5DF" xml:lang="en"><title>Setting |
|
13 the title pane touch observer</title><prolog><metadata><keywords/></metadata></prolog><conbody> |
|
14 <p>To set the title pane touch observer:</p> |
|
15 <ol> |
|
16 <li id="GUID-D0B16DD2-3848-4988-843E-17A3E21FE916"><p>Provide an observer |
|
17 class that implements the <codeph>MaknTitlePaneObserver</codeph> interface. </p><codeblock xml:space="preserve">class MyTitlePaneObserver : public MAknTitlePaneObserver |
|
18 { |
|
19 public: |
|
20 void HandleTitlePaneEventL( TInt aEventID ); |
|
21 }; |
|
22 </codeblock></li> |
|
23 <li id="GUID-0C78F9B0-EA40-497F-BF91-783C77873128"><p>Get a pointer to the |
|
24 title pane via the status pane pointer.</p><codeblock xml:space="preserve">iStatusPane = static_cast<CAknAppUi*>( CEikonEnv::Static()-> EikAppUi() )->StatusPane(); |
|
25 if( !iStatusPane ) |
|
26 { |
|
27 User::Leave( KErrNotFound ); |
|
28 } |
|
29 |
|
30 iTitlePane = ( CAknTitlePane* )iStatusPane->ControlL( TUid::Uid( EEikStatusPaneUidTitle ) ); |
|
31 if( !iTitlePane ) |
|
32 { |
|
33 User::Leave( KErrNotFound ); |
|
34 } |
|
35 </codeblock></li> |
|
36 <li id="GUID-E486893E-7AFD-42DF-B459-EBAD38EE8BDC"><p>Set the observer using |
|
37 the <codeph>SetTitlePaneObserver</codeph> method.</p><codeblock xml:space="preserve">iTitlePane->SetTitlePaneObserver( this );</codeblock></li> |
|
38 </ol> |
|
39 </conbody></concept> |