Symbian3/SDK/Source/GUID-6F120C75-4D58-405C-8713-0626EE22E5DF.dita
author Dominic Pinkman <Dominic.Pinkman@Nokia.com>
Thu, 21 Jan 2010 18:18:20 +0000
changeset 0 89d6a7a84779
child 8 ae94777fff8f
permissions -rw-r--r--
Initial contribution of Documentation_content according to Feature bug 1266 bug 1268 bug 1269 bug 1270 bug 1372 bug 1374 bug 1375 bug 1379 bug 1380 bug 1381 bug 1382 bug 1383 bug 1385

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. -->
<!-- This component and the accompanying materials are made available under the terms of the License 
"Eclipse Public License v1.0" which accompanies this distribution, 
and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". -->
<!-- Initial Contributors:
    Nokia Corporation - initial contribution.
Contributors: 
-->
<!DOCTYPE concept
  PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
<concept id="GUID-6F120C75-4D58-405C-8713-0626EE22E5DF" xml:lang="en"><title>Setting
the title pane touch observer</title><prolog><metadata><keywords/></metadata></prolog><conbody>
<p>To set the title pane touch observer:</p>
<ol>
<li id="GUID-D0B16DD2-3848-4988-843E-17A3E21FE916"><p>Provide an observer
class that implements the <codeph>MaknTitlePaneObserver</codeph> interface. </p><codeblock xml:space="preserve">class MyTitlePaneObserver : public MAknTitlePaneObserver
    {
public:
    void HandleTitlePaneEventL( TInt aEventID );
    };
</codeblock></li>
<li id="GUID-0C78F9B0-EA40-497F-BF91-783C77873128"><p>Get a pointer to the
title pane via the status pane pointer.</p><codeblock xml:space="preserve">iStatusPane = static_cast&lt;CAknAppUi*&gt;( CEikonEnv::Static()-&gt; EikAppUi() )-&gt;StatusPane();
if( !iStatusPane )
    {
    User::Leave( KErrNotFound );
    }
 
iTitlePane = ( CAknTitlePane* )iStatusPane-&gt;ControlL( TUid::Uid( EEikStatusPaneUidTitle ) );
if( !iTitlePane )
    {
    User::Leave( KErrNotFound );
    }
</codeblock></li>
<li id="GUID-E486893E-7AFD-42DF-B459-EBAD38EE8BDC"><p>Set the observer using
the <codeph>SetTitlePaneObserver</codeph> method.</p><codeblock xml:space="preserve">iTitlePane-&gt;SetTitlePaneObserver( this );</codeblock></li>
</ol>
</conbody></concept>